Security Boundaries and Least Privilege
atomic-noteD7 · 8.1%Section: D7 Security & SafetyUpdated 2026-11-15
Credentials and data access must be scoped to the caller and task rather than the agent’s convenience.
Blueprint area: D7 - Security and Safety MOC (official domain weight 8.1%).
Engineering principles
- Use per-user or workload identity, least-privilege roles, permission checks on each tool request and tenant-aware data filtering.
- Separate read-only analysis tools from write-capable operations; approval is mandatory where policy or risk demands it.
- Keep credentials out of prompts, markdown files, logs and tool outputs; use a secret manager and rotation policy.
- Check data retention, privacy, encryption, auditability and provider boundary before connecting regulated data.
Failure modes
- A shared service account can bypass user-level authorization.
- Embedding API keys in an MCP server command or repository is not safe secret management.
Check your understanding
- ☐ Audit a tool call from an unauthorized tenant.
- ☐ Verify that read-only permissions genuinely prevent writes.
Related knowledge
MCP Transport and Authorization · Prompt Injection and Data Trust Boundaries · 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.