Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:0xSteph Pentest ai agents Engagement Scoping and Planning

From Leeroopedia
Knowledge Sources
Domains Security, Planning, Methodology
Last Updated 2026-10-22 12:00 GMT

Overview

Methodology for defining engagement scope, selecting testing phases, and producing structured plans with MITRE ATT&CK technique mappings.

Description

Engagement Scoping and Planning is the foundational phase of any penetration test. It defines what is authorized to be tested (scope), what techniques are permitted (rules of engagement), and how the assessment will be executed (phased plan). This principle addresses the critical problem of unstructured testing: without a defined plan, pentesters miss critical attack surfaces, waste time on out-of-scope targets, and produce reports that lack methodological rigor.

Standard frameworks (PTES, NIST SP 800-115, OWASP) provide phased methodologies: Scoping → Reconnaissance → Enumeration → Vulnerability Analysis → Exploitation → Post-Exploitation → Reporting. Each phase has objectives, techniques, tools, expected artifacts, time estimates, and risk levels. Mapping every planned technique to MITRE ATT&CK IDs provides a common language for communicating attack coverage.

Usage

Use this principle at the start of every penetration test engagement. It is the right choice when:

  • A new engagement needs a structured plan before testing begins
  • Rules of engagement must be documented for client sign-off
  • Attack coverage must be communicated using MITRE ATT&CK mappings
  • Time and resource allocation must be estimated per phase

Theoretical Basis

The core methodology follows PTES (Penetration Testing Execution Standard) with seven phases:

Engagement=∑i=17Phasei(Objectives,Techniques,Tools,Artifacts,Time,Risk)

Where each phase depends on the previous phase's outputs:

Pseudo-code Logic:

# Abstract planning algorithm (NOT real implementation)
phases = ["scoping", "recon", "enumeration", "vuln_analysis",
          "exploitation", "post_exploit", "reporting"]

for phase in phases:
    plan[phase] = {
        "objectives": define_goals(scope, engagement_type),
        "techniques": map_to_mitre_attck(phase, scope),
        "tools": select_tools(techniques, environment),
        "artifacts": expected_evidence(phase),
        "time": estimate_duration(scope_size, phase),
        "risk": assess_risk(techniques, production_systems),
        "dependencies": previous_phase_outputs(phase)
    }

roe_template = generate_roe(scope, authorized_techniques, exclusions)

Practical Guide

  1. Gather context: Client name, engagement type, scope (IP ranges, domains, URLs), rules of engagement constraints.
  2. Select methodology: Map engagement type to appropriate framework (PTES for general, OWASP for web, NIST for federal).
  3. Define phases: Break the engagement into sequential phases with clear objectives.
  4. Map techniques: Assign MITRE ATT&CK IDs to each planned technique.
  5. Estimate resources: Time per phase based on scope size and complexity.
  6. Assess risk: Flag high-risk techniques (social engineering, DoS, physical access) requiring explicit sign-off.
  7. Produce RoE template: Fillable bracket placeholders for client-specific data.
  8. Initialize tracking: Create engagement record in findings database.

Related Pages

Implemented By

Uses Heuristics

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment