Hacker

Manav Bajaj

@manavbajaj

Joined Nov 2026Student at Christ UniversityIndia

Projects

  • Sentinel: AI security agent for payment gateways

    Flagsmith Experimentation HackathonNov 2026

    Sentinel is an AI security agent for payment gateways, built on self-hosted Flagsmith. The problem: card testing. Fraudsters take lists of stolen cards and fire hundreds of ₹1 payments at a small shop to find out which cards still work. Every success later becomes a chargeback (about ₹1,000 in fees each), and too many can get the shop banned from taking cards. Security teams usually notice hours later. Who would use it: the fraud or security team at a payment gateway, and the small merchants it protects. How it works: Sentinel watches every payment on PayLoop (a demo gateway) in a look → think → act → check loop. Plain code detects card testing (many tiny payments, mostly declined, many different cards). An LLM (Groq) picks the first response from a fixed list of allowed actions and explains it in plain English. Sentinel never touches code or the database: it defends only by changing Flagsmith flags. - Each shop is a Flagsmith identity; its defence level (0-3) is an identity override, and what each level does (OTP, minimum amount, failed tries per card, foreign cards, known customers only, payout hold) is a remote config rule book. - Before rolling out OTP, Sentinel runs its own A/B test: a multivariate flag splits cards 25/75, and it compares stolen cards that got through against honest customers lost. In the demo: 0 of 17 with OTP vs 9 of 58 without, so it rolls OTP out to the whole shop. - Flagsmith also controls the AI: an agent_policy flag decides what it may do alone (refunds and lockdown need human approval, max 10 actions an hour), and a sentinel_enabled flag is a kill switch. PayLoop reads every flag through the server SDK in local evaluation mode, so checks never slow a payment, and every change Sentinel makes is instant, reversible and visible in Flagsmith.