Recipes

Autonomous AI pentest agent that validates exploits and drafts fixes for a web app

From README links · today

Security, Science & HardwareSoftware & DevOps

Ran Strix agents against a staging app to find and prove real vulnerabilities.

What they did

They pointed Strix at a staging deployment of their web application rather than production, gave it an LLM API key and a running Docker daemon, and let the multi-agent pentesting team work through reconnaissance, exploitation, and validation. Strix ran the app dynamically, probed endpoints and auth flows, and produced proof-of-concept exploits for the issues it believed were real, which filtered out the static-analysis noise they were used to. Where a finding depended on browser behavior — session handling, client-side redirects, DOM-based injection — they used Playwright to drive a real browser and reproduce the flow, capturing screenshots and request traces as evidence. Findings were triaged into a short list, patches were drafted for the highest-severity items, and a pentest-style report was assembled for the team. The whole pass ran in hours instead of the weeks a manual engagement would have taken.

How it went

They got a validated shortlist of vulnerabilities with working PoCs and browser evidence, plus draft patches for the top issues and a report they could hand to reviewers. The run was fast and the false-positive rate was far lower than their previous scanner, though the output still needed human triage before anything was merged.

Worth knowing

Strix needs Docker running and an LLM API key, and it should only be aimed at systems you own or are authorized to test — never production without explicit approval. Agent runs can be token-hungry and slow on large apps, and the auto-generated patches are drafts that require review. Playwright adds browser coverage but not every finding is browser-reachable, so some issues still need manual confirmation.

Wiring

Install strix-agent (pip) with Docker running and an LLM API key exported in the environment. Scope the run to a staging URL you control. Strix's agents handle recon, exploitation, and PoC validation inside its sandboxed environment. Playwright is installed separately (with browsers) and used as the verification layer: a small script drives the browser to the affected flow, captures screenshots and network traces into security/evidence/, and those paths are referenced from the findings file. Findings and draft patches are written to a dedicated branch so nothing lands on main without review.

Try it yourself

Set up Strix in this repo and run an authorized pentest against our staging environment only (never production). Steps: 1) confirm Docker is running and an LLM API key is available in the environment; 2) install strix-agent and record the exact command and config used; 3) run the agents against the staging URL with a scope limited to our own domains; 4) for any finding that involves browser behavior (sessions, redirects, DOM injection), reproduce it with Playwright and save screenshots plus request/response traces under security/evidence/; 5) write security/findings.md with severity, reproduction steps, evidence paths, and a draft patch for each high-severity item; 6) summarize what still needs manual confirmation. Do not modify application code beyond draft patches in a separate branch.

Source

Tools in this stack

Run this stack

Install the stack into this project. It writes AGENTS.md and the manifest, merges the MCP servers into .mcp.json, and — with --yes — runs the tool installs.

npx runchr install runchr/stack-playwright-and-strix
No CLI?curl -s https://api.runchr.com/api/recipes/runchr/stack-playwright-and-strix/manifest

This stack has no prompt yet. You get the tools and the wiring, not the prompt.

The manifest is also at api.runchr.com/api/recipes/runchr/stack-playwright-and-strix/manifest.