Anup ShresthaCase study

HackAPrompt 2.0 · Learn Prompting

The arena for breaking AI

HackAPrompt 2.0 is the world's largest AI red-teaming competition: thousands of hackers live at once, trying to jailbreak 20+ models for a share of more than $100,000 in prizes. I was the lead engineer for the year it ran, and I built the platform underneath it on Next.js and Supabase: the scoring engine that judges every attempt, teams, live leaderboards, and challenges where the model can fight back with tools of its own.

Visit live site
Role
Lead engineer
Years
2024–25
Stack
Next.js · Supabase · WebSockets
Scope
$100K in prizes, 4 tracks
HackAPrompt landing page on a dark navy ground: the headline Hack AI. Win Money., copy noting over $100,000 already given away in prizes, a Start Hacking Now button, a 20+ Models chip with provider logos, and a Discord community card
Fig. 01The front door. One promise in two sentences, one button, and the two proofs that matter: 20+ target models and $100,000 already paid out.

02

Four ways in

A competition this size gets absolute beginners and professional red-teamers in the same hour, so the tracks are a difficulty ladder rather than a menu. Tutorial teaches prompt injection from zero. CBRNE raises the stakes to genuinely harmful elicitation, the category labs actually worry about. MATS x Trails is the advanced tier, indirect prompt injection against agents, where the attack rides in through the data instead of the chat box.

The fourth track was a partnership with PointCrow, a streamer with an audience that had never heard of red-teaming. His challenges wrapped the same mechanics in scenarios like botched surgeries and a murder mystery, and the countdown on the card did more for sign-ups than any banner we ran. Each track is just configuration on the same challenge engine, which is what let us stand a new one up in days.

Compete In One of Four Tracks: a Tutorial card tagged beginner, a CBRNE card tagged intermediate for chemical, biological, radiological, and explosives elicitation, a MATS x Trails card tagged advanced for indirect prompt injection, and a featured HackAPrompt x PointCrow partnership card with a live countdown
Fig. 02The four tracks. A ladder from tutorial to indirect prompt injection, plus the PointCrow partnership track with its countdown running.

03

A challenge is a conversation

The core loop is a split screen: the brief on the left, a live model on the right. The one shown here allows only emoji as input and asks you to make the model say an exact phrase, and at the time of the screenshot nobody in the world had solved it. Attempts are cheap by design. You talk to the model as long as you like, start over freely, and only submit for judging when you think you have it.

Judging is where most of my engineering time went. A single regex cannot decide whether a model was actually jailbroken, so I built a dynamic scoring algorithm: each challenge declares its own success criteria, from exact-match phrases with formatting stripped to model-graded evaluations of whether harmful content was really produced, and points scale with difficulty and token spend. Some challenges hand the model tools of its own, which means the judge has to reason about what the model did, not just what it said. Every verdict had money on it, so the same submission had to score the same way every time.

The Emoji Defense challenge: a brief explaining the model must say an exact phrase while the attacker may use only emoji, a live model chat panel beside it, counters for 10,000 points available and 0 earned, a token budget, and buttons to start a new attempt or submit the current response for judging
Fig. 03The Emoji Defense. Brief on the left, live model on the right, 10,000 points on the table. Attempts are free; judging is the commitment.

04

Thousands at once

Launch days put thousands of participants on the platform simultaneously, all hammering the same models and all wanting to know where they stand right now. Standings, points, and completed-challenge counts stream over WebSockets, so a solve on one continent moves the leaderboard on another without anyone refreshing. Supabase carries the state; the realtime layer carries the mood.

Fairness at that scale is a product feature, not a policy page. Teams form inside the platform and score as one entry, usernames stay masked on public boards, and every submission keeps its full transcript so a disputed prize can be replayed end to end. The dashboard ties it together: pick a track, see your progress, and jump back in where you left off.

HackAPrompt dashboard: a Prompt Arena is Live banner announcing the PvP public beta, competition track cards for Tutorial, HackAPrompt 1.0, CBRNE Practice, and PointCrow's track, and a HackAPromptle daily puzzle card
Fig. 04The dashboard. Tracks as cards, the daily puzzle, and the Prompt Arena banner announcing PvP jailbreaking against live players.
MATS x Trails global leaderboard: a top score of 717,876, a rank table with masked usernames, team entries, points, and completed challenge counts out of 27 total challenges
Fig. 05The MATS x Trails leaderboard, live. Teams and solo entries in one table, usernames masked, 27 challenges in the track.

System notes

20+ target modelsDynamic scoringLive leaderboardsTool-calling challenges$100K awardedArena navySignal blue