HARDN-XDR

hardn

Linux Security Hardening Extended Detection and Response

Features

Security Compliance

Security Modules (47+)

Architecture Support

Quick Start

Installation

From Package

# 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

From Source

# Clone the repository
git clone https://github.com/OpenSource-For-Freedom/HARDN-XDR.git
cd HARDN-XDR

# Run the hardening script
sudo ./hardn-xdr

Basic Usage

# 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

System Requirements

Security Modules Overview

Essential Modules (Always Applied)

Conditional Modules (Container/VM Optimized)

Desktop Modules

Compliance Dashboard

HARDN-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

Documentation

Testing and Quality Assurance

# 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

Development and Contributing

Building from Source

# 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 .

Module Development

# 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

License

This project is licensed under the terms specified in the LICENSE file.

Support


HARDN-XDR - Securing Linux systems with government-grade compliance standards.