A lightweight command-line Linux security scanner that audits your system for open ports, file permissions, SUID/SGID files, and user accounts.
Generates clean reports in Terminal, CSV, JSON, and HTML formats.
- 🔹 Port Scanner: Detect risky open ports.
- 🔹 File Permission Scanner: Identify world-writable files.
- 🔹 SUID/SGID Scanner: Find uncommon SUID/SGID files.
- 🔹 User Account Scanner: Audit users and login shells.
- 🔹 Multiple Report Formats: Terminal, CSV, JSON, HTML.
- 🔹 Verbose Mode: Step-by-step scan output.
Clone the repository and install dependencies:
git clone https://github.com/yourusername/cli_scanner.git
cd cli_scanner
pip install -r requirements.txtMake sure
pipis installed:sudo apt update sudo apt install python3-pip
Run a basic scan:
python3 cli_scanner.pyRun with verbose output:
python3 cli_scanner.py --verboseReports will be generated automatically:
| Format | File |
|---|---|
| JSON | scan_report.json |
| CSV | scan_report.csv |
| HTML | scan_report.html |
Terminal Scan Summary:
CRITICAL: 0 HIGH: 2 MEDIUM: 0 LOW: 4
Security Findings:
Severity Title Description
LOW No risky open ports detected No risky open ports detected
HIGH /etc/shadow permissions /etc/shadow permissions are too open
...
Contributions, bug reports, and feature requests are welcome!
Please fork the repository and open a pull request.