Skip to content
cloudgrip

$ man rules-of-engagement

//Offensive testing

What are rules of engagement (RoE)?

Rules of engagement (RoE) are the written, signed agreement that authorizes a security test and sets its limits: what may be tested, when, how, by whom, what is forbidden, how data is handled and when testing must stop.

  • Offensive testing
  • 3 min read
  • updated Nov 11, 2026

What rules of engagement are

Rules of engagement (RoE) are the document that turns an attack into an authorized test. They state, in writing, which systems a tester may target, during which period, using which techniques, and what happens if something goes wrong. Someone with authority over those systems signs them before any testing starts.

The document does two jobs. It is permission: accessing computer systems without authorization is illegal in most countries, and the RoE is the record that authorization was given. It is also a safety plan: it tells the tester where to stop and tells the client who to call.

A widely used starting point is the template in Appendix B of NIST SP 800-115, the US government's technical guide to security testing.

What the document covers

A complete RoE answers these questions.

  • Targets. Exact hostnames, address ranges, applications and environments.
  • Exclusions. Systems that must not be touched, such as a payment provider or a shared service you do not own.
  • Timing. Dates, hours and any freeze periods, such as a product launch.
  • Access. The accounts and roles provided, and where test traffic will come from so defenders can recognize it.
  • Allowed techniques. For example, logging in, attempting exploitation up to a proof of concept, uploading harmless marker files.
  • Forbidden techniques. Typically denial of service, social engineering, and changing or deleting real data.
  • Data handling. What the tester may view and store, how evidence is protected and when it is deleted.
  • Communication. Named contacts on both sides, how to report a critical finding immediately, and how to pause the test.
  • Third parties. Confirmation that hosting and cloud providers allow the planned testing. Cloud providers publish policies on what customers may test.

A short example

output
Targets:        app.acme.test and api.acme.test (production)
Not in scope:   pay.acme.test, the office network, staff email
Window:         3 to 14 March, any hour
Source address: 203.0.113.10
Accounts:       two test tenants with three roles each, created by the client
Allowed:        authenticated testing, exploitation to proof of concept
Forbidden:      denial of service, social engineering, altering real customer data
Data:           stop at first proof of access, record the minimum, delete at project end
Stop and call:  if real personal data is exposed, or the service degrades
Contacts:       client security lead, provider test lead

Each line is written so that it can be checked afterwards.

Clauses that keep production safe

A few clauses make testing a live system safe.

  • Test accounts and seeded data, so that proving access never requires touching a real customer's records.
  • Request rate limits, so that scanning does not slow the service for real users.
  • A rule to confirm and stop. The tester proves a weakness once and does not continue to extract data.

The same rules apply when the tester is software. Automated and AI-driven testing needs its limits set as configuration: an allowed list of targets, forbidden actions and a complete action log. Cloudgrip's Hydra works this way: ownership of each target is verified first, staging is the default and production is opt-in, agents run within rate limits you set, confirm a flaw and stop, and every request is logged and tagged. A kill switch halts every agent.

How it differs from scope and a statement of work

These three terms overlap but are not the same.

  • Scope is the list of what is tested. It is one section of the RoE.
  • A statement of work is the commercial agreement: price, deliverables, dates and responsibilities.
  • Rules of engagement cover conduct: how the test is run and where it must stop.

Common misunderstandings

  • "A verbal go-ahead is enough." Without a signed document, the tester has no proof of permission and the client has no agreed limits.
  • "We own the application, so we can authorize everything." You can only authorize testing of systems you control. Shared platforms and third-party services need their owner's permission or must be excluded.
  • "Tight rules make a better test." Rules that forbid logging in, or exclude the most sensitive features, make the test safer on paper and far less useful. The type of test you need should shape the rules, not the other way round.

See what an attacker would find.

Give us a URL and two test logins. If there’s something to find, your first exploited findings land within 24 hours.

You talk to the people who build Hydra and Cerberus. No sales script.

or write to founders@cloudgrip.ai