Skip to content

AI-Invention/hermes-security-layer

Hermes Security Layer 🔒

License: MIT PRs Welcome

Security layer for Hermes Agent: owner-only access control, automatic data redaction, audit logging, and Telegram alerts for unauthorized access.

Features

  • 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

Quick Start

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
    pass

Installation

hermes skill install AI-Invention/hermes-security-layer

Requirements

  • Hermes Agent v2+
  • Python 3.10+

License

MIT © AI Invention

About

Security layer for Hermes Agent: owner access control, data redaction, audit logging, Telegram alerts

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages