-
Notifications
You must be signed in to change notification settings - Fork 0
Architecture and Security
Frody edited this page Sep 4, 2026
·
1 revision
AgentGuard is structured as an in-process interceptor to minimize serialization overhead and avoid external network hops.
[ User Query ]
│
▼
[ AgentGuardSuite ] ──────> 1. Token Budget Check (Local Estimator)
│ ──────> 2. Injection Rule Matching (Regex Heuristic)
│ ──────> 3. PII Redaction & Tokenization
▼
[ Sanitized Prompt ]
│
▼ (Outgoing to Cloud)
[ Third-Party LLM ] (OpenAI / Claude / Gemini / Ollama)
│
▼ (Incoming Response)
[ Raw LLM Output ]
│
▼
[ AgentGuardSuite ] ──────> 4. Token Inversion (Restore surrogate tokens)
│
▼
[ Unmasked Response to User ]
- Direct Instruction Injection: Prompts attempting to clear conversational memory, reset initial instructions, or ignore developer rules.
- Persona Hijacking (DAN Attacks): Prompts forcing models into unrestricted developer modes or simulated evil personas.
-
Delimiter Forgery: Injected text containing ChatML delimiters (
<|im_start|>system) designed to fool the model into believing the user prompt is a system message. - Data Exfiltration: Prompts tricking the model into outputting the system prompt or developer secrets.
- PII Cross-Border Leakage: Sending customer credit card details, government IDs, or credentials to third-party model hosts violating GDPR or PCI-DSS.
AgentGuard • Enterprise AI Security, PII Masking & Prompt Firewall • GitHub