foyl Learn / foyl Red / Methodology
foyl Red · Methodology
Engagement Lifecycle
The eight phases of a structured red team engagement — from scoping through reporting. Click any phase to expand.
Live 8 phases
Engagement Phases
Click to expand each phase
01 Planning & Scoping
Pre-engagementLegal

Before a single packet is sent, the engagement must be legally authorized and operationally defined. Scope creep, unauthorized access, and ambiguous rules of engagement are the leading causes of failed engagements — and legal exposure.

Define
  • Target IP ranges, domains, and ASNs
  • In-scope vs out-of-scope systems
  • Acceptable attack techniques
  • Testing windows and blackout periods
  • Point of contact and escalation path
Deliverables
  • Signed Statement of Work (SoW)
  • Rules of Engagement (RoE) document
  • Get-out-of-jail letter (signed by client)
  • Communication and reporting schedule
  • Emergency stop procedure
Critical: Never begin active testing without a signed get-out-of-jail letter on your person. Scope boundary violations — even accidental — can result in criminal liability.
02 Reconnaissance
PassiveOSINT

Passive reconnaissance gathers intelligence about the target without directly touching their infrastructure. The goal is to build a complete profile — employees, technologies, exposed services, partner relationships — before any active scanning begins.

Targets
  • Employee names, titles, email formats
  • Technology stack (job postings, headers)
  • Exposed subdomains and certificate records
  • ASN and IP range ownership
  • GitHub repos and leaked credentials
Tools
  • Shodan, Censys — internet-exposed services
  • theHarvester — emails and subdomains
  • Amass — DNS enumeration
  • LinkedIn, GitHub, WHOIS
  • crt.sh — certificate transparency logs
03 Active Scanning
ActiveEnumeration

Active scanning directly interacts with target systems to enumerate open ports, running services, software versions, and potential vulnerabilities. This phase generates network traffic and may trigger IDS/IPS alerts — stealth tuning matters.

Activities
  • Port scan all in-scope ranges
  • Service and version fingerprinting
  • OS detection and banner grabbing
  • Web application discovery (vhosts, dirs)
  • Vulnerability scanning against findings
Tools
  • Nmap — port scanning and service enum
  • Masscan — high-speed port discovery
  • Nikto — web server misconfiguration
  • Feroxbuster / gobuster — directory brute
  • Nuclei — templated vuln scanning
Stealth note: Default Nmap scans are noisy. Use -T2 --randomize-hosts for slower, less detectable sweeps. Consider timing against the client's monitoring maturity.
04 Initial Access
ExploitationFoothold

The goal is to obtain the first foothold — a shell, session, or credential that grants access to the internal environment. Initial access vectors range from technical exploitation to social engineering to abusing legitimate services.

Common Vectors
  • Phishing / spearphishing with AiTM proxy
  • Exploitation of exposed web services
  • Password spraying on OWA, VPN, O365
  • Vulnerable public-facing application (RCE)
  • Supply chain or third-party access
Establish C2
  • Deploy implant / agent on foothold host
  • Verify egress and C2 connectivity
  • Stage persistence before proceeding
  • Document access method and timestamp
  • Notify client POC if required by RoE
05 Post-Exploitation
Host enumCredentials

With a foothold established, the focus shifts to understanding the local host, harvesting credentials, and identifying what internal access is available. Don't rush to move laterally — thorough post-ex on the initial host often yields the fastest path to objectives.

Host Enumeration
  • Current user context and group memberships
  • Running processes and installed software
  • Network connections and listening ports
  • Saved credentials, browser data, config files
  • Scheduled tasks and startup items
Credential Harvesting
  • LSASS dump (Mimikatz, ProcDump + offline)
  • SAM / NTDS.dit extraction
  • Browser credential stores
  • Windows credential manager
  • Config files and environment variables
06 Lateral Movement
PivotingActive Directory

Lateral movement is the process of expanding access from the initial foothold to other systems in the environment. In Active Directory environments this often means moving toward Domain Controller access — the crown jewel of an AD compromise.

AD Attack Techniques
  • Pass-the-Hash (PtH) with NTLM hash
  • Pass-the-Ticket (PtT) with Kerberos TGT
  • Kerberoasting — SPN ticket cracking
  • AS-REP Roasting — no preauth accounts
  • DCSync — replicating DC credentials
Movement Techniques
  • PSExec, WMI, WinRM remote execution
  • RDP with harvested credentials
  • SMB share exploitation
  • DCOM lateral movement
  • SSH key pivoting on Linux hosts
Tooling: BloodHound is essential for mapping attack paths. Run SharpHound collection then analyze shortest paths to Domain Admin in the BloodHound UI before attempting any movement.
07 Objectives & Exfiltration
Data accessImpact

Reaching the engagement's defined objectives — whether that's domain admin, access to sensitive data, proof of exfiltration capability, or demonstrating a specific impact scenario. Document everything; this becomes the core of the technical report.

Common Objectives
  • Domain Admin / Enterprise Admin access
  • Sensitive data access (PII, IP, financials)
  • Demonstrate exfiltration capability
  • Deploy ransomware simulation payload
  • Access crown jewel system (defined in RoE)
Evidence Collection
  • Screenshot of access with timestamp
  • Hash of any sensitive data accessed (don't exfil real PII)
  • Command history and tool output logs
  • Network capture of C2 traffic (if relevant)
  • Proof of impact screenshots for exec report
08 Reporting & Cleanup
DeliverableRemediation

The report is the primary deliverable — it's what the client pays for. A technically brilliant engagement with a poor report has diminished value. Clean up all artifacts and persistence mechanisms before submitting, and walk the client through findings in a debrief call.

Cleanup Checklist
  • Remove all implants and agents
  • Delete created user accounts and backdoors
  • Remove modified scheduled tasks and services
  • Restore changed registry keys
  • Confirm cleanup with client POC
Report Structure
  • Executive summary (non-technical)
  • Attack narrative and timeline
  • Technical findings with CVSS scores
  • Evidence and proof-of-concept
  • Remediation guidance per finding
See the Report Writing Guide → for a full breakdown of finding structure, severity classification, and executive summary templates.