Skip to content
ADscan Docs

🔑 license

Activate the ADscan PRO licence once, install PRO with it, see when your contract ends and what each kind of licence sends, and use it from a machine with no route to ADscan.

adscan license manages the ADscan PRO licence on one machine. You activate it once with the activation key from your onboarding email. After that every launch verifies the licence stored on the machine, so a run works even when ADscan cannot be reached. There is nothing to renew by hand. Every launch also checks in with the licence server, --offline and telemetry off included, and picks up any change to your licence on its own.

Required from ADscan 15.0.0

From 15.0.0 PRO starts no new assessment until the machine is activated. On a machine that already runs ADscan, upgrade the launcher and run adscan license activate once. On a new machine, adscan install --license-file key.txt activates and installs PRO in one command. Your workspaces and reports carry over unchanged, and there is no partner tag to type any more. The licence carries your identity.

The free LITE CLI is free and source-available under the Business Source License 1.1. It needs no licence. adscan license is only for PRO.

Without a licence

On a machine that has not activated, adscan start, adscan ci, adscan execute and adscan recheck stop before they touch the network and print this.

shell
No ADscan PRO licence is active on this machine, so new assessments cannot start. Run `adscan license activate` once, with the activation key from your ADscan onboarding email. No key? Write to hello@adscanpro.com. Your workspaces and reports are untouched, and `adscan deliver` still renders a report from any of them.

adscan ci exits with status 78, so a pipeline reads the refusal as a failure. adscan deliver never needs a licence, so a report you already ran can be rendered again at any time.

Activate

bash
adscan license activate                       # prompts for the key (input is hidden)
adscan license activate --key-file key.txt    # read the key from a file
cat key.txt | adscan license activate --key-stdin

In an unattended run the key can also come from the ADSCAN_ACTIVATION_KEY environment variable. --seat-label NAME gives the seat a name your account can recognise. No hostname is sent, and the name is sent as you type it, so keep your client's name out of it.

Once the machine is activated, activate offers to download ADscan PRO, about 5.1 GB. Pass --yes to download without the question, or --no-pull to activate only and download later with adscan update. The download comes from ADscan's registry and the licence authorises it, so no GitHub account and no docker login are involved.

Install PRO with the licence

On a machine that has the launcher and nothing else, one command does both steps.

bash
adscan install --license-file key.txt        # activate this machine, then download PRO
cat key.txt | adscan install --license-stdin

--license KEY is accepted too, but the key then stays in your shell history. --seat-label NAME works as it does on activate. A host with no route to the registry adds --image-archive adscan-pro-15.0.0.tar.zst to load PRO from a signed archive we send you. Getting started with PRO walks through it, including the move from an earlier setup.

Remove ADSCAN_DOCKER_IMAGE

Earlier PRO setups exported ADSCAN_DOCKER_IMAGE to point the launcher at the PRO image. That variable, like --image, always wins over the licence. Left in a shell profile or a pipeline, it keeps the launcher on the image it names and PRO is never selected from ADscan's registry. Remove it.

Choose the edition

The licence decides which edition runs. A machine with an active PRO licence runs PRO, any other machine runs LITE, and adscan --version says which and why.

bash
adscan start --lite              # run LITE for this command
adscan config edition lite       # run LITE on this machine every time
adscan config edition auto       # let the licence decide again
adscan config edition            # show which edition runs and why

If the licence ends or is revoked, the machine runs LITE and says so in one line. adscan license deactivate releases the seat, and the machine runs LITE from then on. Your workspaces stay available either way.

See your licence

bash
adscan license status          # same as adscan license show
adscan license status --json   # the same for scripts (versioned, see below)
adscan license check           # find what blocks the connection to the licence server
adscan license deactivate      # release this machine's seat and remove its licence

status shows the edition, the holder, the seats, when your contract ends (or that it has no end date) and the last time this machine refreshed its licence. The start banner shows the same contract line under the PRO badge.

Reminders start 30 days before the contract ends. You get a short note once a day, then a warning on every start from 7 days, and a prominent one from 3 days and on the last day. To extend a contract, contact ADscan. Nothing on the machine has to change, because the next online launch picks up the new date. After the end date a grace period of 14 days (none on the trial) lets you finish work in progress, and the reminder says when new scans stop.

status --json carries schema_version and keeps two dates apart. contract_ends_on is your contract (null when it has no end date). document_valid_until is how long this machine can keep working without reaching ADscan, which the machine extends on its own whenever it is online. renews_automatically, last_refreshed_at and contract_days_remaining complete the picture. When the licence server was not reached, a domain is waiting to be registered or the contract end is near, it also carries a licence_notice block with both offline dates, described in Licence server connection.

What a launch sends

