Your AI agent acts with its own permissions, not the user's — one PR tool became a backdoor

Adorable-Algae6903 · reddit · 2026-09-26

An engineer explains how a seemingly safe ops agent (open-PR-only permission) became a backdoor allowing read-only users to open PRs, because the agent acted with its own bot token. Key lessons: authorization can't live in the prompt, user identity must come from the session (Slack/SSO) not a tool argument, and no API answer means stop. Fix: verify the requester's push permission with GitHub before any write.

Related event: "PR-only" permission for ops agent turned into a full repo backdoor(2 posts)→

Original post →

More from coding & agent

coding & agent channel →