Agent identity

From RedHatProductSecurity/prodsec-skills · View interactive version

Agent identity is an AI agent skill from the GitHub repository RedHatProductSecurity/prodsec-skills. Enforce that AI agents have their own identity separate from human users. Use when designing, building, or reviewing agent identity management, agent authentication, or agent permission models.

How to use this skill

Skill file

Agent Own Identity

Security Recommendation

Agents SHOULD have their own identity and SHOULD NOT use the identity of a human user. Each agent must be a distinct, identifiable entity in the system.

Rationale

Giving agents their own identity enables:

Using Human Identity (Anti-Pattern)

When an agent acts under a human user's identity:

Implementation Guidance

Example: Agent vs. User in Audit Log

{
  "action": "tool:execute",
  "tool": "database-query",
  "actor": {
    "type": "agent",
    "id": "agent:data-analyst-v2",
    "delegated_by": "user:jane.doe"
  },
  "timestamp": "2026-03-03T10:15:00Z"
}
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.