Each PRO launch checks in with the licence server before the scan starts, and each Active Directory domain you assess is registered with it. This holds for every PRO licence, the free trial included. It is part of the licence, so it is sent with telemetry off and with --offline. --offline, --no-telemetry, ADSCAN_TELEMETRY=0 and set telemetry off (with or without global) all turn off telemetry. None of them turns off the licence check or domain registration. The only ways to keep it off a client network are the file relay, from a machine with no route out, and an offline engagement licence. The full list of fields, with an example request and text for rules of engagement, is on What PRO sends.

  • A check-in carries the installation id and its public key, the licence id, a request id, a sequence number, the time and the ADscan version.
  • A domain registration adds a one-way code for the forest, computed on your machine with a key from your licence, and a size bracket for its number of accounts. The registration sends the bracket as pending, and a band report sends the real bracket when the scan ends. The domain's name never travels.
  • From 15.1.0, paid PRO and partner send a usage notice (an engagement report with count_point set to collection) per forest and run at the first successful directory read. For paid PRO and partner, the server groups notices by the forest's retest window, and later runs inside it belong to the same assessment. On paid PRO and partner, a run that fails or stops before that read sends no usage notice and counts for nothing. The trial still counts at registration. From 15.1.0, a trial registration of a forest reached through a trust read from a domain controller, from a forest this licence registered, may carry trust_origin_code, and the server decides. See /pro/what-pro-sends.

What follows the end of a scan depends on the kind of licence. adscan license status names the kind this machine holds.

LicenceSent when a scan endsWith --offline
TrialIn 15.0.0, the size bracket of each forest, and the counts stay in the register on your machine. From 15.1.0, also the run report with the counts.Still sent
PRO, for one consultant or a firmThe size bracket of each forest. The counts stay in the register on your machine.Still sent
PartnerThe size bracket, the run identifier, how the run ended and, for each domain of the forest, its size as counts.Still sent, counts included
Offline engagementNothing. The counts are in the usage file you send us by hand.Nothing is sent either way

On a partner licence the counts are how the partner's usage figures and ours come to be the same figures. For each domain the run assessed they are the number of user accounts (total and enabled), computers (total and enabled, split into servers and workstations, and enabled computers by the privilege tier their membership or role gives them), computers that resolved and that answered, domain controllers and certificate authorities. A run with an engagement scope for hosts and accounts adds three counts of enabled computers, which are the ones the scope keeps in, the ones it leaves out and the ones ADscan could not confirm as inside it. Each is a whole number, or empty when the run did not count it. The report goes out once the forest is registered, waits on the machine if the licence server cannot be reached, and can travel through the relay file.

No request, on any kind of licence, carries scan data, a domain name, a host, an address, a directory path, a security identifier, a user, a credential or a finding. The check-in waits two seconds at most and registering a new domain up to five, so an unreachable server never stops a scan. What could not be sent waits in a local queue, and every later launch that reaches ADscan sends it.

A new end date, a new seat count or a revocation applies at the next launch that reaches ADscan.

When ADscan cannot be reached

The first launch that cannot reach the licence server says so, with the last day new assessments can start on this machine, each domain still waiting to be registered and the last day it can be assessed, and what to do. Every launch repeats it until one gets through, and it never blocks a scan or changes the exit code. adscan license check finds what blocks the connection and sends what is waiting once it works. Licence server connection covers each cause and its fix.

  • A domain is never refused on its first scan.
  • Each new domain then has its own grace period, counted from its own first scan: 7 days on every licence unless your agreement sets another figure. A domain is refused only if no launch reached ADscan during that whole period, and the message names adscan license sync and the relay commands below.
  • A registered domain never needs the server again.
  • The licence document lets the machine run without any contact for 14 days on the trial, 90 days on a paid licence, and the figure in the agreement for a partner.

adscan license renew and adscan license sync remain for a machine that cannot reach ADscan on its own launches. adscan license check does both after testing the route.

A refusal is the only time the licence changes a run's exit code. adscan ci then exits with 78 and writes license_refusal.json beside the run with the reason. A notice about the connection never does.

A machine with no route to ADscan

Activation and refresh can go through a file. This is for an engine in a segmented or air-gapped network, and for a platform that runs ADscan on behalf of its users. With an online licence, each start still tries the licence server for two seconds at most and connects if the network lets it through, so the relay keeps the licence check off a client network only where the machine has no route out.

Write the activation request to a file without connecting.

bash
adscan license activate --relay-out request.json

Write every queued request to one file.

bash
adscan license relay export --out requests.json

Load the answers.

bash
adscan license relay import --in answers.json

Your platform posts the request file unchanged to the licence server's /v1/relay endpoint and saves the answer. The engine accepts only answers signed by ADscan. A file that holds an activation request contains the activation key, so treat it as a secret.

Offline engagement licences

When nothing at all may leave a client network, ask us for an offline licence for that engagement. It is the only licence that never contacts ADscan, and it installs from a file without any connection.

bash
adscan license install engagement-licence.json

The engagement licence closes the licence channel only. Telemetry follows its own setting, so add --offline or ADSCAN_TELEMETRY=0. At the end of the engagement, adscan license register export --out usage.json writes the usage file to send us. It holds the installation and licence identifiers, one line per assessment with the domain code, date, run id, run kind, size bracket, how the run ended and the counts of each domain it assessed, and the engagements they add up to. It never holds a domain name.

The register of domain codes

bash
adscan license register export --format csv --rows engagements

The register is the local record of the domains this machine has assessed, for reconciliation with your account. --rows chooses one row per domain code, per billable engagement or per assessment. From 15.0.0 each assessment line also says how the run ended (run_status) and carries the size of each domain as counts (domain_sizes), on every kind of licence. With an engagement scope for hosts and accounts, computers_in_asset_scope, computers_excluded_by_asset_scope and computers_asset_scope_unconfirmed are filled in, and without one they are null. Only a partner licence sends those counts to ADscan. On the others they stay in this file.

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