How To Install checksecurity on Kali Linux
Introduction
In this tutorial we learn how to install checksecurity on Kali Linux.
What is checksecurity
checksecurity is:
Checksecurity can periodically do some very basic system security checks:
* check-setuid - scans for insecurely mounted remote file systems,
and tracks changes in setuid programs;
* check-sockets - tracks changes in open ports to detect rogue programs;
* check-passwd - scans for empty or duplicate system accounts;
* check-disfree - scans for mounted filesystems nearing capacity;
* check-iptables-logs - scans logs generated by iptables and look
for intrusion attempts.
Be aware that these minimal set of checks are no substitute for a full security auditing and integrity checking system.
In addition to these checks you are encourage to install additional packages (listed in “Recommends”) to provide more information concerning the security or vulnerability of your system.
Installing the suggested package lockfile-progs can help to prevent the cron jobs running multiple times if something gets jammed.
There are three methods to install checksecurity on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install checksecurity Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install checksecurity using apt-get by running the following command:
sudo apt-get -y install checksecurityInstall checksecurity Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install checksecurity using apt by running the following command:
sudo apt -y install checksecurityInstall checksecurity Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install checksecurity using aptitude by running the following command:
sudo aptitude -y install checksecurityHow To Uninstall checksecurity on Kali Linux
To uninstall only the checksecurity package we can use the following command:
sudo apt-get remove checksecurityUninstall checksecurity And Its Dependencies
To uninstall checksecurity and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove checksecurityRemove checksecurity Configurations and Data
To remove checksecurity configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge checksecurityRemove checksecurity configuration, data, and all of its dependencies
We can use the following command to remove checksecurity configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge checksecurityDependencies
checksecurity have the following dependencies:
References
Summary
In this tutorial we learn how to install checksecurity package on Kali Linux using different package management tools: apt, apt-get and aptitude.