How To Install checksec on CentOS 7
Introduction
In this tutorial we learn how to install checksec
on CentOS 7.
What is checksec
Modern Linux distributions offer some mitigation techniques to make it harder to exploit software vulnerabilities reliably. Mitigations such as RELRO, NoExecute (NX), Stack Canaries, Address Space Layout Randomization (ASLR) and Position Independent Executables (PIE) have made reliably exploiting any vulnerabilities that do exist far more challenging. The checksec script is designed to test what standard Linux OS and PaX (http As of version 1.3 the script also lists the status of various Linux kernel protection mechanisms. checksec can check binary-files and running processes for hardening features.
We can use yum
or dnf
to install checksec
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install checksec.
Install checksec on CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install checksec
using yum
by running the following command:
sudo yum -y install checksec
Install checksec on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
sudo dnf makecache
After updating yum database, We can install checksec
using dnf
by running the following command:
sudo dnf -y install checksec
How To Uninstall checksec on CentOS 7
To uninstall only the checksec
package we can use the following command:
sudo dnf remove checksec
References
Summary
In this tutorial we learn how to install checksec
on CentOS 7 using yum
and dnf
.