Skip to content
ADscan Docs
ADscan PRO

Generate a Compliance Report

Two paths to a MITRE-mapped PDF and JSON — the interactive REPL, or adscan ci for unattended runs.

Two paths to a report

ADscan PRO supports two flows. Pick the one that fits how you work.

FlowCommandWhen
Interactive REPLadscan start → scan → deliverAny engagement you are present for. Full visibility per phase, same flow as LITE.
Unattendedadscan ci auth ...Pipelines, scheduled runs, and batching engagements whose shape you already know.

Both drive the same engine. The difference is who answers the questions: you, or the documented defaults. Full flag reference on the adscan ci page.

Scan policy: Audit vs Lab / CTF

The scan policy decides what a run does. For compliance reports, always run under a policy for a real environment (--policy audit or --policy production_sensitive in CI, or the Audit policy when the shell asks). See Scan policies.

PolicyWhat it doesUse for
auditFull assessment: attack steps that roll back on their own, vulnerability checks, directory hygiene, complete attack pathsClient engagements, compliance reports
production_sensitiveSame full assessment, but sends no password guess and runs nothing that changes the directoryProduction networks
lab_ctfStops after domain compromise (pwned)CTF labs (HackTheBox, TryHackMe)

A Lab / CTF run exits early by design. A policy for a real environment runs the full assessment and produces the finding set the report engine needs. Under Lab / CTF your report will be sparse.

This is the same REPL you already know from LITE. On a machine with an active PRO licence the launcher runs PRO, which adds the report engine.

bash
adscan start

The banner shows the PRO tier. From the prompt, the REPL guides each phase:

shell
recon → kerberos → ACL → attack-path collection → exploitation

When the scan is complete, package the kit with one command:

shell
deliver --client "Client Name"

That produces three PDFs — the Security Assessment Report, the AD Hardening Playbook and the AD Control Coverage Report — plus the MITRE ATT&CK Navigator bundle, all under ~/.adscan/workspaces/<workspace>/deliverables/. See adscan deliver for what each document carries.

Framework selection is prompted at report time in an interactive terminal, or set with --frameworks.

Unattended flow

adscan ci runs the same pipeline with every prompt pre-answered. It is what the Enterprise appliance's worker and the ADscan platform use to launch scans.

Run the shape interactively once first

Before wiring a new target shape into a pipeline, run it through adscan start once. A surprise is much cheaper to handle with the REPL in front of you than in a log you read afterwards.

adscan ci never prompts, so activate the PRO licence on the machine before the first unattended run, with adscan license activate --key-file <file> or the ADSCAN_ACTIVATION_KEY variable. Every later run uses the stored licence. See adscan license for the detail.

It requires a positional mode argument — auth or unauth. Each has different required flags.

Auth mode (you have credentials — standard for compliance engagements):

bash
adscan ci auth \
  --policy audit \
  --interface eth0 \
  --domain <domain.local> \
  --dc-ip <dc_ip> \
  --username <user> \
  --password '<pass>' \
  --generate-report \
  --frameworks iso27001 \
  --client "Client Name" \
  --theme editorial

Unauth mode (no credentials — documents unauthenticated exposure):

bash
adscan ci unauth \
  --policy audit \
  --interface eth0 \
  --hosts 10.10.10.0/24 \
  --generate-report \
  --frameworks iso27001

In unauth mode you can pass --dc-ip instead of --hosts to skip host discovery and target a known DC directly.

ADscan will:

  1. Enumerate the AD environment (DNS, LDAP, SMB, Kerberos, ADCS)
  2. Generate the attack graph and exploit all available paths
  3. Produce a PDF + JSON report mapped to the requested framework
  4. Write outputs to ~/.adscan/workspaces/<workspace>/

Required flags summary (CI mode)

Auth mode requires: --policy, --domain, --dc-ip, --username, --password

Unauth mode requires: --policy, and either --hosts or --dc-ip

--interface is optional. Without it, broadcast poisoning is skipped with a warning and the scan continues. See adscan ci.

All flags reference

Scan flags

FlagModeRequiredDescription
auth / unauthbothPositionalScan mode
--policybothYesaudit or production_sensitive for compliance engagements, lab_ctf for labs, or a saved policy
--interface, -ibothNoNetwork interface (e.g. eth0, tun0). Needed only for broadcast poisoning
--domainauthYesDomain to scan (e.g. corp.example.com)
--dc-ipauthYesPrimary DC IP
--username, -uauthYesUsername
--password, -pauthYesPassword
--hostsunauthOne of the twoCIDR range — required unless --dc-ip is passed
--dc-ipunauthOne of the twoKnown DC IP — alternative to --hosts
--workspace, -wboth—Workspace name (ci-<domain>-<YYYYMMDD-HHMM> if omitted). The workspace is kept after the run
--ephemeralboth—Delete the workspace this run created when it ends. With --generate-report it needs --output
--output DIRboth—Copy the generated report (PDF and HTML) into this folder on your machine

Report flags

FlagDefaultDescription
--generate-reportoffEnable report generation after the scan
--frameworksnoneOne or more of ens, nis2, iso27001, dora, pci_dss, cis, or none when the organisation follows none of them. Nothing is selected unless you ask
--clientworkspace nameClient name shown on the report cover page. --display-name from earlier releases still works and prints a deprecation line
--themecorporate_lightcorporate_light or editorial. --report-theme is still accepted as the earlier name
--report-templatepremiumCurrently only premium
--report-enginechromiumPDF rendering engine

