AnySec
Pentest Rules of Engagement: What to Agree First — AnySec Insights
← InsightsPenetration Testing · 8 min read

Pentest Rules of Engagement: What to Agree First

Rules of engagement decide what a pentest may touch, when, and what happens if something breaks. The clauses to agree before testing starts, with red flags to avoid.

By AnySec engineering

The short answer

Rules of engagement are the written limits that turn a penetration test scope into permission. They name who may test, from where, which targets and techniques are allowed, when testing may run, what data may be touched, who can stop it, and how findings and incidents are reported. Agree them in writing before the first packet is sent, and keep them consistent with the contract and the scope.

Who this is for

This is for a CTO, head of security or compliance owner at an online casino, sportsbook, exchange or payments business who has a quote for a penetration test and needs to know what to sign. A scope says what is in play. The rules decide how it is played. For what the price document must say, read what a penetration testing quote must say. For the deliverable at the end, read what a real pentest report looks like.

Why a scope list is not enough

A scope list says "these hosts and applications". It stays silent on the questions that cause trouble on the day.

  1. Authority. The person who signed may not control the cloud account, the payment processor or the hosting provider behind a target.
  2. Timing. Testing a cashier during a promotion or a trading platform during a live event has a different cost than testing it quietly.
  3. Technique. Password guessing against real player accounts, social engineering of staff and denial-of-service style tests are different risks. Each needs an explicit yes or no.
  4. Data. If a tester reaches personal or financial data, what may they view, copy or keep?
  5. Stopping. Who can say stop, how fast, and to whom?

Rules of engagement answer these before anyone is under pressure.

The clause matrix

Use this as a review checklist. It contains no timings or thresholds, because those come from your risk and your contract.

ClauseWhat it should sayQuestion to ask the tester
AuthorisationWho grants permission, for which entities and environmentsWho at the client has signed for every system in scope?
Third partiesWhich providers own parts of the target and what approval they needHave you checked each provider's testing policy?
Scope and exclusionsTargets in scope, named exclusions, treatment of anything discovered outside the listWhat do you do if you find an unlisted system that looks connected?
TechniquesAllowed, excluded and approval-needed methodsWhich methods would you need written approval to use?
Source and identitySource addresses, tester names and accounts usedHow will our team tell testing from a real attacker?
SchedulePermitted hours, blackout periods, start and endWhich of our events or releases should testing avoid?
Production safetyRate limits, test accounts, rollback and cleanupHow are test records and accounts removed afterwards?
Data handlingWhat may be viewed, copied, stored and for how longWhat happens to evidence containing real data?
Stop conditionsEvents that pause testing and who may order itWho can pause you, and how do we reach them out of hours?
CommunicationContacts, channels, status updates, escalationHow and when do you tell us about something critical?
FindingsHow and when serious issues are reported before the final reportWill you wait for the report to tell us about an open door?
RetestWhether fixes will be rechecked and under which termsIs the retest covered by these same rules?
ConflictWhich document wins if rules, scope and contract disagreeWhere is the precedence stated?

Authorisation across several owners

Many regulated platforms are not one estate. A casino may run its front end at a content delivery network, payments at a processor, games from studios and infrastructure in a public cloud. Each owner has its own policy about what a customer may test. The rules of engagement should list the owners, the approval each requires and who obtained it. A tester working on the word of one signatory against a system owned by another is a legal and operational risk for both sides.

Two people at a night operations desk reviewing a printed authorisation sheet with a pen and a phone between them.
Authority and an out-of-hours contact are agreed on paper before testing, not discovered during it.

Techniques: the yes, no and ask list

Split techniques into three groups and write them down.

  • Allowed. What the testers may do without further approval, for example authenticated testing of in-scope applications with supplied test accounts.
  • Needs approval. Anything with a plausible operational or legal consequence, such as attacks that lock real accounts, testing against shared infrastructure, or physical or social engineering. Say who approves and how fast.
  • Excluded. Techniques you will not accept, such as tests intended to exhaust capacity. Planned capacity tests belong in a DDoS stress test with its own authorisation, not hidden inside a penetration test.

The same logic helps when comparing approaches. Black, grey and white box testing changes what information the testers get, and the rules should state which one applies.

Data and real players

