https://github.com/nadmax/audit.sh
My Linux audit script
https://github.com/nadmax/audit.sh
audit linux shell
Last synced: over 1 year ago
JSON representation
My Linux audit script
- Host: GitHub
- URL: https://github.com/nadmax/audit.sh
- Owner: nadmax
- Created: 2025-02-28T21:48:06.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-10T07:42:56.000Z (over 1 year ago)
- Last Synced: 2025-03-10T08:30:36.956Z (over 1 year ago)
- Topics: audit, linux, shell
- Language: Shell
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Audit: audit.sh
Awesome Lists containing this project
README
# audit.sh
This script does the following tasks:
- Checks if you run the script with sudo
- Detects which OS it is to manage audit
- Checks system infos (kernel version, hostname, etc.)
- Checks security updates
- Lists users with UID 0 (root users)
- Lists users with empty passwords
- Lists users belonging to the sudo group
- Checks SSH port
- Detects if SSH root login is activated
- Checks unauthorized login attempts
- Checks hidden files and directories
- Scans rootkits
- Checks rogue processes
- Checks file permissions
- Lists installed packages
- Lists running services
- Checks firewall status
- Lists active network connections
- Logs each step
- Calculate audit time
To run the script:
```bash
sudo ./audit.sh
```