Skip to content
Claude Certified Architect – Professional (CCAR-P) Exam Prep

Lesson 23 of 31 · 7 min

x
23/31

LLM System Risks and Failure Modes

Video lesson: CCAR-P 23/31: LLM System Risks and Failure Modes
RiskWhat happensMitigations (verified unless marked)
Prompt injection (direct)A user crafts input to override instructionsHarmlessness screens, input validation, explicit refusal instructions, monitoring
Indirect prompt injectionContent the agent reads (files, web pages, tickets, MCP output) carries instructionsTreat tool output as untrusted; limit actions after reading untrusted content; permissions and sandboxing; Claude Code summarises web search results instead of passing raw content (verified)
JailbreaksAttempts to bypass safety behaviourLayered safeguards; screens; monitoring
HallucinationFluent, wrong contentAllow "I don't know"; extract quotes first for long documents; verify claims with citations and retract unsupported ones; retrieval grounding; validators
Prompt leakageSystem prompt revealedAnthropic has a guide on reducing prompt leaks; never place secrets in prompts (design guidance)
Data leakage and over-sharingSensitive data exposed to the wrong user or systemEnforce the caller's permissions at retrieval; redact; least privilege; retention controls (D5.4)
Excessive agency and tool misuseThe agent does more than intendedLeast-privilege tools, PreToolUse hooks, approval tiers, sandboxing, budgets (D5.1)
Supply-chain riskA malicious or buggy MCP server, plugin or dependencyAllowlist servers; review plugins (Anthropic has plugin security guidance); pin versions; managed settings (verified)
Over-reliance and automation biasHumans stop checkingSampling, seeded errors, accuracy reporting (D5.1)
Cost and resource abuseRunaway loops or malicious spendmaxTurns, maxBudgetUsd, rate limits, workspace spend limits, depth and concurrency caps (verified)
Truncation and silent failureOutput cut off or error swallowedCheck stop_reason; structured errors; no silent suppression (../../../CCAR-F-Claude-Certified-Architect-Foundations/knowledge/05-context-management-and-reliability/03-error-propagation.md)
Unexpected refusalsLegitimate request declinedrefusal is HTTP 200 with stop_details; avoid prompting for step-by-step reasoning in fields (reasoning_extraction); fallback path (verified)
Drift and regressionQuality changes after model, data or prompt changeEvaluation suite, monitoring, pinned versions (D6.5)
Availability and dependency failureAPI, tool or network outageRetries with backoff, timeouts, fallbacks, graceful degradation

Threat modelling an agent (design guidance)

For each agent ask: What can it read? What can it write or trigger? What untrusted content reaches it? What is the worst realistic outcome if an attacker controls that content? Then remove capability until the worst case is acceptable, and add approval for what remains (D3.2).

Exam traps

  • Trusting tool or document content as instructions.
  • Defending only the system prompt.
  • Granting broad tools "for flexibility".
  • Ignoring supply-chain risk for third-party servers.
  • Treating refusals as errors instead of an expected outcome to handle.

References

  1. Securely deploying AI agents — checked Oct 16, 2026
  2. Mitigate jailbreaks — checked Oct 16, 2026
  3. Reduce hallucinations — checked Oct 16, 2026
  4. Handling stop reasons — checked Oct 16, 2026

Check your understanding

  • An agent summarises customer emails and can send emails. Key risk?Show answer

    Answer

    Indirect injection leading to unauthorised outbound actions; restrict or gate the send tool.
  • Which control reduces unsupported claims?Show answer

    Answer

    Grounding: "I don't know", quotes first, citation verification.
  • What bounds a runaway agent loop?Show answer

    Answer

    Turn caps, spend caps, depth and concurrency limits.
Previous

Progress is saved in this browser.

Next Lesson