Skip to content
ADscan Docs

🧠 Attack Paths & Steps

Find, review, and execute AD attack paths discovered by ADscan.

ADscan models escalation opportunities as:

  • Attack steps: individual relationships and techniques ADscan has detected (e.g., “Kerberoasting”, “WriteDacl”, “ADCS ESC1”).
  • Attack paths: ordered chains of steps that connect an entry point (a user/group you can act as) to a high‑value target (Domain Admin, Domain, Tier‑0 assets, etc.).

This gives you a practical workflow: collect evidence → compute paths → execute the best path(s) with operator control.

Authorization Required

Only enumerate or execute attack paths in environments where you have explicit written authorization and a defined scope.

When to use these commands

Use attack_steps / attack_paths after:

  • start_auth (recommended): ADscan has broad visibility and will typically discover more steps.
  • You add/verify new credentials: newly “owned” users can unlock additional paths.
  • You want to review and execute paths later (without rerunning a full scan).

attack_steps

Show the most relevant steps currently recorded for a domain.

Syntax:

bash
attack_steps <domain> [user] [--max N]

Examples:

bash
# Steps for the whole domain context
attack_steps corp.local

# Steps that are relevant from a specific user (if supported by your build)
attack_steps corp.local jdoe

# Limit the output
attack_steps corp.local --max 50

graph_stats

Show a pre-flight summary of a domain's attack graph before you run discovery: the node and edge scale, the control hubs with the heaviest fan-out (what drives the density), whether path discovery will run in sampled mode on a large, dense directory, and how many principals hold a validated path to a Tier‑0 target. It reads the already-computed graph and does not compute attack paths, so it returns instantly even on a large domain. The same summary prints automatically before an attack_paths run.

Syntax:

bash
graph_stats <domain>

Examples:

bash
graph_stats corp.local

The AD tier model

Every asset and principal ADscan reports carries a tier. The tiers come from Microsoft's AD DS tier model, the on-premises component of the Enterprise Access Model, and they are current, not the deprecated legacy tiering some tools still reference. Reading a tier label the same way ADscan assigns it lets you trust the severity attached to a finding.

The three tiers:

  • Tier 0 — the identity control plane. Domain controllers, the AD CS certification authorities, and the accounts and groups that control the directory itself. Compromise here is compromise of the forest.
  • Tier 1 — server and application administration. Member servers such as SQL, Exchange, and SharePoint, and the accounts that administer them.
  • Tier 2 — standard users. Everyday user accounts and their workstations.

How ADscan assigns each tier

Tier 0 is derived deterministically. ADscan reads control-plane group membership directly from the directory, so Tier 0 is a computed containment boundary rather than a guess: anything that can administer identity is Tier 0, and the classification is high-confidence. This is the canonical, unambiguous case.

Tier 1 is a heuristic, and ADscan says so. There is no canonical attribute or group in Active Directory that marks a server or account as Tier 1. This is true for every tool, including BloodHound Enterprise, which leaves the higher-tier rules to customer definition. ADscan infers Tier 1 from what it can observe:

  • A member server that is not a domain controller or another Tier-0 asset is a Tier-1 candidate.
  • Application-class service SPNs (SQL, Exchange) strengthen the classification.
  • Two exclusions keep it honest. An interactive-logon server where ordinary users sign on (RDS, Citrix, a terminal server) is treated as Tier 2, not Tier 1, because its population is standard users. A server that controls a Tier-0 asset (a jump server to a domain controller, a hypervisor hosting Tier-0 virtual machines) is treated as Tier 0, because owning it owns the control plane.

The Tier-1 label is low-confidence and customer-overridable, and the report marks it that way. A client-editable tier override in the web platform is on the roadmap: ADscan auto-classifies, the client corrects.

Principals inherit the tier they administer

A principal's tier follows what it is granted, not what it can merely touch. An account with full local administrator rights over a Tier-1 server, or database sysadmin over one, is itself Tier 1. This is the model's own rule: member servers and the identities that manage them sit together. Session or RDP access does not promote a principal, because that is reach across an attack path, not an administrative grant. The tier records what an account controls; the attack path records what it can get to.

Why Tier 2 covers every standard user

Microsoft's model is an administration framework. ADscan's is an exposure framework: it measures where an intrusion begins and what it can reach from there. So ADscan places every standard user account in Tier 2, the attack-path convention, rather than splitting them further. Same boundary as Microsoft's model, read from the attacker's side of it.

Tier-0 access exposure

The Tier-0 Access Exposure step runs during authenticated enumeration and answers a question separate from "who is Domain Admin": which standard, non-privileged accounts can already reach a Tier-0 asset, and by what means. A Tier-2 user who holds local admin on a domain controller, or a database sysadmin login on the CA host, is a short step from full compromise even though they hold no privileged group membership.

How access is graded

Not every path onto a Tier-0 asset is equal, so ADscan grades each one on two independent axes.

Access strength — what the account can do once it lands, strongest first:

  • Full local administrator — code execution as SYSTEM, credential material off the host.
  • Interactive or remote session (RDP, PowerShell Remoting, DCOM) — a session at the privilege you land with.
  • Database sysadmin — full control of the SQL instance, and host code execution through it.
  • Database session — a login to the instance, usually without host code execution.

Target directness — how close the asset itself sits to domain compromise:

  • Tier-0 direct — a domain controller or the domain object. Access here is one move from owning the forest.
  • Tier-0 escalation-capable — an AD CS certification authority, an Exchange server. Owning it leads to the domain through a known technique rather than immediately.

