Cyber Knowledge · Domain 02 of 11 · Practitioner field guide

Red Team & Offensive Security

A fourteen-module field reference for authorized security testing: engagement design, reconnaissance, vulnerability validation, web and API testing, cloud and Kubernetes, identity, clients, human-layer exercises, adversary emulation, AI/MCP workflows, operator infrastructure, laboratories, evidence, reporting, and program governance. The goal is defensible security improvement—not “getting a shell” without context.

Version 1.0 Published Source review: Status: maintained practitioner guide Maintained by Andrey Pautov Editorial policy and corrections

Authorized environments only

Use these methods only on systems you own or are explicitly authorized to assess. Written scope, rules of engagement, data-handling requirements, emergency contacts, and stop conditions come before tooling.

How to use this guide

This is an engagement-oriented curriculum, not a catalogue of commands. Read Modules 1–3 before selecting a specialist path, use Modules 4–13 according to the approved target and technique classes, then return to Modules 8, 10, and 14 to connect the technical result to detection, reporting, governance, and retesting. Every practical exercise should produce evidence that another authorized reviewer can reproduce without relying on the operator’s memory or an AI-generated narrative.

Foundation track

Modules 1–3 establish authority, objectives, reconnaissance, validation discipline, and evidence. They are mandatory even when a specialist performs only web, cloud, or identity testing.

Specialist tracks

Modules 4–7 and 11–13 cover applications, infrastructure, cloud, identity, clients, human-layer testing, privilege, movement, and operator infrastructure. Select only the paths authorized by the engagement and supported by the laboratory or target environment.

Validation track

Module 8 converts relevant adversary behavior into observable, reversible tests. It separates prevention, telemetry, analytic coverage, alert handling, and response outcomes.

Assistance and delivery

Modules 9, 10, and 14 define when AI and MCP can assist, how tools are constrained, how labs are designed, and how evidence becomes a report, defensive handoff, governance decision, and retest.

Required engagement record

Maintain one record containing authorization and ROE, target inventory, objective-to-test mapping, operator timeline, tool versions and configuration, raw outputs, evidence references, changes made, cleanup confirmation, findings, detection observations, reviewer decisions, limitations, and retest state. A result that cannot be traced to this record remains a lead, not a defensible conclusion.

Technical foundations — what the operator must understand before tooling

5 deep references

Tools compress protocol behavior into convenient labels. Professional testing requires the operator to reconstruct what actually happened at the network, application, identity, operating-system, and control-plane layers—and to know which parts remain unproven.

Networks, DNS, TLS, and HTTP: interpret the path, not only the endpoint

A hostname is not a server, an IP address is not necessarily an owned asset, an open port is not automatically an application, and an HTTP response is not proof of the complete request path. Modern services commonly traverse recursive DNS, authoritative DNS, content-delivery networks, anycast addresses, load balancers, web application firewalls, reverse proxies, service meshes, gateways, and origin workloads. Each layer may have a different owner, log source, policy, and failure mode. Record the observation point and route before attributing behavior to the application team.

DNS reasoning

Separate the queried name, record type, returned value, CNAME chain, authoritative zone, resolver, TTL, DNSSEC state, and collection time. Historical records are discovery leads, not proof of current ownership. Wildcards can fabricate plausible-looking subdomains; split-horizon DNS can produce different answers internally and externally; and shared SaaS or hosting domains must not be imported into scope merely because a customer-specific name points to them.

Transport reasoning

TCP state reflects a conversation from one source at one time. A filtered result can mean an access-control device, local firewall, asymmetric route, rate limit, unavailable host, or dropped probe. UDP often requires protocol-aware requests and careful timing. Preserve source address, route, timing policy, probe type, retries, and packet evidence when the distinction matters.

TLS reasoning

Record SNI, certificate chain, subject alternative names, issuer, validity, negotiated version and cipher, client trust result, redirect behavior, and whether a proxy terminated TLS. A valid certificate proves that a trusted issuer bound a key to names under its policy; it does not prove application ownership, authorization quality, or absence of an origin exposure.

HTTP reasoning

Capture method, scheme, host, path, query, relevant headers, identity state, request body, response status, response headers, body, timing, redirects, cache behavior, and resulting server-side state. Compare authenticated and unauthenticated paths, but never interpret a single status code as the security decision. A 404 can conceal authorization; a 200 can contain an error; and a cached response can bypass the origin entirely.

Minimum protocol questions

  • Which component answered, and what evidence distinguishes edge, proxy, gateway, and origin?
  • Which identifier was used for routing: IP, hostname, SNI, Host header, tenant, API key, session, or workload identity?
  • Which controls were expected on this path, and where should their telemetry appear?
  • Could the result be explained by shared infrastructure, caching, network policy, stale data, or a scanner artifact?
  1. Scanning a CDN address and reporting every co-hosted domain as an asset.
  2. Calling port 443 “HTTPS confirmed” without a successful TLS and application-layer exchange.
  3. Inferring a vulnerable version from a banner that a proxy can rewrite.
  4. Reporting absent response headers without recording the exact endpoint, redirect chain, and response that was evaluated.

Foundation acceptance: given one browser request and one network scan result, the learner can draw the request path, label confirmed and inferred components, explain alternative interpretations, name the relevant logs, and produce a bounded next test without claiming ownership or vulnerability prematurely.

1200km path: Nmap guide series · OSINT and reconnaissance · Nmap analysis with an LLM

Identity, authentication, authorization, and session state

Authentication establishes or asserts an identity; authorization decides whether that identity may perform a specific action on a specific object under current policy; session management carries state across requests; federation transfers assertions between trust domains; and auditing records a representation of the decision. These are related controls, not synonyms. A successful login does not prove appropriate object access, and a denied user-interface action does not prove the server denied the underlying API operation.

Identity vocabulary

Distinguish human users, service accounts, workloads, devices, API clients, groups, roles, claims, credentials, tokens, sessions, keys, certificates, and recovery identities. Preserve immutable IDs in addition to display names. Names can be recycled; group membership and claims can change; tokens can outlive the policy state that issued them.

Authorization model

Document the subject, action, object, tenant or boundary, policy source, contextual conditions, and final decision. Role-based, attribute-based, relationship-based, discretionary, and policy-engine decisions fail differently. Test effective behavior rather than assuming the application implements the model described in documentation.

Token and session model

Record issuer, audience, subject, scopes or claims, issue and expiry times, binding, storage location, refresh behavior, revocation, step-up requirements, device context, and server-side session state. Do not place live credentials or reusable tokens into screenshots, reports, source control, or remote-model prompts.

Trust transitions

A useful identity graph labels each transition: password or key use, federation, impersonation, delegation, group nesting, ACL control, role assumption, workload identity, certificate enrollment, support reset, recovery, or administrative consent. A graph edge is a hypothesis until its preconditions and effective permission are validated.

Build an authorization matrix before mutation

Create controlled identities for the relevant roles and tenants. List representative objects and operations: view, list, create, update, delete, approve, export, administer, share, or impersonate. Record the expected outcome and the authoritative policy source. Capture a baseline request, change one security-relevant element at a time, observe both the response and persistent state, then correlate the audit record. This exposes horizontal object access, vertical privilege escalation, tenant-boundary failures, hidden administrative APIs, inconsistent bulk operations, and workflow bypasses without relying on blind fuzzing.

  1. Changing many headers, identifiers, and parameters at once, making the successful condition impossible to isolate.
  2. Testing with an administrator and assuming the same transaction represents a standard user.
  3. Treating a client-side hidden button as an authorization control.
  4. Reporting decoded token contents as verified truth without validating signature, issuer, audience, server behavior, and current policy.
  5. Collecting real credentials when synthetic accounts could prove the same control.

Foundation acceptance: the learner can explain the difference between authentication and authorization, draw the identity and session lifecycle, construct a subject–action–object matrix, prove one server-side decision with paired requests and audit evidence, and cleanly revoke all test credentials and sessions.

Primary: OWASP ASVS · 1200km path: Identity Threat Detection and Response

Operating systems, processes, privileges, and persistence

A host result must be interpreted through the operating system’s security model. On Windows, relevant boundaries include access tokens, integrity levels, privileges, services, scheduled tasks, registry and file ACLs, named pipes, remote-management interfaces, credential protection, application control, and endpoint telemetry. On Linux and Unix-like systems, consider real and effective IDs, groups, capabilities, sudo policy, set-user-ID behavior, services, cron and timers, namespaces, mandatory access controls, mounts, sockets, environment, and package provenance.

Model each privilege path as a sequence of state transitions. Record the starting principal, current privileges, controlled object, exact right, execution context, prerequisite, target principal, security boundary, visible side effects, defensive events, and rollback. “Writable service” is incomplete: which file or configuration is writable, by which identity, which trusted process consumes it, under what trigger, and with what resulting privilege?

Process and execution context

Record parent and child processes, executable or interpreter, arguments, working directory, user, integrity or privilege state, environment, loaded content, network connections, start time, exit result, and target change. The same command can have different security meaning under a different parent, user, host role, or administrative workflow.

Configuration and trust

Evaluate file and directory permissions, search paths, service definitions, library or module loading, scheduled execution, policy, secrets, and update channels. Confirm both write control and a reliable privileged consumption path; a writable unused file is not a privilege escalation.

Credential restraint

Prefer proofs that avoid extracting reusable secrets: metadata, access checks, controlled test identities, synthetic markers, or owner-observed validation. When credential access is explicitly required, define types, locations, minimization, encryption, rotation, retention, and emergency exposure handling before collection.

Cleanup as a technical phase

Track files, accounts, groups, keys, certificates, services, tasks, packages, processes, sessions, routes, firewall rules, persistence mechanisms, test data, and log artifacts. Verify authoritative state after cleanup; deleting the visible file does not prove a service, token, snapshot, or cloud-side record was removed.

Minimum-impact proof pattern

  1. Confirm the relevant configuration using native or read-only inspection.
  2. Verify the starting identity and the exact permission enabling the transition.
  3. Choose a reversible synthetic target or marker approved in the ROE.
  4. Execute the smallest action that crosses the intended boundary.
  5. Collect host, identity, endpoint, and application evidence around the same UTC window.
  6. Restore the baseline and independently verify the state and credential disposition.

Foundation acceptance: the learner can decompose a privilege finding into principal, controlled object, right, trigger, privileged consumer, proof, telemetry, and rollback, and can reject a candidate where one required edge is absent.

Cloud, containers, and Kubernetes: separate control planes from workloads

Cloud assessment requires explicit tenant and provider context. A public IP may belong to a provider edge; a resource name may exist in several projects; a role name may resolve to different permissions; and an effective authorization decision may combine organization policy, account policy, resource policy, identity policy, session restriction, boundary, deny rule, and contextual condition. Capture immutable tenant, subscription, account, project, resource, principal, and event identifiers rather than relying on names.

Cloud identity path

Trace the starting principal, credential type, authentication context, role or service-account assumption, effective permissions, resource policy, data or control-plane action, and recorded provider event. Keep “permission exists,” “permission is effective,” “resource is reachable,” and “action succeeded” as separate states.

Workload boundary

Distinguish image, container, pod, node, cluster, namespace, service account, network, metadata service, registry, secrets store, and cloud identity. Container root is not automatically host root. A pod permission is not automatically cluster administration. A cluster credential is not automatically cloud control-plane access.

Kubernetes authorization

Record the subject, group, service account, namespace, verb, resource, resource name, role or cluster role, binding, admission decision, and audit event. Evaluate token projection and rotation, pod security, network policy, secret access, workload identity, admission controls, and node trust as different boundaries.

Cost and state

Testing can create resources, snapshots, images, functions, queues, logs, API calls, network egress, and retention costs. Define budgets, regions, tags, expiration, teardown ownership, and a post-test provider inventory. Deleting a workload may leave keys, images, snapshots, events, or external resources.

Evidence hierarchy

Prefer provider API responses and audit events tied to immutable IDs, followed by configuration exports and policy simulation, then console screenshots as supporting context. Preserve before-and-after state for changed policy. Treat third-party CSPM and scanner findings as hypotheses until the effective path and environment context are confirmed.

  1. Reporting a broad policy string without showing that the tested principal receives it after all denies and conditions.
  2. Calling a public provider IP an owned host or adding unrelated co-tenants to inventory.
  3. Assuming a container escape because a process runs as root inside the container.
  4. Ignoring cloud event IDs, leaving the defensive team unable to correlate the test.
  5. Closing the assessment before reconciling resources, secrets, sessions, images, and cost.

Foundation acceptance: the learner can draw the control-plane and workload boundaries, prove one effective permission with an immutable identity and audit event, distinguish namespace/cluster/node/cloud impact, and reconcile all created resources and credentials.

1200km path: Black-box Kubernetes testing playbook · Cloud identity scenario

Telemetry, evidence, uncertainty, and the claim ladder

Technical testing produces observations under defined conditions. Reporting turns those observations into claims. The rigor of the report depends on preserving the steps between them. Use a claim ladder: source lead identifies something worth checking; observation records what a tool or system returned; corroboration confirms it through another source or layer; reproduction demonstrates the behavior under controlled conditions; impact evidence shows the authorized security consequence; and conclusion explains the decision with limitations and confidence.

Raw evidence

Preserve original scan output, request and response records, audit events, logs, packet captures where justified, command transcripts, configuration exports, screenshots with context, file hashes, test-artifact versions, and time-source information. Raw does not mean unprotected: classify, encrypt, minimize, and restrict access.

Derived evidence

Parsed tables, graphs, ATT&CK mappings, AI summaries, risk scores, timelines, and dashboards are derived artifacts. Link each item back to raw evidence and record parser, query, model, rules, and version. Reprocessing must not overwrite the original.

Confidence and limitations

Confidence describes support for the conclusion, not severity. State collection gaps, untested platforms, assumed versions, blocked probes, unavailable logs, shared infrastructure, sample limits, model uncertainty, and time sensitivity. “Unresolved” is a valid state when the evidence is insufficient.

Defensive correlation

Align operator actions and defensive events to a common time reference. Record source and target, identity, test ID, procedure, expected event, observed event, ingestion delay, normalization, analytic, alert, route, analyst decision, and response. Absence from a dashboard is not proof that telemetry was never generated.

Example claim decomposition

Weak: “The server is vulnerable to CVE-X.” Reviewable: “The authenticated inventory reports component A version B on asset C. Vendor advisory D states that this build is affected when condition E is enabled. A read-only check confirmed E at time F; protective control G blocked the authorized proof before impact. Disposition: affected configuration with compensating prevention observed, impact not demonstrated, medium confidence, retest after upgrade.” The second form shows which facts were observed, which came from a source, what was blocked, and what remains uncertain.

Foundation acceptance: the learner can take a scanner, proxy, identity, or AI-generated claim and separate source, observation, corroboration, reproduction, impact, inference, confidence, and limitation; every accepted statement links to evidence another reviewer can inspect.

Module 1 — Mission, authorization, and methodology

6 topics

The engagement contract is a security control. A technically successful test can still be a failed engagement if it exceeds authority, disrupts production, mishandles data, or cannot explain business impact.

Module 2 — Reconnaissance and attack-surface mapping

5 topics

Reconnaissance should produce a scoped, attributed asset model—not an unreviewed pile of domains, ports, and screenshots.

Module 3 — Vulnerability discovery and validation

5 topics

A finding becomes defensible when the affected component, version, preconditions, reproducibility, control context, and impact are supported by evidence.

Module 4 — Web applications and APIs

5 topics

Use a repeatable testing model that covers architecture, identity, authorization, sessions, input handling, business logic, APIs, clients, and deployment—not just an automated crawl.

Module 5 — Cloud, containers, and Kubernetes

5 topics

Cloud testing combines provider authorization, identity, control-plane APIs, workload exposure, data paths, and audit evidence. A hostname scan alone is not a cloud assessment.

Module 6 — Active Directory and identity attack paths

5 topics

Identity testing is relationship analysis: users, machines, services, certificates, policies, trusts, and delegated rights combine into paths that single-object reviews miss.

Module 7 — Privilege, lateral movement, and controlled impact

5 topics

Post-exploitation proves paths and defensive visibility with the minimum necessary action. It is not permission to collect everything reachable.

Applied workflow — validate a post-exploitation path with minimum impact

Post-exploitation answers a bounded question about privilege, reachability, trust, or defensive response. It should not become open-ended collection. Every transition needs a reason, a permitted proof, a telemetry expectation, and a cleanup action before execution.

  1. Reconfirm the current state. Record the controlled identity, host or workload, integrity or privilege level, network vantage point, acquired capability, evidence source, and the objective that requires another step.
  2. Enumerate locally before acting. Review platform, patch and configuration evidence, execution boundaries, services, permissions, scheduled activity, secrets locations, network routes, and defensive controls. Avoid broad collection unrelated to the objective.
  3. Rank privilege transitions. Prefer configuration and delegated-right paths that can be proven reversibly. Evaluate required version, access, interaction, stability, likely side effects, and telemetry before considering exploit-based transitions.
  4. Control credential handling. Use synthetic or engagement-specific credentials when possible. If collection of real material is authorized, minimize fields, encrypt evidence, restrict access, prohibit reuse, rotate promptly, and document destruction.
  5. Plan each pivot. Identify source, destination, protocol, port, credential or token, expected segmentation decision, defensive signal, transfer requirement, and rollback. Do not use a newly reachable subnet as automatic permission to scan it.
  6. Demonstrate controlled impact. Use a unique marker, synthetic record, harmless test file, approved account, or pre-staged canary. Record the proof and stop at the objective instead of collecting additional data.
  7. Pair execution with observation. Capture endpoint, identity, network, application, cloud, and SIEM evidence. Note prevention, logging, alert creation, enrichment, analyst triage, containment, and communication separately.
  8. Perform independent cleanup verification. Remove accounts, keys, tokens, tasks, services, files, routes, listeners, tunnels, firewall rules, payloads, cloud objects, and test records; then have a second reviewer compare the change ledger with actual state.

Transition record

  • Objective and reason for continuing
  • Source identity, asset, privilege, and capability
  • Destination and approved protocol or action
  • Preconditions, expected result, and stop point
  • Operator and defensive timestamps
  • Changes, artifacts, secrets, and cleanup owner

When to simulate

Represent rather than execute actions that could interrupt service, encrypt or delete data, affect safety, trigger financial transactions, send external messages, expose regulated records, create durable persistence, or make recovery uncertain. The report must state that impact was simulated.

Safe lab exercise

Use the isolated subnet-compromise lab to document one privilege transition and one approved pivot. Replace unrestricted compromise goals with a synthetic marker, a route allowlist, a change ledger, and a second-person cleanup review.

Defensive handoff

For each transition, provide the exact behavior, ATT&CK mapping, affected control, available data source, observed event, analytic result, false-positive considerations, containment opportunity, and retest procedure. Tool names alone are not detection requirements.

Evidence gate: continue beyond the current foothold only when the next transition is explicitly in scope, necessary for an objective, reversible, observable, assigned a cleanup action, and supported by a defined stop point.

Module 8 — Threat-informed adversary emulation and purple teaming

5 topics

Threat-informed testing asks whether relevant behaviors are prevented, observed, detected, investigated, and contained—not merely whether an operator can run a tool.

Module 9 — AI-assisted offensive security and MCP

6 topics

AI can accelerate interpretation and orchestration, but it also adds a non-deterministic planner, new data flows, tool permissions, prompt-injection risk, and supply-chain trust to the engagement. Use the AI Security adversarial-testing model to define repeatable evaluations, evidence, and human decision gates.

Module 10 — Laboratories, tool discipline, and reporting

6 topics

Practice should be isolated, observable, reproducible, and tied to defensive learning. Reporting is part of the technical work, not an administrative afterthought.

Module 11 — Mobile and thick-client security

5 topics

A client assessment covers locally executed code, operating-system boundaries, local data, update and distribution, inter-process communication, network behavior, remote APIs, and business logic. The client and backend must be scoped and reported separately.

Module 12 — Human-layer and physical testing

5 topics

Social-engineering and physical exercises can affect real people, privacy, employment relationships, safety, and trust. They require special authorization, legal and HR review, strict data minimization, immediate safety escalation, and a learning-focused outcome.

Module 13 — Red-team infrastructure and operations

5 topics

Operator infrastructure is part of the assessed risk. It must not become an unmanaged route into the client, a source of uncontrolled internet activity, or a repository of secrets and evidence without ownership.

Module 14 — Program governance and maturity

5 topics

A red-team program is a repeatable assurance capability, not a sequence of impressive one-off exercises. Governance should make authority, coverage, evidence, remediation, retesting, and organizational learning visible.

Operator technical deep dives

7 decision records

Each deep dive starts with a concrete analytical question and ends with an acceptance gate. The purpose is to make the reasoning behind the test visible: prerequisites, baseline, controlled variation, evidence, alternative explanations, defensive visibility, cleanup, and the limits of the conclusion.

Deep dive 1 — Validate a network service without overstating the result

Question: “What service is reachable on this approved asset from this vantage point, what component appears to answer, and what safe next test is justified?” Begin with an authoritative target record and a narrow target list. Record the scanner host, interface, source address, route or VPN, DNS resolver, test window, tool version, timing profile, TCP/UDP policy, excluded probes, and expected monitoring. Establish whether load balancers, WAFs, NAT, CDN, service mesh, or provider edges sit between operator and origin.

Progressive validation

  1. Reachability: determine whether the host and protocol respond from the chosen vantage point. Preserve lack of response as a condition, not as proof that no service exists.
  2. Transport: record port state and the exact exchange supporting it. Repeat only enough to exclude transient loss or rate limiting.
  3. Protocol: use a well-formed, non-mutating protocol request. Confirm that the response grammar and state correspond to the expected protocol.
  4. Service: compare banner, handshake, TLS certificate, HTTP behavior, protocol capability, and owner inventory. Assign confidence instead of forcing a product label.
  5. Product and version: corroborate a version with authenticated inventory, package data, administrative interface, vendor-specific behavior, or owner confirmation. A banner alone is weak evidence.
  6. Security property: test only the property needed by the objective—such as exposure, authentication requirement, encryption configuration, or a vendor-provided safe check.

Evidence packet

Target and owner; collection point; DNS and routing context; raw machine-readable output; protocol transcript; TLS/HTTP metadata; product/version sources; scanner confidence; timestamps; defensive event IDs; interpretation; alternatives; scope decision; and next test.

Alternative explanations

Shared edge, port-forwarding, protocol proxy, honeypot, stale exposure index, banner deception, virtual hosting, load-balanced pools with different builds, scanner fallback, network policy, or a service that only reveals its identity after authentication.

Defensive visibility

Correlate firewall, load-balancer, WAF, server, endpoint, and SIEM records. Note whether source address, destination, protocol, request, host header, identity, action, and test ID survive normalization. Scanner alerts without usable target context are a defensive finding.

Stop conditions

Unexpected production instability, scope ambiguity, third-party routing, rate-limit impact, sensitive response data, real compromise indicators, or evidence that the target is not the approved system triggers pause and escalation.

  1. Collapsing repeated edge addresses into duplicate “open services” without endpoint normalization.
  2. Converting every fingerprint into a CVE match while product, build, and configuration are unconfirmed.
  3. Running broad scripts before identifying protocol and side effects.
  4. Keeping only a screenshot and discarding the XML, JSON, transcript, and timing context.

Acceptance gate: a peer reviewer can reproduce the narrow service observation, distinguish edge from origin, see which identity/version claims are confirmed or inferred, and agree that the proposed next step is both authorized and technically necessary.

Deep dive 2 — Model and test one web or API transaction

Question: “Does the server enforce the intended security property for this business transaction across roles, tenants, objects, channels, and workflow states?” Choose one transaction such as exporting a synthetic invoice, changing a recovery address, approving a payment, sharing a document, or retrieving an API object. Document the business rule before testing. Identify actors, roles, tenants, objects, operations, states, approval requirements, rate or value limits, and expected audit events.

Create the transaction model

Trace browser or client input through DNS, edge, gateway, application, identity provider, backend services, queues, storage, third parties, and audit. Record every request involved, not only the final API call. A secure front-end operation can depend on a vulnerable preview, export, batch, mobile, GraphQL, websocket, support, or administrative path. Enumerate alternate encodings and identifiers only after the baseline is understood.

Paired-request method

  1. Create synthetic users and objects for at least two roles or tenants; record immutable IDs and expected policy.
  2. Capture a successful baseline request and its persistent state change, including anti-CSRF, session, token, and workflow context.
  3. Capture the expected-deny baseline using an identity that clearly lacks the action.
  4. Change one security variable: object ID, tenant, role, workflow state, method, channel, claim, or approval state.
  5. Compare status, headers, response body, timing, side effects, subsequent reads, notification, billing or quota effects, and audit events.
  6. Repeat only enough to isolate the root condition; stop after the synthetic proof answers the objective.

Authentication

Test enrollment, login, MFA, recovery, federation, session creation, refresh, revocation, concurrent sessions, device trust, and step-up as separate state machines. Use dedicated accounts and do not lock real users.

Authorization

Evaluate horizontal, vertical, tenant, object, function, field, workflow, and bulk-operation access. The authoritative question is whether the server permits the subject–action–object combination.

Input and output

Identify parser boundaries, canonicalization, validation, transformation, storage, query, template, downstream interpreter, and output context. A scanner payload match is not proof of code execution or data impact.

Business logic

Review sequencing, replay, concurrency, approval separation, value limits, inventory, entitlement, discount, refund, invitation, sharing, and support overrides. These flaws often require stateful reasoning more than payload dictionaries.

Finding language

Describe the violated security property, exact affected transaction, required identity and state, paired request difference, observed unauthorized effect, synthetic impact, server-side root cause, audit result, scope, and limitation. Recommend policy enforcement at the authoritative server boundary and a regression test covering the failing subject–action–object case—not merely hiding the UI control.

Acceptance gate: the finding includes reproducible paired requests, role/tenant/object state, persistent effect, server-side evidence, audit behavior, synthetic impact, cleanup, and a negative regression test. No real customer or employee data was needed.

Primary: OWASP Web Security Testing Guide · OWASP ASVS · 1200km: Burp Suite workflow

Deep dive 3 — Build a vulnerability decision record

Question: “Is this exact asset affected by the weakness, is the vulnerable behavior reachable under realistic preconditions, what did controls change, and what action should the owner take?” Never begin with a severity score alone. Create one record that keeps asset identity, component identity, vulnerability identity, exploitability, exposure, control behavior, business impact, confidence, and remediation state separate.

Evidence sequence

  1. Normalize the lead. Preserve scanner, plugin or template ID, version, configuration, target, raw result, timestamp, and the logic that produced the match.
  2. Confirm the asset. Resolve owner, environment, business service, criticality, exposure, authentication boundary, network path, and whether a proxy or shared provider answered.
  3. Confirm the component. Use package inventory, SBOM, authenticated management data, build metadata, deployment manifest, file evidence, vendor API, or owner record. Product names and CPE matches are not sufficient by themselves.
  4. Read primary sources. Compare vendor advisory, CVE record, fixed builds, affected branches, configuration conditions, exploit consequences, workarounds, and known exploitation evidence. Note disagreements among sources.
  5. Evaluate preconditions. Determine reachable interface, required identity, feature state, privileges, user interaction, network position, data type, and environmental mitigations.
  6. Choose minimum proof. Prefer vendor safe checks, version/configuration proof, harmless response difference, synthetic marker, or isolated clone. Escalate only if uncertainty affects the business decision and authorization permits it.
  7. Observe controls. Separate vulnerable condition, attempted behavior, prevention, detection, alert, response, and residual impact.
  8. Make the disposition. Confirmed, affected but blocked, not affected, false positive, duplicate/root-cause child, accepted risk, remediated, or unresolved—with confidence and limitation.

Priority inputs

Business service, internet/internal exposure, reachable path, required privileges, exploit maturity, known exploitation, likelihood signals, blast radius, data/control impact, compensating controls, recovery, asset lifecycle, and owner deadline.

Do not combine

CVSS estimates technical severity; KEV records known exploitation inclusion; EPSS estimates a probability under its model; asset criticality reflects local business value. None alone is a final organizational risk decision.

Duplicate control

Group findings by authoritative asset, component, root cause, and vulnerable range. Preserve each source observation but avoid creating separate remediation items for the same underlying defect unless owners, environments, or treatments differ.

Retest

Verify deployed fixed build or configuration, restart/redeploy state where applicable, original proof now fails safely, service still functions, controls still log, related assets are addressed, and temporary workaround or credentials are removed.

  1. Declaring exploitation based on a template name or HTTP string match.
  2. Using a public proof-of-concept without source review, sandboxing, side-effect analysis, or authorization.
  3. Copying advisory maximum impact into the report when the local preconditions were not present.
  4. Closing on package installation while the vulnerable process, image, function, or node still runs the old build.

Acceptance gate: the disposition identifies the authoritative asset and component, affected range, local preconditions, safe proof, controls, demonstrated and plausible impact, source citations, confidence, owner action, and versioned retest. An independent reviewer can see why the scanner lead was accepted, rejected, or left unresolved.

Deep dive 4 — Validate an identity attack path edge by edge

Question: “Can the authorized starting principal reach the protected identity or action through effective, repeatable control relationships, and which single edge should be removed or monitored?” Start with immutable principal and object IDs, directory or tenant, group memberships, token context, current session, trust domain, and data timestamp. Identity graphs become stale quickly; collection time and source authority matter.

Edge vocabulary

Classify each relationship: direct group membership, nested group, object ACL, ownership, delegated administration, password or key reset, session presence, local administrator, service control, Kerberos delegation, SPN or service relationship, certificate template/enrollment condition, federation or consent, cloud role assumption, workload identity, secret access, support workflow, or policy inheritance. For every edge, record the controlled object, effective right, precondition, target effect, required protocol, audit source, and remediation owner.

Validation workflow

  1. Confirm the starting identity and collect only authorized directory or provider metadata.
  2. Generate candidate paths, but rank them by current effective rights, reachable systems, required credentials, monitoring, business relevance, and proof safety.
  3. Manually validate each edge using authoritative access checks and current configuration. Remove historical, disabled, denied, or context-incompatible edges.
  4. Select the shortest safe proof that demonstrates the security property, preferably against a synthetic object or account.
  5. Correlate identity-provider, directory, CA, endpoint, cloud, application, and SIEM records. Record event IDs and field quality.
  6. Remediate the root edge, recalculate alternate paths, rotate or revoke test credentials and certificates, terminate sessions, and rerun the expected-deny test.

Kerberos

Separate account/service configuration, ticket request, encryption support, delegation condition, service reachability, credential material, and authorization after ticket use. A ticket-related observation is not automatically domain compromise.

ADCS

Evaluate CA, template, enrollment rights, issuance requirements, subject naming, EKUs, manager approval, authorized signatures, mapping behavior, and target privileges. Report the exact template and chain; avoid labeling every permissive setting as an exploitable escalation.

Cloud federation

Record issuer, tenant, application/client, audience, consent, claims, conditional access, session restrictions, role assumption, resource policy, and provider audit. Display names are insufficient for cross-tenant analysis.

Detection

Measure source event creation, collection, normalization, enrichment, analytic logic, alert routing, analyst understanding, containment, and credential invalidation separately. High-volume identity telemetry without immutable IDs can make a valid detection operationally unusable.

Acceptance gate: every graph edge is current, effective, independently evidenced, and tied to a protocol and owner; the controlled proof stops at the approved synthetic action; alternate paths and session/credential cleanup are documented; and the detection record distinguishes expected logs from observed response.

1200km path: AD lab · Certificate escalation scenario · Cloud identity takeover scenario

Deep dive 5 — Test a cloud or Kubernetes boundary with tenant-safe evidence

Question: “Can this exact principal perform this exact control-plane or workload action on this resource, and what policy chain permits or denies it?” Define the tenant/account/project/subscription, region, resource IDs, network, cluster, namespace, workload, identity, credential source, provider rules, cost ceiling, and cleanup owner before testing. Provider terms and third-party authorization remain part of the ROE.

Cloud permission record

Capture the principal’s immutable ID, authentication and session context, requested API action, target resource, identity policy, group or role inheritance, resource policy, organization controls, permissions boundary, explicit denies, conditions, service-control behavior, and effective result. If a simulator is used, mark it as a prediction until confirmed by an authorized harmless action. Preserve request or event IDs from the provider API and audit log.

Kubernetes permission record

Capture cluster and namespace, subject and groups, service account, token audience/expiry, verb, API group, resource, resource name, role/cluster role, binding, admission result, API response, audit event, workload/image, node, network policy, secret source, and cloud-workload identity mapping. A broad list permission and a named secret read are different proofs; a namespace path and a node path are different findings.

  1. Establish expected allow and expected deny using synthetic resources.
  2. Review effective permission using native provider or Kubernetes authorization interfaces.
  3. Identify the smallest policy edge that appears to violate the intended boundary.
  4. Perform one harmless named-object action using the approved identity.
  5. Verify provider/Kubernetes audit, network, workload/runtime, identity, and SIEM evidence.
  6. Remove or narrow the policy edge, rotate the relevant token or secret, and rerun the deny case.
  7. Inventory and remove resources, images, snapshots, keys, sessions, logs outside retention, and cost-bearing services.

Evidence quality

Provider API result and audit event tied to immutable IDs are primary. Policy exports and before/after infrastructure-as-code diffs explain root cause. Console screenshots support the record but should not be the only evidence.

Impact restraint

Use synthetic objects, empty buckets, isolated namespaces, test keys, and harmless control-plane actions. Do not copy production data, modify shared policy, assume another tenant, or create persistence when the permission decision itself answers the objective.

Acceptance gate: the tested principal, policy chain, resource, request, response, audit event, synthetic effect, remediation diff, deny retest, credential rotation, resource reconciliation, and cost confirmation all refer to the same tenant and test ID.

Deep dive 6 — Validate detection as a lifecycle, not a rule screenshot

Question: “For this exact relevant procedure, does the environment prevent, observe, analyze, route, interpret, and respond as intended?” Begin with a source-backed behavior and local hypothesis. Record procedure details—platform, identity, process or API, input, target, sequence, and observable characteristics—before mapping ATT&CK. Technique IDs organize knowledge but do not supply the environment-specific test.

Telemetry contract

List each expected data source, producer, event, field, collection agent, transport, normalization, enrichment, index, retention, query, expected latency, and owner. Include time synchronization and a unique test marker. Verify raw event ingestion before evaluating the detection rule; otherwise a missing alert can be misclassified as a logic failure when the data never arrived.

LayerQuestionEvidenceCommon gap
PreventionDid a control block or modify the action?Operator result, target state, control eventBlock inferred from lack of effect without control evidence
GenerationDid the source create the required event?Native endpoint/cloud/application recordAudit category or logging policy disabled
CollectionWas the event transported and retained?Agent and pipeline state, raw event, latencyDropped event, delay, parsing failure, retention gap
NormalizationAre required fields correct and usable?Raw-to-normalized comparisonMissing identity, process, target, tenant, or test marker
AnalyticsDid the versioned logic evaluate the event?Rule/query version, evaluation trace, resultWrong field, threshold, scope, suppression, or disabled rule
AlertingWas context created and routed?Alert ID, enrichment, queue, timestampsRule fires but queue, ownership, or enrichment fails
AnalysisDid the analyst reach the intended conclusion?Triage notes, source pivots, decision and timingAlert lacks procedure, asset, identity, or business context
ResponseDid containment and recovery work safely?Approved action, state, communications, recoveryPlaybook exists but authority, automation, or rollback fails

Rule improvement and retest

When a layer fails, change that layer and keep the procedure stable. Version the test artifact, analytic, lookup/enrichment, target configuration, and expected result. Evaluate false positives using representative benign data without weakening the malicious behavior indiscriminately. Rerun the same test, compare event and alert timing, preserve both failure and success, and state the validated scope: platform, procedure, telemetry, rule version, and date.

  1. Marking a technique green because a rule title or data-source mapping exists.
  2. Changing the test at the same time as the rule, making the retest incomparable.
  3. Testing only whether the alert fired and ignoring whether the analyst could act on it.
  4. Reporting “no detection” when prevention stopped the procedure before the expected event.

Acceptance gate: the record links threat source, exact procedure, versioned safe test, expected telemetry, raw events, analytic, alert, analyst decision, response, gap owner, change, and comparable retest. Coverage is claimed only for that bounded procedure and environment.

1200km path: Operation Desert Hydra · Attack–Defense Simulation Framework · AdversaryGraph Attack Simulation

Deep dive 7 — Design an AI/MCP control plane that remains reviewable

Question: “Can an assistant help plan, interpret, or invoke authorized security tools while deterministic controls—not model compliance—enforce target, effect, data, and approval boundaries?” Treat the complete system as a privileged distributed application: user, AI client, model provider, system policy, conversation context, retrieval, memory, MCP servers, tool schemas, credentials, runner, network, target, evidence store, logs, and human approver.

Tool contract

Each tool needs a stable name and version, narrow purpose, effect class, input schema, target type, scope validator, argument allowlist, credential identity, time and resource limits, network/filesystem policy, approval requirement, idempotency or duplicate-call behavior, structured response schema, side-effect report, artifact references, error model, and cleanup or rollback. Reject unknown fields and ambiguous targets. Resolve hostnames and ranges at the policy layer while preventing DNS rebinding or expansion beyond the approved inventory.

Response contract

Return invocation ID, normalized target and arguments, start/end time, tool/server version, execution status, observations, raw artifact IDs and hashes, parser/version, warnings, partial-completion state, side effects, created or modified objects, cleanup requirement, and safe error details. Keep raw output outside model prose. A timeout, partial result, parser error, and confirmed empty result must remain distinguishable.

Human approval design

  1. Display the objective and scope record that authorizes the proposed call.
  2. Show normalized target, tool, arguments, effect class, credentials, data disclosure, expected side effects, stop condition, rollback, and evidence location.
  3. Require fresh approval for active scanning, authentication, file writes, code execution, exploitation, credential use, privilege change, persistence, movement, external communication, and data transfer.
  4. Bind approval to the exact normalized call and expiry; do not approve an opaque plan that the model can reinterpret.
  5. Log rejection as well as approval so policy quality and unsafe proposals can be reviewed.

Prompt-injection defense

Retrieved documents, web content, repository text, banners, tool output, and report uploads are untrusted data. Separate them from policy; label provenance; restrict retrieval; sanitize display; prevent content from changing permissions; and test instructions that request secrets, new targets, policy override, or hidden calls.

Data governance

Classify prompts, evidence, credentials, personal data, client data, and model logs. Prefer approved local processing when evidence cannot leave the environment. Minimize context, redact secrets, define provider retention, isolate tenants, and delete embeddings or caches during closure when required.

Failure testing

Test unavailable models/servers, malformed inputs, unknown fields, oversized output, timeouts, retries, duplicate calls, partial writes, stale approval, target mismatch, path traversal, command injection, result spoofing, prompt injection, leaked secret, audit outage, and failed cleanup.

Analytical verification

Independently verify asset ownership, service/product/version, CVE relevance, ATT&CK mapping, query syntax, finding severity, and remediation. Model confidence is not evidence confidence. Record discarded suggestions and corrections.

Acceptance gate: unauthorized targets and effect classes fail even when the model requests them; approvals bind exact calls; schemas reject ambiguity; raw evidence and side effects are preserved; prompt-injection tests do not alter authority; partial failures are visible; and an operator can reconstruct every accepted conclusion without trusting the assistant narrative.

1200km path: HexStrike research hub · AI in Offensive Security · Practical Attacks Against LLM Agents

End-to-end case studies

6 controlled scenarios

These scenarios show how to connect scope, collection, validation, evidence, defensive observation, cleanup, and reporting. They are designs for owned laboratories or explicitly authorized environments—not instructions to target public systems.

Case 1 — External discovery to a validated web authorization finding

ExternalWeb/APIAuthorizationBurp SuiteEvidence-led

Objective: determine whether a standard customer in a training tenant can access another tenant’s synthetic export and whether the application and SOC record the denied or successful attempt. The authorized target is a deliberately vulnerable lab application behind a reverse proxy; CDN and shared-provider addresses are explicitly excluded.

  1. Import the supplied domain, lab address, application owner, tenant identifiers, allowed test accounts, business transaction, source IP, time window, and prohibition on availability testing into the engagement record.
  2. Perform passive DNS and certificate review, then narrow active service validation. Reconcile the virtual host and reverse proxy so the evidence is attributed to the application instead of the hosting address.
  3. Capture the normal export workflow with User A: authentication, API request, object identifier, asynchronous job, download, audit event, and the synthetic marker in the resulting file.
  4. Build a role–action–object matrix for User A, User B in another tenant, an expired session, and the approved administrative role. Record expected allow and deny decisions.
  5. Replay only the object reference under User B. Preserve the sanitized baseline and mutated requests, response, resulting job state, downloaded synthetic marker if exposed, identity/tenant context, and application audit entry.
  6. Confirm the minimum root cause with the owner: server-side authorization uses object existence but does not enforce tenant ownership. Stop without enumerating unrelated exports.
  7. Correlate WAF, identity, application, API, and SIEM evidence. Report separately whether traffic was logged, an analytic matched, an alert was created, and an analyst received actionable context.
  8. Remediate with centralized tenant-aware authorization, a negative integration test, audit improvement, and a detection hypothesis. Rerun the identical controlled request and preserve the denied result.

Deliverables

Attributed attack-surface record, transaction map, authorization matrix, paired HTTP evidence, synthetic impact proof, root-cause finding, detection observation, cleanup confirmation, and before/after retest.

Do not claim: compromise of the entire platform, access to real customer data, effectiveness of every authorization path, or detection coverage beyond this versioned transaction and environment.

Case 2 — Standard user to a certificate-based identity control path

Active DirectoryADCSIdentity graphDetectionRetest

Objective: validate whether a synthetic standard account can obtain a certificate representing a privileged test identity through an intentionally misconfigured laboratory template, and whether directory, certificate, endpoint, and SIEM controls expose the path.

  1. Deploy the isolated AD laboratory, add certificate services, synthetic identities, endpoint logging, directory auditing, CA logs, and SIEM ingestion. Snapshot the baseline.
  2. Model domains, OUs, groups, template permissions, enrollment services, authentication settings, and the protected administrative action. Label every graph edge with the exact principal, object, right, and protocol condition.
  3. Confirm that the test account may enroll in the selected template and that the template’s identity-binding configuration creates the intended laboratory risk. Preserve configuration evidence before attempting enrollment.
  4. Use a synthetic privileged identity and the minimum certificate request needed to validate the edge. Record request identifiers, account, template, CA, timestamps, resulting certificate metadata, and all target changes.
  5. Validate only the pre-agreed administrative marker, then stop. Correlate directory, certificate, authentication, endpoint, and SIEM events with the operator timeline.
  6. Classify each layer: dangerous configuration exists; request succeeds or fails; authentication succeeds or fails; privileged action succeeds or fails; telemetry exists; analytic fires; analyst understands the certificate relationship.
  7. Remediate template rights and identity binding, revoke the test certificate, remove artifacts, verify revocation and cleanup, then rerun the same enrollment attempt and expected detection query.

Deliverables

Identity path record, template and CA evidence, controlled request record, certificate metadata, privilege marker, event timeline, analytic result, revocation and cleanup proof, and path-closure retest.

Do not claim: a generic “ADCS compromise.” State the exact template, principal, enrollment path, identity condition, validated action, and environment.

Case 3 — Cloud workload identity with excessive storage privilege

CloudWorkload identityStorageAuditSynthetic data

Objective: test whether a low-privilege application workload in a disposable project can read a synthetic object from a protected bucket because of an inherited role, and whether the provider audit and SIEM pipeline explain the effective permission.

  1. Record the organization, project/account/subscription, region, resource IDs, provider testing policy, test principal, allowed APIs, budget, expiry, source network, and prohibition on provider infrastructure testing.
  2. Provision a tagged workload, one public test endpoint, a protected storage resource containing a unique synthetic marker, an intentionally broad inherited role, audit logging, and a second expected-deny identity.
  3. Build the effective-permission chain: workload identity binding, group or role inheritance, resource policy, conditions, and the exact storage action. Validate with policy analysis and read-only API evidence before accessing the object.
  4. Request only the named synthetic object using the workload identity. Preserve the sanitized API call, resource and principal IDs, provider event ID, response metadata, marker, and operator timestamp.
  5. Compare the expected-deny identity, confirm audit fields and SIEM ingestion, and test whether the analytic identifies the workload, target resource, inherited grant, and unusual access path.
  6. Replace the broad role with a least-privilege permission, revoke temporary credentials, delete the marker and test resources, compare inventory and cost against baseline, and rerun both identities.

Deliverables

Resource graph, effective-permission chain, provider event IDs, synthetic object evidence, allow/deny comparison, SIEM result, policy change, inventory/cost reconciliation, and retest.

Do not claim: exposure of unrelated storage, organization-wide privilege, or data theft. The validated result is limited to the synthetic object, principal, policy version, and project.

Case 4 — Kubernetes service-account and namespace boundary validation

KubernetesRBACService accountRuntimeAudit

Objective: determine whether a synthetic workload in Namespace A can read a designated secret in Namespace B because of an intentionally over-broad binding, and validate Kubernetes and cloud audit visibility without attempting node or host escape.

  1. Create a disposable cluster with two namespaces, synthetic service accounts, a designated secret marker, network policy, audit logging, runtime monitoring, restricted admission, resource quotas, and deterministic teardown.
  2. Record cluster, namespace, workload, pod, service account, role, binding, token audience, cloud identity linkage, image, node, and API server identifiers. Establish the expected-deny baseline.
  3. Review RBAC rules and effective access for the Namespace A service account. Trace the exact binding that grants the cross-namespace read instead of relying only on a scanner label.
  4. From the approved test pod, request only the named synthetic secret through the Kubernetes API. Preserve API request metadata, audit event, service-account identity, response metadata, and marker.
  5. Correlate Kubernetes audit, workload, network, runtime, cloud identity, and SIEM events. Verify whether the analyst can distinguish normal controller activity from the synthetic cross-namespace request.
  6. Replace the binding with namespace-scoped permission, rotate the test secret and token, remove the pod and images, verify audit continuity, rerun the expected deny, and destroy the cluster.

Deliverables

Cluster scope, RBAC relationship, service-account and token context, expected-deny baseline, controlled API evidence, audit timeline, remediation manifest, secret rotation, retest, and cluster teardown.

Do not claim: cluster compromise or container escape. The evidence supports one service-account authorization path and its detection lifecycle.

Case 5 — Threat report to PowerShell detection validation

CTIATT&CKPowerShellAtomic validationPurple team

Objective: convert a source-backed report describing encoded or obfuscated PowerShell behavior into a benign, versioned laboratory procedure, then determine whether required telemetry, analytic logic, alert routing, analyst interpretation, and containment operate as expected.

  1. Preserve the report, publication date, relevant procedure excerpt, platform, actor or campaign confidence, ATT&CK mapping, and local relevance. Separate the cited behavior from generic technique assumptions.
  2. Write a detection hypothesis defining process, command-line or script-block characteristics, parent/child context, user and host context, expected benign variation, data sources, required fields, time window, and analyst decision.
  3. Create a harmless script that writes a unique marker, then encode or obfuscate only enough to preserve the behavior required by the hypothesis. Record script hash, test ID, version, target, expected events, and cleanup.
  4. Execute in the isolated endpoint lab, preserve process and script evidence, verify target state, query raw telemetry before evaluating the analytic, and correlate time across endpoint and SIEM.
  5. Classify the result across prevention, event creation, collection, field quality, rule evaluation, alert enrichment, routing, analyst triage, and containment. Record the first failed layer.
  6. Improve logging or logic, version the change, rerun the identical procedure, compare noise and false-positive considerations, remove the marker, and publish the validated limitation.

Deliverables

Source-to-procedure mapping, ATT&CK layer, test artifact and hash, telemetry contract, raw event references, analytic version, alert/analyst timeline, gap classification, cleanup, and retest evidence.

Do not claim: complete T1059.001 coverage. The result applies to the exact procedure, telemetry configuration, analytic version, endpoint, and test window.

Case 6 — Constrained HexStrike MCP laboratory assessment

AIMCPHexStrikeSandboxHuman approval

Objective: assess a private Metasploitable or deliberately vulnerable Ubuntu lab with an AI client and HexStrike MCP server while proving that targets, tool effects, approvals, evidence, prompt-injection resistance, and teardown remain under deterministic operator control.

  1. Separate the AI client, MCP server, security-tool runner, evidence store, and vulnerable target into constrained systems. Permit only the lab subnet, block unintended egress, mount evidence read-only where possible, and issue no production credentials.
  2. Register read-only discovery tools first with narrow schemas, target types, timeouts, rate limits, structured results, and audit IDs. Test rejection of public and malformed targets before allowing the approved lab address.
  3. Ask the model to propose a plan tied to the objective. Require each step to cite the scope record and explain evidence, side effects, and stop criteria. Approve one normalized call at a time.
  4. Preserve the model/provider/version, policy version, prompt context reference, proposed call, operator decision, tool/server version, normalized arguments, raw output hash, parser output, and evidence record.
  5. Insert untrusted text into a laboratory service banner or document that attempts to redirect the assistant. Verify that the content is treated as data, the tool layer rejects an out-of-scope target, and no secret or unauthorized call is produced.
  6. Enable one active validation tool behind fresh approval only after discovery succeeds. Use minimum proof against the lab, record changes, stop at the pre-agreed marker, and independently verify the model’s interpretation.
  7. Terminate sessions, remove artifacts, destroy disposable containers/VMs, revoke credentials, verify the target, archive approved evidence, and compare actual tool calls with the approval ledger.

Deliverables

Trust/data-flow diagram, tool-effect registry, target policy, response schema, approval and invocation ledger, prompt-injection test, raw evidence, finding review, cleanup attestation, and residual limitations.

Do not claim: autonomous security validation. The accepted result is the human-reviewed deterministic tool evidence; model suggestions and summaries remain attributed analytical leads.

Field references, templates, and learning curriculum

Reusable operator material

Use these references to make each assessment reviewable. Adapt them to the organization’s legal, privacy, safety, engineering, and evidence requirements; a template is not authorization.

Laboratory acceptance criteria — what “completed” means

A screenshot, tool output, or successful action does not complete a lab. Completion requires that the learner can explain the mechanism, reproduce the result, identify uncertainty, show defensive evidence, return the environment to its baseline, and communicate the decision. Use the criteria below as a peer-review rubric; retain a “not demonstrated” state rather than awarding credit from a plausible narrative.

LabTechnical passEvidence passDefensive and closure pass
1. Scope and evidenceAssessment type, objective, starting point, targets, action classes, exclusions, proof, and stop criteria are internally consistent.Every planned action has an ID, authority reference, expected artifact, handling class, and owner.Pause/resume, emergency contact, cleanup, retention, and review are exercised in a tabletop.
2. Network baselineThe learner distinguishes reachability, transport, protocol, service, product, and version and reconciles the stale record.Raw output, vantage point, route, rate, DNS/TLS/protocol context, confidence, and alternatives are preserved.Expected network/server telemetry is found; no unapproved address or shared host enters scope.
3. Web authorizationA server-side policy failure or correct denial is demonstrated with one controlled variable and synthetic objects.Role/tenant/object matrix, paired requests, response and persistent state, audit event, and root cause are linked.Regression test passes after remediation; test users, sessions, objects, and messages are removed.
4. Finding validationOne lead is confirmed, one rejected, and one left unresolved for defensible reasons.Asset/component/version, primary sources, preconditions, safe proof, controls, impact, confidence, and disposition are explicit.Owner action and retest exist; temporary scanner credentials and proof artifacts are revoked or deleted.
5. Host privilegeThe principal–object–right–trigger–consumer path is proven with a reversible synthetic marker.Starting identity/state, exact configuration, transition, target state, process and authorization evidence are preserved.Endpoint/OS events are correlated; services, tasks, files, groups, sessions, and secrets return to baseline.
6. AD identity graphEach graph edge is current and effective; one root relationship is validated without broad credential collection.Immutable IDs, ACL or delegation source, groups, protocol condition, proof, alternate paths, and timestamps are recorded.Directory/endpoint/SIEM events are reviewed; the edge is removed and expected-deny retest passes.
7. ADCSThe exact CA/template/enrollment/mapping path is established with synthetic identities and minimum proof.Template settings, rights, request, issued certificate metadata, target action, and limitations are linked.CA and identity telemetry is correlated; certificate revoked, template fixed, sessions closed, path recalculated.
8. Cloud IAMOne effective permission chain is proven against a synthetic object in the correct tenant and region.Immutable IDs, policy chain, API request/response, provider event ID, before/after state, and cost are recorded.Policy is narrowed, deny retest passes, credentials revoked, resources and spend reconciled.
9. KubernetesSubject, namespace, verb, resource, role/binding, token context, and controlled API effect align.RBAC records, request, response, audit event, workload/image, network, node/cloud assumptions, and manifest are preserved.Binding fixed, secret/token rotated, test workloads/images removed, deny retest passes, cluster destroyed.
10. Detection validationThe procedure is source-backed, safe, versioned, reproducible, and relevant to the selected environment.Raw source events, normalized fields, rule version, alert, analyst and response timeline identify the first failed layer.Gap is owned, change versioned, same test passes or limitation remains explicit, artifact cleaned.
11. AI + MCP safetyTarget/effect policy, schemas, approvals, isolation, timeouts, and error behavior work independently of model compliance.Model/policy/tool versions, normalized calls, decisions, raw artifacts, parser results, side effects, and corrections are traceable.Prompt injection and out-of-scope requests fail; credentials, indexes, logs, containers, and target changes are reconciled.
12. CapstoneTwo or three individually validated steps answer one business/control objective without exceeding minimum proof.Complete objective-to-action-to-evidence-to-finding-to-detection chain survives independent peer review.Report drives assigned remediation; comparable retest completes; sponsor accepts residual risk and closure.

Scoring rule: pass a lab only when all three dimensions pass. A technical pass with missing evidence is not reviewable; evidence without a valid procedure is not a security result; and a result without defensive correlation and cleanup is operationally incomplete.

Failure-mode atlas — diagnose the work before repeating the tool

When a result is confusing, do not immediately increase scan intensity or ask an AI assistant for a more confident answer. Classify the failure. Most assessment errors come from authority, identity, attribution, state, vantage point, protocol interpretation, data quality, control behavior, evidence handling, or cleanup—not from a missing payload.

Failure classSymptomsDiagnostic questionsCorrective action
Authority mismatchDiscovered target, provider, action, or data type is absent from the ROE.What exact authority covers the asset and technique? Is a third party involved?Pause, preserve the lead, notify the white team, and obtain written clarification before action.
Attribution errorShared IPs, wildcard names, CDN edges, old DNS, or SaaS hosts appear as company assets.Which authoritative source and owner confirm the relationship now?Label confidence and shared/third-party state; do not scan or import as owned until confirmed.
Vantage-point errorInternal/external, VPN, region, DNS, or source controls produce contradictory reachability.Where did the request originate, resolve, route, terminate, and get filtered?Repeat the same safe test from documented points; compare route, policy, and logs.
Identity-state errorUnexpected access result changes between clients or retries.Which account, tenant, token, session, claims, device, group state, cache, and workflow state applied?Reset to controlled identities and baseline state; change one variable and capture the server decision.
Protocol/fingerprint errorBanner, version, status code, or scanner product label conflicts with manual behavior.Did a proxy answer? Was the request protocol-valid? What source confirms build identity?Validate transport, protocol, service, product, and version separately; lower confidence if unresolved.
Scanner/template errorLarge duplicate sets, generic string matches, stale signatures, or unexplained severity.What exact matcher, request, response, version, and assumption triggered the result?Preserve raw evidence, review detection logic, manually test minimum property, deduplicate by root cause.
Control interferenceProof fails or changes because WAF, EDR, rate limit, proxy, sandbox, or policy intervenes.Was the vulnerable condition absent, or did a control prevent the chosen procedure?Record condition and control separately; use owner-approved evidence or lab validation instead of bypassing blindly.
Telemetry pipeline errorAction succeeded but no alert or expected field appears.Was an event generated, collected, parsed, enriched, evaluated, routed, and retained?Find the first failed lifecycle layer; correct it and rerun the same versioned test.
Time/state driftResults cannot be reproduced; policy, deployment, DNS, image, or identity changed.What build and state were active at each timestamp? Are systems synchronized?Record immutable versions, config, event time and collection time; retest under a controlled baseline.
AI interpretation errorInvented CVE, unsupported ownership, wrong syntax, missing side effect, or confident summary.Which raw source supports each claim? Was retrieved content untrusted? Which model/policy produced it?Reject unsupported claims, verify manually, correct structured records, retain the decision and source evidence.
Evidence-integrity errorOnly screenshots exist, artifacts were edited, context is missing, or hashes/time are unavailable.Can a reviewer reconstruct acquisition, target, tool, state, and chain of custody?Repeat only if safe and necessary; preserve originals, metadata, hashes, access, interpretation, and limitation.
Cleanup/retest errorResidual accounts, resources, sessions, rules, data, images, or inconsistent post-fix results remain.What changed, who owns it, which authoritative state proves removal, and is the retest comparable?Reconcile the change ledger, rotate/revoke, verify baseline, then rerun the original acceptance test.

Module review questions — demonstrate reasoning, not memorization

Use these questions for self-study, peer review, interview preparation, or the final discussion after a lab. A strong answer cites evidence and explains uncertainty. A tool name without a decision model is incomplete.

1. Mission and authorization

  • How do red-team, penetration-test, and vulnerability-assessment success criteria differ for the same target?
  • Which scope ambiguities create the greatest safety risk?
  • What minimum evidence lets a sponsor decide whether an objective was answered?

2. Reconnaissance

  • How do you distinguish a current owned asset from historical or shared infrastructure?
  • Which fields make an asset observation reproducible?
  • When should passive evidence be escalated to active validation?

3. Vulnerability validation

  • Which facts must be proven between scanner lead and confirmed finding?
  • How do affected condition, exploitability, controls, and business impact differ?
  • When is “unresolved” the correct disposition?

4. Web and API

  • How would you model a transaction across subjects, actions, objects, tenants, and states?
  • What paired evidence proves server-side authorization?
  • Why can the UI, status code, or scanner alone misrepresent the result?

5. Cloud and Kubernetes

  • Which immutable identifiers keep evidence in the correct tenant and cluster?
  • How do permission existence, effective access, reachability, and impact differ?
  • What remains after a workload or cluster is deleted?

6. Active Directory and identity

  • What makes a graph edge effective rather than theoretical?
  • How would you validate a certificate, delegation, ACL, or federation edge safely?
  • How do you prove remediation removed alternate paths?

7. Privilege and movement

  • What are the required edges in a host privilege path?
  • Which proofs avoid unnecessary credential collection?
  • How do you separate foothold, privilege, movement, and business impact?

8. Threat-informed emulation

  • What source detail must survive translation into a safe test?
  • Which lifecycle layers are hidden by the phrase “the detection failed”?
  • What exactly can be claimed after one successful atomic test?

9. AI and MCP

  • Which controls must exist outside the prompt?
  • How should tool inputs, partial failures, side effects, and raw artifacts be represented?
  • How do you test indirect prompt injection without giving content authority?

10. Labs and reporting

  • What makes a lab isolated, reproducible, observable, and disposable?
  • How should a finding separate observation, inference, impact, and limitation?
  • What conditions make a retest comparable?

11. Mobile and thick client

  • Which conclusions depend on a modified, rooted, jailbroken, or instrumented client?
  • Where must authorization be enforced when the client is untrusted?
  • How do build signer, update path, local storage, and backend behavior enter the evidence record?

12. Human and physical

  • What special authority and participant protections are required?
  • How can a scenario test the organizational control instead of blaming an employee?
  • Which results must never be published or retained unnecessarily?

13. Operator infrastructure

  • How are operator, tool, target, evidence, and management planes separated?
  • Which identities, artifacts, egress, and approvals need independent logs?
  • What evidence proves infrastructure teardown?

14. Program governance

  • Which metrics show defensive improvement without rewarding unsafe activity?
  • How are findings routed to software, identity, cloud, telemetry, analytic, workflow, or governance owners?
  • What evidence supports a maturity claim?

Technical glossary — precise terms used in this guide

The glossary favors operational definitions. Local policies may use different labels; record the approved definition when it changes the engagement.

Acceptance criterion
A pre-agreed observable condition that determines whether a test, remediation, or retest passes.
Active reconnaissance
Authorized traffic sent to a target to confirm reachability, service, technology, or behavior.
Adversary emulation
A controlled exercise reproducing selected, source-backed adversary procedures to evaluate controls and response.
Artifact
A file, request, event, configuration, transcript, image, or other object produced or collected during work.
Asset attribution
The evidence-based decision that a system, identity, service, or resource belongs to or is operated for an organization.
Attack path
A sequence of effective relationships and actions connecting an assumed starting position to a security consequence.
Authentication
The process of establishing or accepting an identity assertion.
Authorization
The decision that a subject may perform an action on an object under current policy and context.
Blast radius
The set of assets, identities, data, operations, or tenants plausibly affected by a validated condition.
Chain of custody
The documented acquisition, handling, access, transfer, and disposition history of evidence.
Claim ladder
The progression from source lead through observation, corroboration, reproduction, impact evidence, and bounded conclusion.
Cleanup
Removal, revocation, restoration, and authoritative verification of every test-created or modified object and state.
Compensating control
A control that reduces likelihood or impact when the primary weakness remains; it does not erase the underlying condition.
Confidence
The analyst’s assessment of how strongly available evidence supports a conclusion; distinct from severity.
Control plane
The API, policy, identity, and management mechanisms that configure or govern resources and workloads.
Deconfliction
The process for distinguishing exercise activity from real incidents and resolving safety, scope, or operational conflicts.
Detection hypothesis
A testable statement connecting relevant behavior to expected telemetry, analytic logic, and analyst decision.
Disposition
The reviewed state assigned to a lead or finding, such as confirmed, rejected, unresolved, remediated, or accepted risk.
Effective permission
The action actually permitted after inheritance, conditions, resource policy, boundaries, and explicit denies are applied.
Evidence
A preserved artifact or authoritative record that supports or challenges a stated claim under defined conditions.
Exploitability
Whether required preconditions and a viable procedure permit a weakness to produce a security consequence in the environment.
Finding
A reviewed, evidence-backed statement of an affected security property, scope, impact, root cause, and required action.
Human approval
An explicit, attributable decision authorizing a defined action after reviewing target, effect, data, and rollback.
Immutable identifier
A provider, directory, resource, object, or event ID intended to remain stable when display names change.
Impact simulation
A reversible, synthetic action that demonstrates a security consequence without causing the real harmful outcome.
Lead
An observation or source item worth investigating that has not yet met the finding acceptance criteria.
Minimum necessary proof
The least intrusive authorized evidence sufficient to answer the objective and support the decision.
Model Context Protocol (MCP)
A protocol for exposing tools and resources to AI clients; it does not itself grant target authorization or guarantee tool safety.
Observation
A recorded result returned by a system, tool, person, or source under specified conditions.
Passive reconnaissance
Collection from supplied or existing sources without directly probing the target system.
Procedure
The environment-specific implementation of a behavior, including inputs, sequence, target, context, and observable effects.
Provenance
The origin and processing history of data, analysis, model output, evidence, or a claim.
Purple team
A collaborative attack–defense workflow that uses controlled procedures to improve prevention, telemetry, analytics, and response.
Retest
Comparable re-execution of a versioned acceptance test after a change to determine whether the security property now holds.
Rules of engagement (ROE)
The detailed authority, scope, constraints, communications, safety, data, and stop conditions governing a security test.
Scope
The approved assets, identities, providers, people, locations, time, actions, data, and exclusions for the engagement.
Security property
The intended rule being evaluated, such as tenant isolation, least privilege, authenticated access, or event visibility.
Severity
The assessed magnitude of a finding under the chosen technical and business model; distinct from evidence confidence.
Side effect
Any created, modified, transmitted, consumed, charged, logged, or persistent state caused by a test action.
Stop condition
A defined event requiring the operator to halt, preserve state, and notify the authorized authority.
Synthetic marker
Non-sensitive test data or state designed to prove access or effect without touching real protected content.
Telemetry contract
The documented events, fields, sources, timing, collection, retention, and queries expected from a controlled procedure.
Threat-informed
Prioritized or designed using relevant source-backed adversary behavior plus the organization’s environment and decisions.
Tool effect class
A category describing whether a tool reads, scans, authenticates, writes, executes, changes privilege, moves, or transfers data.
Unresolved
A valid disposition indicating that current authorized evidence cannot confirm or reject the lead.
Vantage point
The source network, identity, device, region, resolver, route, or trust position from which an observation was made.
White team
The small authorized group coordinating safety, scope, deconfliction, and sponsor communication during an exercise.

Template 1 — Authorization and rules of engagement

Record sponsor and legal authority; purpose; in-scope and excluded assets, identities, providers, people, and locations; assumed access; permitted and prohibited technique classes; source infrastructure; time window; rate and availability constraints; credential and data rules; third-party approval; white team; communication; real-incident deconfliction; stop, pause, resume, and kill-switch authority; evidence retention; cleanup; public disclosure; signatures and revision history.

Template 2 — Objective and test-case record

Assign an objective ID; business decision; protected process; threat/control hypothesis; assumed starting point; target; prerequisites; authorized procedure; expected security property; expected prevention and telemetry; minimum proof; stop point; potential side effects; rollback; required evidence; reviewer; result; limitations; linked findings; and retest acceptance criteria.

Template 3 — Asset, identity, and scope record

Use a canonical ID; aliases; owner; business service; environment; criticality; hostname, address, cloud/resource, application, tenant, namespace, or directory identifiers; provider; exposure; authentication; technology evidence; identity relationships; source; first/last seen; attribution confidence; scope status; permitted probe class; review owner; and current decision.

Template 4 — Operator action and change ledger

Record action ID; objective; operator; approval; UTC start/end; source; target; identity; tool and version; normalized parameters or request reference; effect class; expected outcome; actual result; raw artifact IDs; target changes; secrets or data touched; defensive correlation; stop decision; cleanup action, owner, status, verifier, and exception.

Template 5 — Evidence record

Record evidence ID; objective/action/finding links; title; observation type; collector; acquisition time and time source; target and identity context; tool/source and version; original location; encrypted storage location; hash; handling classification; redaction; chain of custody; interpretation; confidence; reviewer; retention; deletion date; and publication approval.

Template 6 — Finding record

Record finding ID and title; affected asset, build, component, identity, tenant, and version; violated security property; root cause; preconditions; authorized reproduction; observation and evidence; demonstrated impact; plausible impact clearly separated; control context; likelihood and confidence; severity rationale; limitations; remediation options; detection opportunity; owner; due date; cleanup; and versioned retest procedure.

Template 7 — Detection-validation record

Record source behavior and ATT&CK procedure; environment relevance; hypothesis; test ID/version/hash; target and time; expected data sources and fields; raw event references; collection delay; analytic ID/version/query; alert and enrichment; routing; analyst decision; containment; result by lifecycle layer; gap classification; change owner; false-positive review; acceptance criteria; and retest.

Template 8 — Cleanup, retest, and closure record

Inventory created or modified accounts, credentials, certificates, files, tasks, services, payloads, sessions, routes, rules, domains, cloud resources, storage, images, packages, test data, AI indexes, prompts, logs, and evidence copies. For each, record owner, expected state, cleanup action, authoritative verification, exception, retention decision, second reviewer, retest result, residual risk, sponsor acceptance, and closure timestamp.