Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hermes Agent Memory Vault

License: MIT AWS Security Maintained by Merkaba AI Risk

Cloud-native, secure persistent memory backend for AI agents — enables multi-agent swarms to share learned skills and survive infrastructure failures.


Overview

hermes-agent-memory-vault provides a production-grade persistent memory layer for AI agents. API Gateway and Lambda intercept agent memory save operations and sync them to DynamoDB (metadata and fast lookups) and S3 (raw memory files and embeddings). This enables multi-agent swarms to share learned knowledge, maintain context across sessions, and recover from infrastructure failures without memory loss.

From a security perspective, the Vault is a critical component: it controls what agents remember, what they can access from shared memory, and ensures that sensitive information written to memory is encrypted and access-controlled.


Architecture

Agent (memory save request)
    │
    ▼
API Gateway
    │
    ▼
Lambda (memory interceptor)
    ├── Metadata → DynamoDB (fast lookup, TTL support)
    └── Raw memory / embeddings → S3 (encrypted, versioned)

Agent (memory read request)
    │
    ▼
API Gateway → Lambda → DynamoDB lookup → S3 fetch
    │
    ▼
Return memory to agent

Security Properties

Property Implementation
Encryption at rest S3 SSE-KMS + DynamoDB encryption
Access control IAM per-agent roles with memory namespace isolation
Memory namespace isolation Agents can only access their own namespace by default
Audit logging All memory reads/writes logged via CloudTrail
TTL and expiry DynamoDB TTL prevents stale sensitive data accumulation
Cross-agent sharing Explicit allowlist required for shared memory access

Deployment

cd terraform/
terraform init
terraform apply

Case Study / Usage Notes

Deployment at Merkaba AI Risk Management:

The Hermes Agent Memory Vault is deployed as the memory backend for Merkaba's internal multi-agent security audit system. During a red team exercise, the security team attempted to use a compromised agent to read memory from a neighboring agent's namespace. The IAM namespace isolation policy blocked the cross-namespace read and generated a CloudTrail alert within 8 seconds. The vault's TTL configuration also ensures that client data written to agent memory during engagements is automatically purged after 30 days, supporting data minimization compliance requirements.


Integration with Merkaba Security Stack


License

MIT License — see LICENSE for details.


Contact

Merkaba AI Risk Management security@merkabacreatives.org https://merkabacreatives.org/ai-risk Atlanta, GA — Remote Worldwide

About

Cloud-native persistent memory backend for AI agents. API Gateway + Lambda intercepts agent memory saves and syncs them to DynamoDB (metadata) and S3 (raw files). Enables multi-agent swarms to share learned skills and survive infrastructure failures

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages