FormingPluginclaude-codepublished fresh until

Have subagents attack your own app on a local or preview stack before you launch it

Summary As of October 2026, a Claude Code tip: before launching an app you built with an agent, send three subagents with separate test accounts to actually run common attacks against it (other users' data, role changes, paywall bypass, XSS, SSRF, prompt injection), record proof, then fix and rerun. Only for your own app, on a local or preview stack with test data.

Not for compile-time authorization types (gdp-ts), third-party skill scanning, or org-wide agent containment

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
APlugin · v2.0.14+wwfix.1security-guidance plugin (Anthropic)
How you use itInstalls a bundle into your client
What it can doinstalls software · writes files · network · secrets access · runs shell
What's inside
APlugin · v2.0.14+wwfix.1security-guidance plugin (Anthropic)
How you use it
Installs a bundle into your client
What it can do
installs software · writes files · network · secrets access · runs shell
What's inside

What this thread does

What the technique is

On 16 October 2026 @Voxyz_ai shared a prompt for Claude Code: before you ship a site you built mostly with an agent, have Opus 5.5 play the attacker against it. Three subagents, each with its own test account (user A, user B and an admin), run a fixed list of attacks, write down what happened, and only then does the main session fix everything and rerun the list.

The difference from a code review is that each attack has to actually run against the app. An issue that was only spotted by reading code counts as unproven.

Only do this against an app you own, on your own machine or a preview deployment that is not connected to production data, with test accounts and test data. Do not point it at someone else's service, a shared staging system you don't control, or real users.

The attack groups (summarised)

  • Acting as another user: query the database directly with the public key the frontend ships; swap another user's id into requests to read, edit or delete their data; add an admin role to a profile update; reuse a password-reset link.
  • Getting around limits the UI enforces: call the API behind disabled buttons and hidden options; keep using a feature after the free quota runs out; fire many requests at once against a small credit balance; send very long, empty, negative or odd input; change the post-login redirect to another site.
  • Coming in from outside: script injection through usernames, comments or Markdown; server-side requests to localhost or the cloud metadata address if the app fetches URLs; cached pages or API responses leaking between users; preview links that are open without a login; instructions hidden in an uploaded file that try to make the app's AI feature read another user's data or call a tool.

Proof, not opinions

  • Each attack ends in a row of a results table: how it was done, the request and response (tokens masked), and whether it was refused.
  • After a fix, switch that protection off in local code only, confirm the attack now succeeds, switch it back on and confirm it is refused. That shows the test really exercises the fix.
  • Save the attacks as scripts in the repo and run them again before each launch.
  • The post suggests the default medium effort for most of it and high for the impersonation group, where a miss is most costly. As of November 2026, per-invocation subagent effort needs Claude Code v2.1.292 or later (checked 2026-11-23).

Guard rails to put in your prompt

Write them in your own words; this is ours:

Before anything else, confirm the preview environment does not use the production database; if it does, work only on the local stack. Use only the test accounts I created, one set per subagent, and test data. Do not touch real users or any service I don't own, do not flood a single endpoint, and only use payment providers in test mode. Disable protections only in local code and only temporarily; never change database or hosting dashboard settings. Keep test credentials in an ignored env file and mask tokens in the results. Attack first and record without fixing; then fix from the lists, rerun every test and show me a before-and-after table. Remove the test accounts and data at the end. For anything that needs a dashboard change or a plugin install, give me the steps instead of doing it.

Keeping it fixed: the package

The post ends by installing Anthropic's security-guidance plugin (Apache-2.0) so later changes are reviewed too: a pattern check on each edit (no model call), a background Claude review of each turn's diff, and a deeper agentic review on each commit or push Claude makes. The model reviews use extra usage (your plan or API key).

Alternatives

  • Static review only: see the thread on catching security bugs in agent-written code before they reach a commit.
  • Anthropic's Claude Security plugin scans an existing codebase rather than live behaviour.
  • Bug-bounty skill bundles such as Claude-BugHunter (MIT code; CC BY 4.0 content) exist, but they target external red-team work; for your own pre-launch check, a short attack list like the one above is easier to control.

Caveats (as of October 2026)

  • This is a prompt pattern, not a tool. Results depend on the model actually running each request; check the evidence column, not the summary.
  • Three subagents at medium to high effort on Opus 5.5 use a lot of tokens.
  • Passing this list is not a security audit. It covers common web-app mistakes, not your threat model.

Started from a post by @Voxyz_ai, packaged by the editor. Original post

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Have subagents attack your own app on a local or preview stack before you launch it
Summary: As of October 2026, a Claude Code tip: before launching an app you built with an agent, send three subagents with separate test accounts to actually run common attacks against it (other users' data, role changes, paywall bypass, XSS, SSRF, prompt injection), record proof, then fix and rerun. Only for your own app, on a local or preview stack with test data.

## Options
- A · security-guidance plugin (Anthropic) · early, no verdict yet · installs software · writes files · network · secrets access · runs shell
Copy for agent
get the whatworks thread attack-own-app-with-subagents-before-launch and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread attack-own-app-with-subagents-before-launch

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · security-guidance plugin (Anthropic)

Anthropic's official Claude Code plugin that reviews Claude's own changes for vulnerabilities: a pattern check on each edit, a background model review of each turn's git diff, and an agentic review on each commit or push. Findings go back to Claude to fix. Model reviews use extra usage. Not for: a one-off pre-release audit, non-Claude-Code agents, or projects where diffs must not leave your model endpoint; see claude-security-scan-plugin.

Format
Plugin
Source
github:anthropics/claude-plugins-official#plugins/security-guidance
Pinned
v2.0.14+wwfix.1 · ea10b213686c
Content hash
ea10b213686c90bb
Audit
scan passed
Can do
installs software · writes files · network · secrets access · runs shell
Works with
claude-code
Check
Claude Code validates the plugin manifest and its hooks.json in .claude/skills/security-guidance/; The plugin's pattern check flags yaml.load in a Python edit and stays quiet on harmless code (proves the hook logic runs); Python 3.10+ is available for the hooks
Author
@anthropics
Kudos
0
Are you @anthropics? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package security-guidance-plugin-post-attack-review before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package security-guidance-plugin-post-attack-review
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp