🔒 Hermes Agent Security Audit — AI Agent Antivirus & Vulnerability Scanner
Free. Open-source. No API keys, no paid tools, no Docker. 12 battle-tested security checks for Linux servers running AI agents.
When to Use
- The user asks to audit or harden a Linux server.
- Checking for malware, rootkits, crypto miners, or SSH brute force.
- After installing new tools or Docker containers.
- When CPU or memory usage looks unusual.
- Before exposing the agent to external platforms (Telegram, Discord).
The 12 checks
- Open ports — find hidden services (CUPS 631, SMTP 25, Zabbix 10050).
- Process audit — spot crypto miners (xmrig, stratum) and orphaned proxies.
- SSH brute force — count failed auth attempts, identify attacker IPs.
- SUID/SGID files — privilege-escalation vectors.
- Cron jobs — hidden miners and persistence across all users.
- Docker audit — privileged containers, host network, unexpected images.
- chkrootkit — signature-based rootkit scan.
- rkhunter — behavioral rootkit + backdoor scan.
- ClamAV — full antivirus over /tmp, /opt, /root.
- Lynis — hardening score (0–100).
- Exposed credentials — API keys, tokens, private keys in plain sight.
- Network connections — who's calling home.
The exact commands for each method live in AGENTS.md.
Procedure
- Run the 12 checks in order.
- Classify each finding by severity (critical / high / medium / low).
- Apply safe fixes where automated (fail2ban, disable services, relocate keys).
- Report results with severity, flagging known false positives.
Pitfalls
- chkrootkit false-positives on modern kernels (
basename,date,dirname) — expected, don't alarm. - rkhunter flags snap users and hidden config files — benign.
- Never run destructive commands without user confirmation.
Verification
- Each of the 12 checks produced a result.
- Findings are classified by severity and fixed or flagged.
- The final report lists what changed (ports closed, services disabled, keys moved).