Linux Security Hardening Extended Detection and Response
HARDN-XDR is a comprehensive Debian-based security hardening platform designed for government and enterprise compliance standards. It provides automated system hardening, malware detection, and continuous compliance validation through 47+ security modules.
# Download the latest release
wget https://github.com/OpenSource-For-Freedom/HARDN-XDR/releases/latest/download/hardn_1.1.63_all.deb
# Install the package
sudo dpkg -i hardn_1.1.63_all.deb
sudo apt-get install -f # Fix dependencies
# Clone the repository
git clone https://github.com/OpenSource-For-Freedom/HARDN-XDR.git
cd HARDN-XDR
# Run the hardening script
sudo ./hardn-xdr
# Interactive mode with module selection
sudo hardn-xdr
# Run in headless/CI mode
sudo SKIP_WHIPTAIL=1 ./hardn-xdr
# Run compliance audit and generate dashboard pre deployment
sudo ./hardn_audit.sh
# Run comprehensive system compnents "smoke test"
sudo ./smoke_test.sh --full
auditd.sh
- System audit logging (STIG compliance)sshd.sh
- SSH daemon hardeningufw.sh
- Uncomplicated Firewall setupcredential_protection.sh
- Password policies and account securitykernel_sec.sh
- Kernel parameter hardeningauto_updates.sh
- Automatic security updatesaide.sh
- Advanced Intrusion Detection Environmentfail2ban.sh
- Intrusion prevention systemclamav.sh
- Antivirus protectionrkhunter.sh
- Rootkit detectionchkrootkit.sh
- Additional rootkit scanningsuricata.sh
- Network threat detectionlynis_audit.sh
- Comprehensive security auditinggnome_hardening.sh
- GNOME desktop securitykde_hardening.sh
- KDE Plasma securityxfce_hardening.sh
- XFCE desktop securityHARDN-XDR includes a Matrix-themed compliance dashboard that provides:
Access the dashboard after running hardn_audit.sh
:
# Generate compliance dashboard
sudo ./hardn_audit.sh
# View dashboard (auto-opens web server on port 8021)
# Navigate to: http://localhost:8021/hardn-compliance.html
# Run comprehensive smoke tests
sudo ./smoke_test.sh --full
# Test STIG compliance validation
sudo ./smoke_test.sh --compliance
# Quick functionality test
sudo ./smoke_test.sh --quick
# Install build dependencies
sudo apt-get update
sudo apt-get install debhelper-compat devscripts dpkg-dev build-essential
# Build Debian package
dpkg-buildpackage -us -uc -b
# Test in container environment
docker build -t hardn-xdr-test .
# Create new security module
cp src/setup/modules/template.sh src/setup/modules/new_module.sh
# Follow the established pattern:
# - Source hardn-common.sh
# - Implement module_main() function
# - Add proper error handling
# - Include STIG/CIS compliance documentation
This project is licensed under the terms specified in the LICENSE file.
HARDN-XDR - Securing Linux systems with government-grade compliance standards.