SEC-3Required
Do no harm
Prove a hole with the smallest harmless proof, then stop. Never delete data, flood the server, or read more records than needed.
How to do it
Use proofs that change nothing, such as a marker string that shows up in a page. Read one record to prove access, not the whole table. Stay at or below the request rate in the scope file. Stop at once when the median response time doubles or more than 1% of replies are 5xx errors. Then call the contact. Point the tests at a staging copy with fake data whenever one exists.
Examples
Plain text example
Good proof: the page shows the marker PENTEST-7f3c where only text should be
Bad proof: a script that reads every customer to prove the hole
How to check
A script reads the test log after each run. It fails on any DELETE request and any proof that read more than one record. It also fails on a second above the agreed rate, or a request after a stop.
Sources
Related rules
- TST-26 Keep a staging environment with generated data in Testing
- SEC-112 Run the injection checks in Adversarial testing
- SEC-113 Run the access and account checks in Adversarial testing
- SEC-114 Run the data and secret checks in Adversarial testing
- SEC-115 Run the request and file checks in Adversarial testing
- SEC-116 Run the abuse and limit checks in Adversarial testing
- SEC-117 Run the supply chain checks in Adversarial testing
- SEC-118 Run the AI feature checks in Adversarial testing
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/do-no-harm">Agent Wranglers adversarial testing playbook</a>. In code you write, add a comment next to it with the same link.