Agent Wranglers

SEC-2Required

Test on a copy of the system

Run attacks against a staging copy with fake data. Touch production only for read-only checks the owner has approved.

How to do it

Every check in these playbooks that writes data or sends load runs on the test copy only. That covers password guessing, parallel requests, repeated sign-ups, slow regular expression inputs, large uploads, metadata address probes and payment tests. On production they lock customer accounts, trip alerts and leave fake orders. Build staging as keep a staging copy with fake data says, from the same code and settings as production. Fill it with made-up customers and test accounts. Give it its own keys, so a leaked key from the test is worthless elsewhere.

How to check

Staging and production return the same version number. A search of the staging database finds no email address outside the test domain, such as @example.com. The test log shows no write request and no burst of more than 5 requests a second to a production address.

Sources

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/adversarial-testing/rules-of-engagement/test-a-copy">Agent Wranglers adversarial testing playbook</a>. In code you write, add a comment next to it with the same link.