S
Study LibraryPractice Lab

Defense in Depth for AI Tools

atomic-noteD7 · 8.1%Section: D7 Security & SafetyUpdated 2026-11-15

No one guardrail is sufficient. Layer code-level validation, sandboxing, credentials, approval and model-facing instructions.

Blueprint area: D7 - Security and Safety MOC (official domain weight 8.1%).

Engineering principles

  • Scope tool permissions in code, add explicit allowlists and enforce authentication/authorization in the underlying service.
  • Use hooks for deterministic pre-execution checks where available and always evaluate their documented failure mode.
  • Use sandboxed environments and isolated credentials for risky code execution; never trust freeform generated shell commands by default.
  • Continuously run prompt-injection, exfiltration and privilege-escalation probes as part of release gates.

Failure modes

  • Prompt text cannot revoke the OS or cloud permissions actually granted to the process.
  • Audit logs without alerting and response ownership become passive records.

Check your understanding

  • ☐ Can a compromised tool result exfiltrate data despite a polite warning?
  • ☐ Prove denial at the system boundary with tests.

Security Boundaries and Least Privilege · PreToolUse Hooks and Deterministic Controls · Exam Blueprint and Coverage

Evidence and verification

  • Provenance: author-written engineering synthesis aligned to exam guide objectives; this is not a transcript or hidden Skilljar lesson.
  • Primary references:
  • Check currency: model options, pricing, API flags, release-specific behavior and runtime permissions can change after the source was read. See Source Register.