Hacker
Yarra satwik
@yarrasatwik
Elsewhere
Stack
- Python
Projects
Gatecrasher: the AI red-team agent for Flagsmith
Flagsmith Experimentation HackathonNov 2026
I built Gatecrasher, a red-team agent for Flagsmith. It finds the ways a user can get past your flags. It fixes each one after a person approves. Then it attacks again to prove the fix works. The problem: teams use flags to lock paid plans, admin tools and betas. So flags are access control now. Flagsmith's security docs show the risk: a user changes the plan trait from silver to gold and gets paid features. The setting that allows this is on by default. Broken access control is number 1 in the OWASP Top 10. Flagsmith already has the controls to stop this. Gatecrasher checks that each project uses them. On my self-hosted Flagsmith lab it found all 13 planted problems, with no false positives. The first audit found 8 ways in and 17 findings. I approved 4 fixes, and 14 findings went from EXPLOITABLE to BLOCKED. The 3 that remain need a server code change. Gatecrasher writes that change as a diff for the app's own files. Who uses it: teams that gate features, plans or experiments with Flagsmith. Security engineers, platform teams and developers who want proof, not guesses. How it works: 1. It starts with the public website only. It finds the Flagsmith client key in the JavaScript and lists every flag a visitor gets. 2. It attacks. It sends forged traits and new identifiers to the live API. It uses Flagsmith transient identities, so it stores nothing. 3. It loads the environment document into Flagsmith's own engine. It solves each segment rule for the smallest input that unlocks a flag. Engine and live API agree on 1000 of 1000 identities. 4. It writes one fix plan for each root cause. Each plan shows the Flagsmith change, the lines of your code that will break, and a code diff. 5. A person approves. They type the environment name and the end of the plan hash, then use their passkey (fingerprint or PIN). 6. It applies the change with the Flagsmith CLI, waits until the live API agrees, and attacks again. You can roll back with one click. 7. It watches. A Flagsmith webhook starts a new check a few seconds after any change. You get one Go program with a CLI, a web UI, a GitHub Action, Slack alerts and a read-only MCP server.