Skip to content

A single Debian tool to fully secure an OS using automation, monitoring, heuristics and keeping availability high.

License

Notifications You must be signed in to change notification settings

subhaniminhas/HARDN1.0

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

     ██░ ██  ▄▄▄       ██▀███  ▓█████▄  ███▄    █ 
    ▓██░ ██▒▒████▄    ▓██ ▒ ██▒▒██▀ ██▌ ██ ▀█   █ 
    ▒██▀▀██░▒██  ▀█▄  ▓██ ░▄█ ▒░██   █▌▓██  ▀█ ██▒
    ░▓█ ░██ ░██▄▄▄▄██ ▒██▀▀█▄  ░▓█▄   ▌▓██▒  ▐▌██▒
    ░▓█▒░██▓ ▓█   ▓██▒░██▓ ▒██▒░▒████▓ ▒██░   ▓██░
     ▒ ░░▒░▒ ▒▒   ▓▒█░░ ▒▓ ░▒▓░ ▒▒▓  ▒ ░ ▒░   ▒ ▒ 
     ▒ ░▒░ ░  ▒   ▒▒ ░  ░▒ ░ ▒░ ░ ▒  ▒ ░ ░░   ░ ▒░
     ░  ░░ ░  ░   ▒     ░░   ░  ░ ░  ░    ░   ░ ░ 
     ░  ░  ░      ░  ░   ░        ░             ░ 
                        ░                 
                The Linux Security Project

===================== TESTING AND DEVELOPING ====================

HARDN

NEW UPDATE: pip install has been implimented to replace APT package install.


A single UX based Debian tool to fully secure an OS using automation, monitoring, heuristics and availability.

Table of Contents

Table of Contents


Overview and Reciept of Mission

  • Kernel Hardening – Fortifying the Linux kernel to block exploits, enforce strict access controls, and minimize attack surfaces.

  • Penetration Testing – Proactively scanning and testing for vulnerabilities to find weaknesses before attackers do.

  • Automation – Reducing manual security tasks with scripts and tools that streamline system protection and performance tuning.

  • OS Security – Locking down vulnerabilities while ensuring stability, speed, and reliability for Debian systems


Tools

  • Lynis,Security auditing tool for Unix-based systems.
  • Fail2Ban,Protects against brute-force attacks.
  • SELinux, a security feature in Linux that enforces strict access controls to protect the system from unauthorized actions, even by compromised or malicious processes.
  • UFW,Easy-to-configure firewall utility.
  • TCP wrappers, to bundle outbound/ inbound and predefined rules monitoring tool, host based.
  • Lynis Audit- to keep the base secure posture validated, and priovide a systems score.
  • AppArmor,Mandatory Access Control (MAC) for enforcing policies.
  • LMD (MALDETECT),(Soon to be replaced by Legion) Open-source antivirus software.
  • Firejail,Sandboxing tool for application isolation.
  • Cron, to keep it all omaintenance**
  • Pex*, used for GRUB password hash automation
  1. Secure the System – Applies firewall rules, intrusion detection, malware protection, and access control automatically.
  2. Monitor & Defend – Soon to use heuristic analysis, security audits, and automated updates to stay ahead of threats. (Legion)
  3. Stay Updated – Built-in automation via cron ensures constant updates and maintenance without user intervention.

The Goal - Once installed, HARDN runs in the background—keeping your system tight without slowing you down.

we are working on a 'headless' option to remove the gui, for server functionality. We are also working on server and container compatibility.


Getting Started

Clone the Repository**

git clone https://github.com/opensource-for-freedom/HARDN.git
cd hardn

Youll need Python 3

apt update && apt install -y python3 python3-pip
pip install -r requirements.txt

Install setup file

sudo ./setup.sh

Run HARDN

sudo ./hardn.py

Check lynis output

The GUI Will show you the current system Lynis score (under development)


Goals

  • Replacing LMD with Legion – A dedicated malware scanner optimized for Linux.

LEGION

  • Integrating Wazuh SIEM – Expanding system-wide monitoring for better incident response.
  • Test and implement GRS, to help fully secure the Kernal. ( Cost associated )
  • Expanding container security – Locking down VMs and containers without affecting performance and allow ssh referal.
  • Making it easier to use – Simplifying configurations for both end-users and professionals through smooth UX engagement.

Contributing

  • Contact directly for access

License

  • MIT License

About

A single Debian tool to fully secure an OS using automation, monitoring, heuristics and keeping availability high.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 81.7%
  • Shell 18.3%