ProcessGuard is a Bash-based Linux process monitoring utility that continuously scans running processes, detects suspicious or unauthorized applications, and records security events for system administrators and security teams.
Designed as a practical Linux administration and security project, ProcessGuard helps improve system visibility by identifying potentially malicious processes and maintaining detailed audit logs.
- 🛡️ Detects suspicious or unauthorized processes
- 🔍 Monitors running processes using
ps - ⚙️ Supports a customizable list of suspicious keywords
- 📝 Generates timestamped security logs
- 🧹 Automatically removes logs older than 7 days
- ⏰ Cron-friendly automation
- ⚡ Lightweight with minimal system overhead
- 🐧 Compatible with most Linux distributions
ProcessGuard/
├── processguard.sh
├── logs/
└── README.md
Clone the repository:
git clone https://github.com/Kachinonye/processguard.gitNavigate into the project directory:
cd processguardMake the script executable:
chmod +x processguard.shRun the monitoring utility:
./processguard.shOr schedule it with cron for continuous monitoring:
*/5 * * * * /path/to/processguard/processguard.sh >> /path/to/processguard/processguard_cron.log 2>&1ProcessGuard can detect processes matching configurable keywords, including examples such as:
- nmap
- hydra
- netcat (
nc) - sshpass
- msfconsole
- cryptominer processes
The keyword list can easily be customized to suit your environment.
This project showcases practical experience with:
- Linux System Administration
- Bash Shell Scripting
- Process Monitoring
- Security Monitoring
- Threat Detection
- Log Management
- Automation
- Cron Scheduling
- Technical Documentation
ProcessGuard is useful for:
- Linux System Administrators
- DevOps Engineers
- Security Analysts
- Home Lab Environments
- Server Security Monitoring
- Linux Administration Training
Future releases may include:
- Email notifications
- Slack and Discord alerts
- HTML security reports
- JSON export
- Process reputation checking
- Whitelisting and blacklisting
- CPU and memory threshold detection
- Multi-server monitoring
Kachinonye Nmezi
Linux Systems Administrator | Bash Automation Specialist | Cloud Engineering Enthusiast
- GitHub: https://github.com/Kachinonye
- LinkedIn: https://www.linkedin.com/in/kachinonye-nmezi-74170723b/
- Email: kachinonye@gmail.com
Licensed under the MIT License.