Skip to content

Commit 4635666

Browse files
docs: add Section 9 for Identity Propagation and Context
Adds technical guidance on propagating user identity (JWT) to backend tools to prevent privilege escalation in AI agents. Closes #2041.
1 parent 59604a2 commit 4635666

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

cheatsheets/AI_Agent_Security_Cheat_Sheet.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -662,15 +662,15 @@ class SecureContextBuilder:
662662
```
663663
### 9. Identity Propagation & Context
664664

665-
-Enforce User Context Propagation:
665+
- Enforce User Context Propagation:
666666
Require agents to pass the user's original authentication token (e.g., JWT) to any backend tool or API.
667-
-Validate at the Source:
667+
- Validate at the Source:
668668
Ensure backend services validate the user's identity and permissions, preventing the agent from acting as a privileged "super-user".
669-
-Maintain Audit Trails:
669+
- Maintain Audit Trails:
670670
Log all agent actions with the associated user identity to ensure non-repudiation and clear accountability.
671-
-To ensure the agent only has the same permissions as the user (no "Super-User" powers).
672-
-Telling the database: This request is coming from User, only show him his own data.
673-
-Prevent Privilege Escalation: Ensure the agent only possesses the same permissions as the active user by acting as a passthrough for the user's authenticated identity.
671+
- To ensure the agent only has the same permissions as the user (no "Super-User" powers).
672+
- Telling the database: This request is coming from User, only show him his own data.
673+
- Prevent Privilege Escalation: Ensure the agent only possesses the same permissions as the active user by acting as a passthrough for the user's authenticated identity.
674674

675675
Implementation: Passing User Identity to AI Tools (Python/FastAPI)
676676
```Python

0 commit comments

Comments
 (0)