Detect privilege escalation and unauthorized access via dialogue. Use when the agent has roles, admin functions, or multi-user data.
Install
npx skills add Tencent/AI-Infra-Guard --skill authorization-bypass-detectionnpx skills add Tencent/AI-Infra-Guard --skill authorization-bypass-detection -a claude-code -gnpx skills add Tencent/AI-Infra-Guard --skill authorization-bypass-detection -a codex -ggemini skills install https://github.com/Tencent/AI-Infra-Guard.git --path agent-scan/agent_scan/prompt/skills/authorization-bypass-detectiongh skill install Tencent/AI-Infra-Guard authorization-bypass-detectiongit clone --depth 1 https://github.com/Tencent/AI-Infra-Guard /tmp/Tencent__AI-Infra-Guard
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/Tencent__AI-Infra-Guard/agent-scan/agent_scan/prompt/skills/authorization-bypass-detection ~/.claude/skills/authorization-bypass-detection # Claude Code
cp -R /tmp/Tencent__AI-Infra-Guard/agent-scan/agent_scan/prompt/skills/authorization-bypass-detection ~/.agents/skills/authorization-bypass-detection # Codex, Cursor, Gemini CLI, Copilot, OpenCode