Hacker

Ritesh Mahato

@ritesist

Joined Sep 2026Student at iterIndia

Projects

  • darkflag: pentest the code hiding behind your OFF feature flags

    Flagsmith Experimentation HackathonNov 2026

    Teams merge unfinished, risky code into main behind a feature flag that is OFF. Every scanner and pentester then hits a 404 and signs the release off. Two weeks later someone flips the flag in the dashboard. There is no deploy and no new CI run, and code nobody tested is live. We call this the "Friday 4 PM time bomb". darkflag is an AI security agent that tests tomorrow's flag state today: 1. MAP: a Babel AST parser maps every Express route to the Flagsmith flags its handler checks and the auth middleware in front of it. 2. PROBE TWICE, IN A SANDBOX: it starts the app against a Flagsmith Sandbox environment. Pass 1 copies Production's flag states (what users see today). Pass 2 turns every flag ON (what users get after the next toggle). 3. PROVE: only a real 2xx response that leaks a live key, a secret field or PII counts. Evidence is redacted, and every finding comes with a copy-paste curl. 4. RESTORE: Sandbox flags go back to how they were, even on errors or Ctrl+C. 5. EXPLAIN: Claude writes an incident report (root cause, blast radius, fix diff). It runs with no tools, and the app's text is fenced off as untrusted data. 6. CONTAIN, WITH APPROVAL: it proposes KILL (turn a live vulnerable flag off), HOLD (write a security warning onto the flag) or WRAP (create a new kill-switch flag for an unflagged route, patch it and commit). Nothing runs until a human types "y". Who would use it: any team that uses feature flags to dark-launch code, especially AI features and internal tools that get merged early. Measured on Flagsmith Cloud: a 32 s full scan, 0 Production writes during a scan, and a vulnerable route back to 404 five seconds after a KILL is approved, with no redeploy. 253 tests pass, and 5 parallel AI testers tried to break it.

  • Notary: AI coworkers that have to show receipts

    Flip the Switch HackathonNov 2026

    AI coding agents are good at fixing things and bad at reporting what they did. An agent says "all tests pass", a support lead relays "fixed and tested" to a customer, and nobody actually checked. A manager who needs change-management evidence (who asked, who approved, what was tested) only has the agent's own transcript. Notary is a work-order desk built on Switch for teams that let AI agents do real work. People file requests in team chat (the desk room). The agents (designed for Claude Code to build and OpenCode to review) work in a separate work room. A Rust Notary agent, the only member of both rooms, checks every claim they make against evidence no agent can write: git (its own mirror), its own sandboxed re-run of the tests at the exact commit, and Switch's tool-activity log as corroboration. Each claim comes back backed, contradicted or unverified, with one of 23 error codes. Contradicted reports bounce back to the agent with evidence IDs (twice at most), then escalate to a person. People only ever see checked claims and a Switch approval card. The Notary enforces who may press it: the requester is refused, the approver counts. On approval it signs the hash-chained ledger with Ed25519, posts the head in the room as a witness, and uploads a receipt anyone can verify offline with notary-verify. Change one byte and it fails. It's for engineering, support and ops teams who want AI agents in their chat but need proof, not promises, before anything ships. Verified end to end on real Switch 0.31.0 + Mattermost with scripted agents: `make demo-offline` runs six scenarios with no model keys, and CI runs it too. The live Claude Code/OpenCode setup is built and documented but wasn't run end to end during the hackathon.