A platform with real balances and personal data needs a clear line on what testers may see. Decide whether testing uses dedicated accounts, whether any real customer record may be opened, and what happens if one is reached by accident. If the testers find real data, an indicator of an earlier compromise or something outside the agreed limits, the agreed action should be written: stop, record minimum evidence, and call a named person. If that person may need to start your own response, link the clause to your incident response process so the call goes to someone who can act.

Stopping, pausing and being found

Two practical points are often missed.

Identification. Your security monitoring will see the testing. Decide whether your defenders are told, partly told or tested blind, and write down how a real attacker will be told apart from the testers. If you run a managed SOC, brief it and agree who may confirm that an alert is test activity.

Pause authority. Name who on your side can stop testing at once and who on the tester side confirms receipt. Include an out-of-hours contact. A pause clause that depends on one person's mailbox is not a pause clause.

Reporting during the test

Waiting for a final report is wrong for serious findings. The rules should say what counts as urgent, how it is communicated and who receives it. Agree which findings are shared as soon as they are validated and which wait for the report. The same rules should cover evidence storage and deletion after the engagement. Once fixes are made, what counts as fixed in a retest depends on the retest being covered by the same limits.

Red flags in rules of engagement

  • Scope list only, no technique or data clauses.
  • A single signatory for a multi-owner estate, with no mention of providers.
  • No schedule or blackout clause for your busiest periods.
  • "All techniques allowed" with no exclusions.
  • No named contact or out-of-hours route for pausing.
  • No handling rule for real customer data.
  • No statement of which document wins in a conflict.
  • Serious findings held for the final report by default.
  • Rules that change after signing without both sides initialling the change.

Limitations

This article is not legal advice and does not say what any regulator, licensing body or payment scheme requires of testing authorisation, or what the law of any country permits. It uses no external statistics and no case studies. The matrix is a review checklist to adapt with your counsel and your own risk owners, and it contains no timings or thresholds. Rules of engagement lower the chance of harm and confusion. They do not guarantee that a production test cannot cause disruption.

Decision and next step

If you can read the rules and see who authorised each owner's systems, which techniques need approval, when testing may not run, who can stop it, and what happens on contact with real data, they are doing their job. If not, send them back before a start date is fixed. To have the rules written alongside the scope and the report, get a fixed quote from AnySec and we will map your owners, events and data to the clauses above.

Sources and review

The framing follows public guidance: NIST SP 800-115, Technical Guide to Information Security Testing and Assessment, which covers planning, rules of engagement and handling of results, and the OWASP Web Security Testing Guide, which describes what web testing covers, read 2026-11-25; check the current versions, and read the testing policies of your own providers. AnySec prepared the clause matrix from the public structure of penetration testing engagements; no AnySec-original statistics are used. Author: AnySec Engineering. Published 2026-11-25; reviewed by the AnySec security team.


Related reading

To have the rules agreed before testing, get a fixed quote.

Frequently asked questions

What are rules of engagement in a penetration test?
A written agreement between the client and the testers that says what may be tested, by whom, from where, when, with which techniques, and what happens if something goes wrong. It turns a scope list into permission with limits. Without it, both sides are guessing about authority, timing and liability.
Who should sign the rules of engagement?
Someone who has authority over every system in scope, not only the person who bought the test. If a hosting provider, payment processor or cloud platform owns part of the target, check their testing policy and get any required approval before the start date. Name an emergency contact for each side.
Are rules of engagement the same as the scope or the contract?
No. The contract covers commercial terms such as price, confidentiality and liability. The scope lists targets. The rules of engagement govern how testing is carried out inside that scope: techniques, hours, data handling, stop conditions and communication. The three should agree, and the rules should say which document wins on a conflict.
Can a penetration test take a production system down?
It can, which is why the rules should state which techniques are excluded or need approval, which hours are allowed, and who can order a pause. Testing production safely is a matter of agreed limits and fast communication, not a promise that nothing can happen.
What should the testers do if they find real customer data or an existing intrusion?
The rules should say so before testing starts. Typical choices are to stop, record the minimum evidence, and tell a named contact at once, rather than continue or copy data. Treat this as a clause to negotiate with your legal and incident response owners, not something to improvise.

Rather not learn this in production.

Talk to the engineers behind these write-ups — no sales script, a straight read on where you stand.

Get a fixed quote