- Our Goal:
- Assist the open source community in building a Debian based "GOLDEN IMAGE" System.
- Our Purpose:
- To empower IT administrators and users with the tools they need to ensure endpoint security, optimize performance, and maintain compliance across their organization.
- What we have to offer:
- A robust and secure endpoint management solution designed to simplify and enhance the management of devices in your network.
- Advanced features for monitoring, securing, and maintaining endpoints efficiently.
STIG
COMPLIANCE to align with the Security Technical Information Guides provided by the DOD Cyber Exchange.
- Comprehensive Monitoring: Real-time insights into endpoint performance and activity.
- Enhanced Security: Protect endpoints with advanced security protocols.
- Scalability: Manage endpoints across small to large-scale networks.
- User-Friendly Interface: Intuitive design for seamless navigation and management.
- Interactive Menu: A user-friendly menu to select which hardening modules to apply.
- STIG Compliance: This release brings the utmost security for Debian Government based information systems.
Access it through the latest release
- You will find the most recent Debian release here: HARDN-XDR Debian Package
- Next:
sudo dpkg -i hardn_1.1.X_all.deb
sudo chmod hardn-xdr
After installation, you can run the hardening script:
sudo hardn-xdr
This will launch an interactive menu where you can select the security modules you wish to apply.
For detailed information and command-line options, consult the man page:
man hardn-xdr
The interactive menu is the core of the HARDN-XDR
script's flexibility, and it's powered by a standard Linux utility called whiptail
. Here’s a breakdown of how it works inside the setup_security
function in hardn-main.sh
:
First, a Bash array called modules
is created. This array holds the definition for every single item that appears in the checklist menu. Each item consists of three parts:
- The script filename: e.g.,
"ufw.sh"
- A user-friendly description: e.g.,
"Configure UFW Firewall"
- The default state:
ON
(checked by default) orOFF
(unchecked by default)
local modules=(
"ufw.sh" "Configure UFW Firewall" ON
"fail2ban.sh" "Install and configure Fail2Ban" ON
"pentest.sh" "Install penetration testing tools" OFF
# ... and so on
)
Next, the whiptail
command is called with the --checklist
option. It's given the title, the instructional text, and the modules
array. whiptail
then draws the interactive menu on the screen. When the user clicks "Ok", whiptail
prints their selected choices as a string, which is captured in a variable.
choices=$(whiptail --title "HARDN-XDR Security Modules" --checklist \
"Choose which security modules to apply:" 25 85 18 \
"${modules[@]}" 3>&1 1>&2 2>&3)
Finally, the script loops through the user's choices. For each choice, it constructs the full path to the module script (e.g., ./modules/ufw.sh
), checks if the file exists, and then executes it using the source
command.
for choice in $choices; do
# ...
local module_path="./modules/${choice//\"/}"
if [ -f "$module_path" ]; then
source "$module_path"
fi
done
This approach makes the system very modular and easy to extend. To add a new hardening option, all that's needed is to create the new module script and add a corresponding entry to the modules
array in hardn-main.sh
.
- HARDN-XDR is currently being developed and tested for BARE-METAL installs of Debian based distributions and Virtual Machines.
- Ensure you have the latest version of Debian 12.
- By installing HARDN-XDR with the command listed in the installation, the following changes will be made to your system:
- A collection of security focused packages will be installed.
- Security tools and services will be enabled.
- System hardening and STIG settings will be applied.
- A malware and signature detection and response system will be set up.
- A monitoring and reporting system will be activated.
- For a detailed list of all that will be changed, please refer to HARDN.md.
- For an overview of HARDN-Debian STIG Compliance, please refer to deb_stig.md.
HARDN-XDR/
├── debian/
│ ├── changelog
│ ├── compat
│ ├── control
│ ├── copyright
│ ├── install
│ ├── postinst
│ └── rules
├── docs/
│ ├── assets/
│ ├── HARDN.md
│ └── deb_stig.md
├── install.sh # Main installation script for the application.
├── LICENSE
├── man/
│ └── hardn-xdr.1 # Man page for the hardn-xdr command.
├── README.md
└── src/
└── setup/
├── hardn-main.sh # main script that launches the interactive menu.
└── modules/
This project is licensed under the MIT License.