Skip to main content

About the project

Sentinel-Trap: a security gateway that traps hackers and learns from them

Most web apps protect themselves by blocking an attacker the moment something looks suspicious. The attacker gets an error, learns the defence exists, and tries again with a slightly different trick. Sentinel-Trap takes a different approach: it lets the attacker believe they’ve succeeded, watches everything they do, and learns from it.

  1. The hacker walks into the trap. Every request reaches our gateway before it reaches the real application. The gateway checks it against detection rules for SQL injection and prompt injection. Normal users pass straight through to the real app. When a request looks malicious, the gateway doesn’t block it. It silently reroutes the attacker to a honeypot, an exact copy of the app filled with fake data.

  2. The hacker thinks it worked. The honeypot answers like a vulnerable system. It returns fake customer records, fake API keys and a fake “leaked” system prompt. Every secret contains a hidden canary token. The attacker keeps exploring while every action is recorded, and the real database is never touched.

  3. Gemma 4 studies the behaviour. Our AI analyst, Gemma 4 (an open-weight model), watches the session in the background. It narrates each move live on the dashboard, works out the attacker’s goal and techniques, and writes an incident report.

  4. The hacker is banned. If the attacker reuses a stolen canary key, makes too many moves or goes quiet, the session ends. Their identity (device fingerprint and IP) is added to a permanent ban list, and any return visit gets an immediate 403.

  5. The system learns. From what the attacker did, Gemma 4 proposes a new, more general detection rule. Before activating it, the gateway checks that the rule is safe, that it catches the attack, and that it doesn’t block 70 known-legitimate requests. So if the same person returns from a new device, or someone else rewords the same attack, the learned rule catches it and they go straight back into the honeypot.

Safety by design: the AI never decides who gets in. Every allow, block or reroute is made instantly by rules and the ban list. Gemma 4 only analyses and suggests, and its suggestions are checked before they go live. If a normal user is caught by mistake, an operator clicks Mark as safe and the system corrects itself.

The result: attackers waste their time on fake data, every attack makes the defence stronger, and the real server is never exposed.

Built with

geminillama

AI tools

Coded withClaude CodeClaude Opus 5.5

Prize Categories Entered

  • DigitalOcean

    Best Open-Source AI Project

    Submitted