Prerequisites
- A Mnemom API token in
$MNEMOM_TOKEN - An agent ID in
$AGENT_ID(e.g.mnm-550e8400-e29b-41d4-a716-446655440000)
Step 1 — Enable Safe House in observe mode
Start withobserve mode. This runs full threat analysis with zero latency impact, so you can see what Safe House would catch before committing to blocking. Safe House configuration lives on the agent’s protection card — mode is the top-level master switch; screen_surfaces decides which surfaces the detector pipeline inspects.
card_id, _composition, and any platform / org defaults that flow into the agent’s effective card.
CLI alternative. Save the card as protection.card.yaml and publish with one command — no curl required:
Step 2 — Send a test threat message
Send a BEC (business email compromise) style message through the gateway and check the response headers. This will not block anything in observe mode — but it will log a detection.X-Safe-House-* headers were retired in favor of the unified X-Mnemom-Verdict four-checkpoint structure (see Headers reference):
In observe mode,
X-Mnemom-Verdict.front reports observed so you can track what would have happened in enforce mode — the message still reaches the agent regardless. The X-Mnemom-Advisory header carries the detector findings as a JSON array; see /api-reference/headers#x-mnemom-advisory.Step 3 — Review detections in the observatory
Open the Observatory to see Safe House detections logged from your test:- Go to mnemom.ai/observatory
- Select your agent from the sidebar
- Click Security in the top nav
agent_id to scope to a specific agent:
Step 4 — Switch to enforce mode
Once you are comfortable with what Safe House is catching, switch to enforce mode. From this point, messages that score above thequarantine threshold are held for review, and messages above the block threshold are dropped.
Step 5 — See a message get quarantined
Send the same BEC message again, this time in enforce mode:Step 6 — Review and release from quarantine
Inspect the quarantined message and decide whether to release it or discard it. Quarantine endpoints are org-scoped (one quarantine queue per org); thequarantine_id carried in the 422 response body is the lookup key:
DELETE on the quarantine resource:
Next steps
Add canary credentials
Plant fake API keys in agent context. Any attempt to use them is a zero-FP indicator of successful exfiltration.
Configure source trust
Allowlist trusted upstreams in
trusted_sources.{domains, agent_ids, ip_ranges} to short-circuit detection on known-good callers (each skip is still logged for audit).Enable outbound DLP
Scan agent responses for PII and secrets before they are returned to callers.
Review the Observatory
Security overview, session risk trends, and per-category detection breakdowns for all your agents.
See also
- Safe House concept — Full explanation of modes, threat categories, and detection layers
- Safe House Gateway Integration — How Safe House fits into the Mnemom gateway request pipeline
- Enforcement Modes — How the gateway handles violations after they reach the agent