Your personal AI-powered Linux security assistant that monitors, protects, and educates you about system security.
Talk to your security agent like a real security expert:
- "Is my system secure?"
- "Someone is trying to hack me"
- "Check if I have any vulnerabilities"
- "Explain what ports should be open"
- SSH brute-force detection
- Port scanning detection
- Unusual process monitoring
- File system integrity checking
- Automatic threat response
- Explains security issues in plain English
- Teaches you why things matter
- Offers "fix it for me" or "show me how" options
-
Install the agent:
cd ~/linux-security-agent ./install.sh source ~/.bashrc
-
Check your security status:
security-agent status
-
Ask questions naturally:
security-agent "is someone trying to hack me?" security-agent "what ports are open?" security-agent "check ssh security"
-
Start continuous monitoring:
security-agent monitor # Or as a service: sudo systemctl start security-agent
security-agent- Interactive modesecurity-agent status- Quick security checksecurity-agent scan- Comprehensive scansecurity-agent monitor- Start monitoringsecurity-agent history- View past eventssecurity-agent <question>- Ask anything!
The agent continuously:
- Monitors system logs and network activity
- Detects suspicious patterns and anomalies
- Alerts you in plain English
- Takes action to protect your system
- Learns your normal usage patterns
$ security-agent "check ssh"
🔐 Checking SSH Security...
✅ SSH service is running
⚠️ 4 failed login attempts in the last 24 hours
I can block these IPs if you'd like.$ security-agent
💬 Hi! I'm your Linux Security Assistant.
🛡️ Security Agent > someone is port scanning me
🚨 Let me check for port scanning activity...
⚠️ Detected rapid connection attempts from 192.168.1.105
Blocking this IP and tightening firewall rules...
✅ Threat neutralized! Added firewall rule to block scanner.When running as a service, the agent:
- Blocks IPs after repeated failed SSH attempts
- Alerts you to new services or ports
- Checks for security updates
- Monitors for privilege escalation
- No cloud dependency - Runs entirely on your machine
- Privacy-first - No data leaves your system
- Transparent actions - Always explains what it's doing
- Safe defaults - Won't break your system
- Educational - Teaches you as it protects
- Integration with AI APIs for smarter analysis
- Web dashboard for visual monitoring
- Mobile notifications
- Advanced threat intelligence
- Custom security policies
- Integration with other security tools
- Linux (tested on Fedora, Ubuntu, Debian)
- Python 3.6+
- systemd (for service mode)
- sudo access (for some security features)
Agent won't start:
# Check logs
cat ~/linux-security-agent/logs/agent.log
# Run directly to see errors
python3 ~/linux-security-agent/src/security_agent.pyPermission issues:
- Some features require sudo (firewall, system logs)
- Run install.sh as regular user, not root
Service issues:
sudo systemctl status security-agent
sudo journalctl -u security-agent -fThis is a prototype demonstrating how AI can make Linux security accessible to everyone. Feel free to extend and improve!
MIT - Use freely and responsibly!