Security layer for Hermes Agent: owner-only access control, automatic data redaction, audit logging, and Telegram alerts for unauthorized access.
- Owner Access Control — Only Faraz (Telegram ID 8807565897) gets full access
- Auto-Redaction — API keys, bearer tokens, emails, and IPs are redacted from logs/output
- Audit Logging — All access attempts logged to
/opt/data/security/access.log - Telegram Alerts — Unauthorized access attempts trigger instant Telegram notification
from security_layer import SecurityLayer
security = SecurityLayer(
owner_id=8807565897,
telegram_bot_token="your_bot_token",
telegram_chat_id="your_chat_id"
)
# Before privileged operations:
if security.require_owner(user_id, action_name):
# proceed with privileged operation
passhermes skill install AI-Invention/hermes-security-layer- Hermes Agent v2+
- Python 3.10+
MIT © AI Invention