Skip to main content

Defence-in-depth

Canonical inventory

Security surfaces and Scout requirements: Capability inventory.

Carina layers multiple containment controls when Labyrinth Scout is enabled.

Layers

LayerModuleEnv
1 Pre-LLM filteragent-guard-adapter.ts + prompt-guard.tsAGENT_GUARD_ENABLED=true
2 Tool sequence guardtool-sequence-guard.tsTOOL_SEQUENCE_GUARD_ENABLED (default on with Scout)
3 JIT credentialsjit-credentials.tsJIT_CREDENTIALS_ENABLED (default on with Scout)
4 Scout Type 3 pipelineScout anomaly + injection eventsLABYRINTH_ENABLED=true
5 Forensic snapshotScout forensic_snapshotsautomatic on suspend

Agent Guard (optional)

Install the Python package on the host running Carina:

pip install agent-guard-plugins

Enable in .env:

AGENT_GUARD_ENABLED=true
AGENT_GUARD_THRESHOLD=0.4

If the package is missing, Carina falls back to the built-in PromptGuard patterns.

Tool sequence rules

CloneGuard-style rules block multi-step exfiltration before execution:

  • SEQ-001 sensitive file read then network exfil
  • SEQ-002 sensitive read then email send
  • SEQ-005 config write then privilege escalation shell
  • SEQ-003 rapid read + outbound burst

Blocked sequences are reported to Scout as tool_sequence_blocked events.

JIT credentials

Privileged tools do not have standing access. Each session issues short-lived grants after user confirmation:

  • Default tools: shell-exec, email-send, file-write, http-request, code-exec
  • Grants expire after one use or five minutes

Override with JIT_CREDENTIAL_TOOLS.