Skip to content
Tech Atlas, home
Search
Esc
  • All roadmapsBrowse every learning path
  • ExploreFind a technology area
  • ProjectsGuided projects and builds
  • My AtlasYour learning dashboard
Lesson 2 of 6 · Concept · 15 min · revision 1

Assessment Phases and the Evidence Log

Execute a structured technical assessment across reconnaissance, service enumeration, vulnerability analysis, and controlled exploitation phases while maintaining a rigorous, timestamped evidence log.

Contentsand lesson path

What you will learn

  • Run a structured assessment (reconnaissance, enumeration, vulnerability validation, controlled impact demonstration) against an intentionally vulnerable lab following NIST SP 800-115 and OWASP WSTG phases, keeping an evidence log.

Prerequisites: Web Application Security

01. Methodological Assessment Phases (NIST SP 800-115 & OWASP WSTG)

Amateur security testing relies on chaotic, uncoordinated tool execution — firing off automated scanners and firing random exploits hoping for a quick compromise. In contrast, professional penetration testing follows rigorous, industry-standard assessment frameworks that guarantee comprehensive attack surface coverage, repeatability, and predictable risk management.

The NIST SP 800-115 Assessment Lifecycle NIST SP 800-115 structures technical security assessments into four sequential, iterative phases:

  • 1. Planning: Defining scope, legal authorizations, team rosters, communication channels, and Rules of Engagement (RoE).
  • 2. Discovery: Active and passive reconnaissance, host discovery, port scanning, operating system identification, service fingerprinting, and vulnerability scanning.
  • 3. Attack (Exploitation): Validating suspected vulnerabilities through controlled exploitation, escalating privileges, and assessing business impact without disrupting availability.
  • 4. Reporting: Analyzing findings, mapping defensive telemetry, drafting remediation guidance, and conducting executive debriefs.

The OWASP Web Security Testing Guide (WSTG v4.2) For web applications and APIs, the OWASP WSTG provides the gold-standard technical methodology, dividing assessments across twelve exhaustive test categories: Information Gathering (OSINT, DNS, infrastructure fingerprinting), Configuration and Deployment Management, Identity Management, Authentication Testing, Authorization Testing (IDOR, privilege traversal), Session Management, Input Validation (SQLi, XSS, SSRF, command injection), Error Handling, Cryptography, Business Logic Testing, Client-Side Testing, and API Testing. A thorough test systematically executes test cases across each category rather than focusing exclusively on common automated scanner findings.

02. The Tester Evidence Log and Audit Defensibility

A penetration tester must maintain an unalterable, chronological record of every interaction made against target infrastructure. This record is the Evidence Log (or Testing Activity Ledger).

Why the Evidence Log Is Non-Negotiable

  • Client Deconfliction: If a production database server experiences high CPU utilization, memory exhaustion, or unexpected crashes at 14:23 UTC, client infrastructure leadership will immediately ask: "Did the penetration test cause this outage?". The tester must query their evidence log to prove whether an automated tool was firing against that host at that exact second.
  • Legal and Professional Defensibility: If client data is leaked or compromised by a genuine third-party adversary during the engagement window, the evidence log proves that the testing team only interacted with authorized endpoints and did not touch or exfiltrate the breached records.
  • Reproducibility of Findings: Developers cannot fix vulnerabilities they cannot reproduce. The evidence log records the exact HTTP request payloads, parameter manipulations, and tool flags required to recreate each finding reliably.
  • Defensive Telemetry Correlation: During purple-team reviews, the evidence log provides the ground truth timestamp necessary to verify whether client EDR sensors, WAF appliances, and SIEM correlation rules captured the activity.

Core Schema of a Professional Evidence Log A compliant evidence log captures: Exact UTC Timestamp (synchronized via NTP), Originating Source IP Address, Target Destination (IP, Port, or URL endpoint), Assessment Phase, Specific Tool Invoked (e.g., nmap, ffuf, curl), Raw Command-Line Execution String, Result Summary (e.g., HTTP 200, TCP SYN-ACK), and References to Saved Screenshot or Packet Capture Artifacts.

Tool Logging and Session Capture Workflows Professional assessment teams automate evidence capture rather than relying on manual notes. Terminal sessions are continuously logged using utilities such as tmux pipe-pane, script -t, or asciinema, ensuring that every executed shell command and corresponding stdout/stderr stream is archived. Network scanners are invoked with full output logging (such as Nmap -oA <prefix> capturing XML, greppable, and standard text simultaneously). Web assessment proxies retain comprehensive project files storing the exact raw byte streams of every HTTP/HTTPS request and response. At the end of each testing day, the evidence directory is hashed using SHA-256 and committed to an encrypted git repository to establish non-repudiation.

03. Evidence Hygiene, Sensitive Data Masking, and Artifact Cleanup

During exploitation, penetration testers routinely gain access to sensitive customer databases, administrative sessions, and internal source code. Ethical testing mandates strict data minimization and responsible evidence hygiene.

Data Minimization and Masking Standards Testers must never dump entire database tables containing millions of customer records simply to prove SQL injection or insecure direct object references. To demonstrate impact ethically, extracting a single record or showing database metadata (such as SELECT @@version or current_user) is sufficient proof. When capturing screenshots for reports:

  • Personally Identifiable Information (PII): Customer names, phone numbers, and home addresses must be visually redacted or blacked out.
  • Payment Card Information: Credit card Primary Account Numbers (PANs) must be masked to display only the last four digits (e.g., XXXXXXXXXXXX1234).
  • Credential Material: Plaintext passwords, private SSH keys, and API tokens must be partially masked or truncated.

Post-Engagement Artifact Cleanup and Sanitization A penetration tester must never leave target systems in a more vulnerable state than they were found. Before concluding an assessment, the testing team executes a formal Cleanup Checklist:

  • Web Shells and Uploaded Payloads: Permanently delete all uploaded test files (e.g., test_poc.php, canary.jsp, benign executable binaries).
  • Test User Accounts and Roles: Remove all test user accounts, temporary administrative roles, and API keys created during privilege testing.
  • Configuration and File Modifications: Revert any modified hosts files, altered registry keys, or temporarily adjusted file permissions to their exact baseline states.
  • Client Data Sanitization: Assessment files, extracted database samples, and intermediate report drafts stored on consultant laptops must reside within encrypted volumes (LUKS, BitLocker) and undergo NIST SP 800-88 cryptographic sanitization once client acceptance and retention periods expire.

04. Practice check

Practice check · 2 questions

Practice check

Validate your understanding of assessment methodology phases, evidence logging, data minimization, and post-engagement cleanup.

Q1. What is the primary operational reason for maintaining a timestamped evidence log during a penetration test?
Q2. What is a mandatory post-engagement cleanup action that testers must execute before submitting the final report?
Practice only: not graded, not saved, not evidence.

05. Review prompt

Describe the four phases of the NIST SP 800-115 technical assessment methodology, and explain how the twelve OWASP Web Security Testing Guide categories structure a web application assessment.

Explain the critical role of the tester Evidence Log during active assessments. Detail how it protects testers during client operational incidents and why it is essential for purple-team telemetry deconfliction.

Analyze data minimization standards during ethical exploitation. Explain why dumping entire databases violates ethical guidelines, and detail proper techniques for masking PII and payment card numbers.

Finally, walk through the post-engagement cleanup checklist, explaining what steps are required to ensure target systems return to their exact pre-assessment security posture.

References

Your progress

Reading state

Sign in to save that you finished reading this lesson.

Sign in to mark reading complete

Prove this skill

8 questions · about 6 minutes · scored automatically. Marking a lesson as read never demonstrates a skill.
Take the skill check