How to Install and Uninstall libapache2-mod-security2 Package on Kali Linux

Last updated: May 14,2024

1. Install "libapache2-mod-security2" package

Please follow the steps below to install libapache2-mod-security2 on Kali Linux

$ sudo apt update $ sudo apt install libapache2-mod-security2

2. Uninstall "libapache2-mod-security2" package

Please follow the step by step instructions below to uninstall libapache2-mod-security2 on Kali Linux:

$ sudo apt remove libapache2-mod-security2 $ sudo apt autoclean && sudo apt autoremove

3. Information about the libapache2-mod-security2 package on Kali Linux

Package: libapache2-mod-security2
Source: modsecurity-apache (2.9.7-1)
Version: 2.9.7-1+b1
Installed-Size: 1087
Maintainer: Alberto Gonzalez Iniesta
Architecture: amd64
Depends: libxml2 (>= 2.9.14), libapr1 (>= 1.2.7), libaprutil1 (>= 1.4.0), libc6 (>= 2.34), libcurl3-gnutls (>= 7.16.2), liblua5.1-0, libpcre2-8-0 (>= 10.32), libyajl2 (>= 2.0.4), apache2-api-20120211, apache2-bin (>= 2.4.16)
Recommends: modsecurity-crs
Size: 259440
SHA256: 2ae3a6f877562cb6abd5044fc6ff68263d34d6717e3857aae237fa6a7d878ed4
SHA1: 54bb43d7c4fef51edf8816b388721dce4a975468
MD5sum: 0ef6611d1b2fc789a7f3aab123ee39ad
Description: Tighten web applications security for Apache
Modsecurity is an Apache module whose purpose is to tighten the Web
application security. Effectively, it is an intrusion detection and prevention
system for the web server.
.
At the moment its main features are:
* Audit log; store full request details in a separate file, including POST
payloads.
* Request filtering; incoming requests can be analysed and offensive requests
can be rejected (or simply logged, if that is what you want). This feature
can be used to prevent many types of attacks (e.g. XSS attacks, SQL
injection, ...) and even allow you to run insecure applications on your
servers (if you have no other choice, of course).
Description-md5:
Homepage: https://github.com/SpiderLapbs/ModSecurity
Section: httpd
Priority: optional
Filename: pool/main/m/modsecurity-apache/libapache2-mod-security2_2.9.7-1+b1_amd64.deb