How To Install checksec.noarch on Amazon Linux 2

In this tutorial we learn how to install checksec.noarch in Amazon Linux 2. checksec.noarch is Tool to check system for binary-hardening

Introduction

In this tutorial we learn how to install checksec.noarch on Amazon Linux 2.

What is checksec.noarch

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 to install checksec.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install checksec.noarch.

Install checksec.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install checksec.noarch using yum by running the following command:

sudo yum -y install checksec.noarch

How To Uninstall checksec.noarch on Amazon Linux 2

To uninstall only the checksec.noarch package we can use the following command:

sudo yum remove checksec.noarch

checksec.noarch Package Contents on Amazon Linux 2

/usr/bin/checksec
/usr/share/doc/checksec-2.4.0
/usr/share/doc/checksec-2.4.0/ChangeLog
/usr/share/doc/checksec-2.4.0/README.md
/usr/share/licenses/checksec-2.4.0
/usr/share/licenses/checksec-2.4.0/LICENSE.txt
/usr/share/man/man1/checksec.1.gz

References

Summary

In this tutorial we learn how to install checksec.noarch on Amazon Linux 2 using yum.