PromptTrap: Automated Indirect Prompt Injection Testing for Browser Agents A developer built PromptTrap, an open-source security evaluation harness that tests browser agents against indirect prompt injection. The tool runs autonomous models through six adversarial web environments, logs their DOM actions, and scores behavior against deterministic security rules, producing reproducible reports in under 400 milliseconds via a web dashboard, docs portal, or CLI runner for CI pipelines. This is a submission for the Hacktoberfest Open-Source AI Challenge Week 3: Slow and Steady https://dev.to/challenges/hacktoberfest-week3-2026-10-19 When an autonomous AI agent browses the web, it reads HTML created by strangers. That HTML often contains hidden text, rogue data attributes, and fake system alerts designed to hijack the model. This attack vector is known as indirect prompt injection . Consider a routine task: you ask an agent to check a store's return policy. The webpage contains legitimate policy text, but it also hides an invisible prompt: