Security Protection Tools π‘ BETA
Install and verify the optional host-protection tools through the supported crate, and record what each one actually checks.
Admin guide Β· protection tool runbook
| When to use | Before you start | Steps | Verify | Roll back |
|---|---|---|---|---|
| Hardening a host, preparing an offline appliance | Root access on the target host, installer available | Install, verify binaries, run one scan | Tool present and offline-capable | Uninstall via the documented path |
When to use
Use this runbook when a host must run local malware or rootkit checks, or when an offline appliance needs its scanner provisioned before first boot.
Before you start
- The tools are managed by
botserver/crates/botsecurity-protection/; ClamAV is pinned inbotserver/3rdparty.toml(1.5.5) and its checksums are verified for offline installs. - Office imports fail closed when no malware scanner is available; the server entry point is
run_axum_server_malware_scanner.rs. - Root/sudoers access is required to run and update these tools. Keep the sudoers rules scoped to the named binaries; do not grant a shell.
- No CDN: signatures and binaries must come from the local installer cache.
Steps
# 1. Confirm the crate owns the installer and know which binaries it manages.
grep -RIn "fn install\|binary_name\|clamav\|lynis\|rkhunter\|suricata" \
botserver/crates/botsecurity-protection/src --include='*.rs' | head -40
# 2. From an elevated shell on the target host, run the documented install
# command exposed by the app or API. Do not fetch a third-party script.
# 3. Verify each installed binary and its signature state.
command -v clamscan
command -v lynis
command -v rkhunter
command -v chkrootkit
# 4. Run one read-only scan and keep the output under /tmp.
clamscan --version
Verify
| Tool | Command | Pass condition |
|---|---|---|
| ClamAV | clamscan --version |
reports the pinned version |
| Lynis | command -v lynis |
binary present |
| RKHunter | command -v rkhunter |
binary present |
| Chkrootkit | command -v chkrootkit |
binary present |
| Suricata | service status | running only if enabled |
| Offline cache | installer directory | archives present with matching SHA-256 |
| App import | upload an Office file | refused when no scanner is configured |
Roll back
π΄ Use the uninstall path documented by the installer: remove the scoped sudoers entries first, then the packages, then any locally installed tool. Re-run the table to confirm the host is back to its prior state; keep a snapshot of the host before the change.