A full-admin path to a domain controller reads as the most severe of these; a database session onto a CA host, the least. The two axes are reported separately so you can see both the reach and its potency.

Concentration and least privilege

ADscan also reports the concentration: what share of the domain's enabled accounts hold Tier-0 access of each kind. A single low-privilege account with a session on a domain controller is a finding on its own. A large fraction of the domain holding that same access is a structural one, because it widens the blast radius of any single credential compromise: phish one of those accounts and the attacker is already on the control plane.

The framing for the reader is least privilege. These are accounts that, in most directories, do not need standing access to a Tier-0 asset. The finding rises in severity when it crosses a threshold, for example any full-admin path to a domain controller, or a high percentage of the domain holding session access to one. Remediation is to remove the access that is not justified and to bring the rest under just-in-time control, shrinking the set of credentials whose loss reaches the control plane.

This surfaces in the exposure report as a finding with its own severity and remediation, and each affected account is listed by name so you can act on it.

attack_paths

Find attack paths from an entry point to high‑value targets.

Syntax:

bash
attack_paths <domain> [user|owned] [index] [--max N] [--depth N] [--all] [--keep-longest]

Entry point selection

  • attack_paths <domain>: show paths from the default entry (domain context).
  • attack_paths <domain> <user>: show paths starting from a specific user.
  • attack_paths <domain> owned: show paths starting from all “owned” users (users with a verified credential saved in the workspace).

Filtering behavior

By default, attack_paths focuses on high‑value targets. If you want to see everything (including lower‑impact paths), add --all.

--keep-longest (domain scope only)

When you run attack_paths <domain> without an entry user (domain context), the listing shows, by default, the most direct route to domain compromise — the shortest chain that reaches each high‑value target. This keeps the signal focused on the quickest way in.

Add --keep-longest to switch to the full holistic kill chain instead: every step from the initial foothold through to domain compromise is preserved, including the longer acquisition prefixes that the default view collapses. Use it for a complete, whole‑domain exposure view.

This flag has no effect when an entry user or owned is specified — those scopes always show their own chains.

Examples

bash
# Most common: find paths from owned users
attack_paths corp.local owned

# Find paths from a specific user
attack_paths corp.local jdoe

# Increase depth if you want longer chains
attack_paths corp.local owned --depth 5

# Include non-high-value targets as well
attack_paths corp.local owned --all

# Domain context: show the full holistic kill chain instead of the most direct route
attack_paths corp.local --keep-longest

# View details directly (index comes from the list output)
attack_paths corp.local owned 1

Execution behavior (important)

When you select a path, ADscan:

  1. Shows the path details (From → Relation → To).
  2. Checks whether each step has a supported implementation.
  3. Prompts before actions that are noisy or high‑impact.
  4. Asks how to run it. Run continuously executes every step in sequence. Step through asks before each step, so you can stop after any one. Do not execute now returns to the list.

If a step is not implemented (or not supported for the specific target type), ADscan will warn you and let you pick another path.

What you see while a path runs

The run opens with its plan. Group-membership steps are listed for orientation and marked as context, because nothing is executed for them. Each executable step then shows when it starts and when it settles, with the technique and its MITRE ATT&CK ID.

A step that does not complete shows two layers. The first is the cause in plain words, such as a domain controller that does not accept certificate sign-in. The second is the technical code it came from (KDC_ERR_PADATA_TYPE_NOSUPP in that case), with a suggested next step. ADscan reports what the environment answered and never attributes a stopped step to a security product it cannot observe.

The run ends on a result that names how many steps succeeded, the step that stopped the path and why, and every change made in the environment with its cleanup status. In the Enterprise platform the same run is shown live beside the attack graph, with the running step highlighted on both, and the result stays open until you close it.

Unattended runs (adscan ci) always run continuously. To make step through the default in an interactive session, set ADSCAN_ATTACK_PATH_EXECUTION_MODE=step.

bash
workspace create client_acme_2026
set iface tun0
set auto False

start_auth

# Review and execute paths from owned users
attack_paths corp.local owned

Tip

If you are in auto=False, treat attack_paths as your decision point: review the chain, validate it makes sense for the rules of engagement, then execute only what you intend.

Didactic mode — learn each technique as it runs

Before ADscan executes a technique it can explain it, so a scan on a lab or an HTB box teaches Active Directory pentesting instead of only performing it. The explanation appears right before the execute prompt.

There are three levels:

  • deep — a full teaching card per technique: what the attack is and why it works, the equivalent command to run it by hand with the standard tool (nxc / certipy / impacket / bloodyAD), its MITRE ATT&CK id, and the Windows Event IDs that detect it. This is the default in a workspace under a lab policy such as Lab / CTF.
  • basic — a one-line "what it does and why" before each technique. Default in a workspace under a policy for a real environment, such as Audit.
  • off — no explanation, for operators who want the raw flow.

Change the level at any time:

bash
set explain_level deep     # full cards
set explain_level basic    # one-liner
set explain_level off      # silent

explain — look up a technique on demand

explain <technique> prints the full teaching card for any technique without running anything. Useful when you meet an attack you do not know, or to read the by-hand command before executing.

bash
# Show the full card for one technique
explain kerberoasting
explain dcsync
explain "ADCS ESC1"

# List every technique ADscan can explain
explain
Find this useful?
Pass it to the next pentester running an AD engagement
Running 2+ AD engagements/year?
First PRO assessment free·Free in exchange for feedback
Automated PDF reports. Save ≥1 day per engagement.

ADscan — AD pentest automation for security consultants