Skip to content
Offensive Security Glossary / Scope and Rules of Engagement

Scope and Rules of Engagement: What the Test Is Allowed to Do

The documents that authorize a security test and define its limits, and what they should contain.

What Is Scope and Rules of Engagement

Scope and rules of engagement (ROE) are the documented agreement that authorizes a security test and defines its boundaries: which assets may be tested, which techniques are permitted or prohibited, when testing may occur, how sensitive data and production systems are protected, and how the testers and the organization communicate during the test.

The ROE is what makes a penetration test legal and safe. Testing systems without authorization is an offense in most jurisdictions, and testing without agreed limits risks outages and data exposure. NIST SP 800-115 includes a rules of engagement template as an appendix.

What the Document Should Cover

AreaContents
AuthorizationSigned approval from someone with authority over the assets; third-party approvals for hosted and cloud assets where required
In scopeDomains, IP ranges, applications, APIs, environments, accounts
Out of scopeAssets, functions and techniques excluded (for example denial of service, social engineering, payment execution)
TimingTest windows, blackout periods, time zones
Safety limitsRate limits, non-destructive payload policy, data handling, cleanup obligations
Credentials and dataTest accounts per role and tenant, seeded data, how secrets are shared and revoked
CommunicationContacts on both sides, escalation path, emergency stop procedure, critical-finding notification
Evidence and reportingReport format, retention of evidence, confidentiality

Cloud and Third-Party Assets

Major cloud providers publish policies on what customers may test on their own resources without prior approval and which activities, such as denial of service, are prohibited. Third-party SaaS and hosted applications usually require the provider's permission. These constraints belong in the scope document.

Rules of Engagement for Continuous and AI Testing

For continuous and AI-driven testing, the ROE becomes configuration that is enforced on every run: allowed targets, prohibited actions, rate limits and stop conditions. Auditability of each action matters more when no human approves each step.

Sources and Standards

Frequently Asked Questions

What are rules of engagement in penetration testing?

The documented agreement that authorizes a test and defines its scope, permitted techniques, timing, safety limits and communication.

What should be out of scope in a penetration test?

Commonly denial of service, destructive actions, social engineering unless agreed, third-party assets without their permission, and functions that move real money or contact real customers.

Do I need permission to pentest my cloud resources?

Major cloud providers allow customers to test their own resources within published policies, with certain activities prohibited. Check the provider's current policy and record it in the scope.

Further Reading

Reviewed against the primary sources cited on this page. Verified 2026-12-02.

Start With a Safe, Scoped Test

Run a free AI pentest with scope enforcement and non-destructive testing.

Free AI Pen Test

No credit card. Findings include reproducible steps and exploit code.

Firecompass ranked #1 AI on HackerOne. Read more →