/arch-linux-scripts

A collection of useful scripts for Arch-based Linux distributions. Includes Secure Boot setup, with more tools coming soon.

Primary LanguageShellMIT LicenseMIT

๐Ÿ›ก๏ธ Arch Security Toolkit

This repository contains a comprehensive Bash script designed for Arch-based Linux distributions. It helps automate essential system hardening tasks, improve security posture, and simplify configuration โ€” all from a single interactive menu.

Arch Linux Script


โœ… Features

  • ๐Ÿ” Secure Boot Setup using sbctl
  • ๐Ÿ”ฅ Firewall Management with optional GUI installer
  • ๐Ÿ“‹ Auditd Logging toggle
  • ๐Ÿšซ Fail2ban Protection for brute-force attack mitigation
  • ๐Ÿ›ก๏ธ Kernel Hardening via sysctl
  • ๐Ÿงน Orphaned Package Cleanup
  • ๐Ÿ” Security Audit with:
    • SSH root login check
    • Sudo privilege analysis
    • Kernel hardening status
    • Auditd, Fail2ban, Firewall, Secure Boot checks
    • CPU mitigation flags detection (nopti, mds=off, etc.)
    • mitigations=off global override detection
    • โš ๏ธ Performance impact warnings for active mitigations

๐Ÿ“ฆ Requirements

  • Arch-based Linux distribution (e.g. Arch, Manjaro, EndeavourOS)
  • dialog package (installed automatically if missing)
  • sbctl, ufw, audit, fail2ban โ€” installed as needed

๐Ÿš€ Usage

git clone https://github.com/yourusername/arch-security-toolkit.git
cd arch-security-toolkit
chmod +x arch-security-toolkit.sh
./arch-security-toolkit.sh