PrepGenAICerts

Authentication, Authorization & the Confused Deputy

Core

Analyze integrations for authentication and authorization gaps · Difficulty 3/5

0%
authenticationauthorizationconfused-deputysecretssecurity

Explanation

An architect analyzes every integration for authentication/authorization gaps before it ships. The two concepts are related but distinct, and conflating them is the most common source of gaps.

Authentication vs. Authorization

ConceptQuestion it answersExamples
Authentication*Who* is calling?API keys, OAuth, service identities
Authorization*What* may that identity do?Scoped tool/data access limited to role or entitlement

Every request to Claude and to any downstream tool must be authenticated. Authorization then decides how far that authenticated identity is allowed to reach — tool access should be scoped so an agent can never read or mutate data the end user is not entitled to.

The Confused-Deputy Risk

The **Confused Deputy** pattern is the risk that matters most in agentic integrations: an agent acting with broad *service* credentials on behalf of a low-privilege *user* can leak or change data the user should not be able to touch. The fix is to scope tool permissions to the user's entitlements, not the service account's broader credentials — the agent should never be able to do more on the user's behalf than the user could do directly.

Secrets Management

Secrets live in environment variables or a secret store — never hard-coded, committed to version control, or placed directly in prompts (this last point connects to prompt-injection and data-handling guardrails covered elsewhere in the exam).

The Throughline

Least privilege runs through both authentication and authorization: authenticate every hop in the chain, and authorize each hop to the narrowest scope that still lets it do its job.

Key Takeaways

  • Authentication proves identity; authorization scopes what that identity may do
  • Confused deputy: an over-privileged agent acting on behalf of a low-privilege user can leak or mutate unauthorized data
  • Scope tool permissions to the user's entitlements, not the service account's broader credentials
  • Authenticate every hop: Claude to tool, and tool to downstream service
  • Secrets belong in environment variables or a secret store — never hard-coded, committed, or placed in prompts

Glossary Terms

Related Concepts

PrepGenAICerts.com is an independent third-party exam-prep platform for the Claude Certified Architect (CCA-F) certification. We are not affiliated with, endorsed by, or acting on behalf of Anthropic PBC.

Note: New premium upgrades are temporarily paused while we resolve an issue with our payment provider. Existing premium members retain full access.