Skip to content

v1.4.0 — Zero Trust Agent Modules

Latest

Choose a tag to compare

@ranjith-src ranjith-src released this 18 Feb 11:11
· 4 commits to main since this release

What's New

4 new modules for AI agent workspace hardening, gated behind --agent-dir. Users without agents are completely unaffected.

New Modules

Module What it does
agent_secrets Scans for plaintext API keys, checks SOPS encryption, deploys load-secrets.sh helper
agent_webhook_auth Verifies webhook listener, UFW rules, TLS proxy, auth, rate limiting
agent_logging Creates log directory, logrotate (90 days), append-only flags, auditd rules
agent_data Checks data directory permissions, gitignore, git history, encryption at rest

New CLI Flags

Flag Description
--agent-dir DIR Agent workspace directory (required to enable agent modules)
--webhook-port PORT Webhook listener port (default: 5000)
--agent-data-dir DIR Sensitive data directory to protect

Example

sudo vps-harden --username deploy \
  --ssh-key ~/.ssh/authorized_keys \
  --agent-dir ~/.my-agent \
  --webhook-port 5050 \
  --agent-data-dir ~/.my-agent/data \
  --dry-run

Bug Fixes

  • Fixed sc_add() arithmetic crash: ((SC_PASS++)) when counter is 0 returns exit code 1 under set -euo pipefail, crashing any module calling sc_add in a subshell

Other Changes

  • Agent Security section added to verify scorecard (only shown with --agent-dir)
  • Debian marked as untested in compatibility table
  • Module count: 14 → 18