Framework examples

bash
adscan ci auth \
  --policy audit \
  --interface eth0 \
  --domain corp.example.com \
  --dc-ip 10.10.10.10 \
  --username auditor \
  --password 'P@ssw0rd!' \
  --generate-report \
  --frameworks iso27001 \
  --theme corporate_light \
  --client "Acme Corp"

Produces an ISO/IEC 27001:2022 compliance section mapping each AD finding to the relevant Annex A control.

bash
adscan ci auth \
  --policy audit \
  --interface eth0 \
  --domain corp.example.com \
  --dc-ip 10.10.10.10 \
  --username auditor \
  --password 'P@ssw0rd!' \
  --generate-report \
  --frameworks ens \
  --client "Empresa S.A."

Produces an ENS (CCN-CERT) compliance section, for Spanish public-sector regulated environments. The measures it holds the system to follow from the scope the client declares, so selecting it asks for the compliance profile and the five security dimension levels; see the ENS scope section.

bash
adscan ci auth \
  --policy audit \
  --interface eth0 \
  --domain corp.example.com \
  --dc-ip 10.10.10.10 \
  --username auditor \
  --password 'P@ssw0rd!' \
  --generate-report \
  --frameworks nis2 \
  --client "Operador Crítico S.A."

Produces a NIS2 (EU Directive 2022/2555) compliance section — for critical-infrastructure operators. NIS2 and ENS are distinct frameworks; request --frameworks ens,nis2 for both.

bash
adscan ci auth \
  --policy audit \
  --interface eth0 \
  --domain bank.internal \
  --dc-ip 192.168.1.5 \
  --username auditor \
  --password 'P@ssw0rd!' \
  --generate-report \
  --frameworks dora \
  --theme corporate_light \
  --client "Financial Entity"

Produces a DORA EU 2022/2554 compliance section — designed for financial entities under EU Digital Operational Resilience Act requirements.

bash
adscan ci auth \
  --policy audit \
  --interface eth0 \
  --domain corp.example.com \
  --dc-ip 10.10.10.10 \
  --username auditor \
  --password 'P@ssw0rd!' \
  --generate-report \
  --frameworks iso27001,dora \
  --client "Client Name"

Multiple frameworks produce a single PDF with separate compliance sections. One scan, one report, multiple frameworks.

Generate report from the interactive shell

The same flow you know from LITE: the REPL walks every phase, and deliver packages the three PDFs plus the ATT&CK Navigator bundle at the end.

bash
adscan start

Inside the shell, run under a policy for a real environment, for example Audit.

shell
policy use Audit

Then run your scan as usual. Once the scan completes, generate the report:

shell
generate_report

ADscan will guide you through two interactive prompts:

1. Framework selection (checkbox — select one or more):

shell
❯ ◉ ENS — Spain / CCN-CERT (recommended)
  ◯ NIS2 — EU Directive (EU) 2022/2555 (critical infrastructure)
  ◯ ISO 27001:2022 — International ISMS standard
  ◯ DORA — EU 2022/2554 (financial sector)
  ◯ PCI DSS v4.0.1 — Payment Card Industry

2. Theme selection:

shell
❯ Editorial — warm bone, ember accent (premium, McKinsey-grade)
  Corporate — white/navy, print-safe (Big-4 / auditor)

corporate_light is the default when nothing is picked.

You can also pass arguments directly to skip the prompts:

shell
generate_report full iso27001
generate_report technical ens,iso27001
generate_report executive dora

The profiles (full, technical, executive) control which report sections are included. full is the default and recommended for most engagements.

Regenerate the deliverable kit from an existing workspace

If the scan already ran (or you want to regenerate the PDFs without re-scanning), use adscan deliver:

bash
adscan deliver --workspace <workspace_name>

To regenerate just the Security Assessment Report:

bash
adscan deliver --workspace <workspace_name> --only report

The workspace is kept, so you can re-render

adscan ci keeps its workspace when the run ends, so adscan deliver can re-render the kit later without re-scanning. The workspace holds the credentials the scan collected, so once the report is handed over, delete it from the ADscan shell with workspace delete <name>. To have the run delete it for you, pass --ephemeral --output <folder>, which copies the report out first.

Where are the outputs?

Everything lands in the workspace, not the working directory:

shell
~/.adscan/workspaces/<workspace>/
├── technical_report.json          structured data for your pipeline
└── deliverables/
    ├── <stamp>-adscan-kit.zip         the kit, ready to send
    ├── <stamp>-manifest.json          that kit's own index, kept for good
    ├── manifest.json                  pointer to the latest kit
    └── staging/run-<stamp>/           the rendered PDFs and Navigator files

From the shell, deliver also offers to save a copy in your deliverables folder and open it from there. See Save a copy to another folder.

Under GitHub Actions (GITHUB_ACTIONS=true) the report is additionally copied into ./artifacts/ so a workflow can upload it without knowing the workspace path. Nothing is copied there on a normal run.

The scan output names the workspace. To list them from inside the shell:

shell
workspace list

Timing

Environment sizeTypical scan time
< 500 users, 1 domain15–25 min
500–2000 users, 1–2 domains25–45 min
2000+ users, multi-domain45–90 min

Report generation adds ~2–5 minutes after the scan completes.

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