Engagement scope for hosts and accounts
Hold an assessment to the hosts and accounts the client agreed to, with an allow list and a deny list that work the same way in adscan ci, adscan start and the Enterprise platform.
A client rarely signs off on a whole domain with no conditions. One file server is fragile, one database cannot take a failed sign-in at month end, one director's account is off limits. Another client turns it round and authorises a single server subnet and nothing else. From ADscan 15.0.0 you write that agreement down as two lists, and ADscan holds every connection and every attack step to them.
From 15.0.0
Earlier releases scope an engagement by domain only. The lists described here work inside the domains the engagement covers. Which domains those are is still settled by the trust question at the start of a scan, or by the scan policy in an unattended run.
The two lists
| List | What it says |
|---|---|
| Deny list | ADscan never touches these. |
| Allow list | ADscan touches only these. |
You can use either one or both. With both, the allow list sets the area and the deny list takes pieces out of it, such as a subnet minus two hosts. Deny always wins, so an entry that sits on both lists is left alone.
With no list at all, nothing changes. Every host and account of the in-scope domains may be assessed.
What "never touches" means
For a computer, it means no packet from ADscan. No port probe, no SMB session, no sign-in attempt, no coercion, no pivot agent. A connection that arrives from an excluded computer, for example in answer to name poisoning, is closed before any protocol data is read and nothing from it is kept.
For an account or a group, it means ADscan never acts as it and never acts on it. It is left out of password spraying, Kerberos roasting and every password attempt. No attack step runs with it as the actor or as the target, and it is never modified. A credential ADscan recovers for an excluded account is reported as recovered and is neither verified nor used. Excluding a group protects the group object. Its members stay in scope unless you list them, or the organisational unit that holds them.
What ADscan reads from a domain controller about an excluded object stays in the results. The object is still drawn in the attack graph and still named in the report, marked as not assessed. Attack routes that pass through it are mapped and not executed from that point on. The exclusion keeps ADscan's hands off the object. It does not hide the object from the picture.
What you can list
One entry per line in a file, or separated by commas on a flag, in the shell and on the platform. ADscan works out the type from the shape.
| You write | It covers | Example |
|---|---|---|
| An IPv4 or IPv6 address | That address | 192.0.2.10, 2001:db8::10 |
| A network | Every address in it | 198.51.100.0/24 |
| A range | Every address from the first to the last | 192.0.2.10-192.0.2.20, 192.0.2.10-20 |
| A full host name | That computer | fs01.corp.example |
| A DNS suffix | Every host under it | *.ot.corp.example |
| A short host name | That computer, when one computer of the in-scope domains carries the name | fs01 |
| A SID | That directory object, whatever its type | S-1-5-21-1111111111-2222222222-3333333333-1105 |
| A distinguished name | That object. An organisational unit or a container covers everything below it. | OU=OT,DC=corp,DC=example |
| A domain and a name | That user, group or computer | CORP\svc_backup, CORP\FS01$ |
| A user principal name | That user | svc_backup@corp.example |
A few rules keep a list from meaning something you did not intend.
- A bare word is always a host. An account has to be written with its domain (
CORP\svc_backup), as a user principal name, as a SID or as a distinguished name, or carry auser:orgroup:prefix. Soadminin a deny file can never quietly mean an account. - A prefix forces the type when the shape is not enough. The prefixes are
ip:,cidr:,range:,host:,suffix:,sid:,dn:,subtree:,user:,group:andcomputer:. - A short name several computers share is not guessed at. On a deny list every match is excluded and ADscan tells you. On an allow list the entry is refused and the candidates are named, so you can write the full name.
- A list that covers everything is refused.
0.0.0.0/0and::/0are errors on both lists. A network written with bits set after the prefix, such as192.0.2.10/24, is an error too. A very wide network is accepted with a warning that asks you to check it. - A distinguished name must be complete, down to its
DC=parts.
Scope files
A scope file is plain UTF-8 text with one entry per line. A # starts a comment, on its own line or after an entry, and blank lines are ignored. Windows line endings and a byte order mark are accepted. A file holds up to 100,000 entries and 8 MiB, with lines of up to 1,024 characters. A file with no entry in it is an error, so an empty allow file never turns into "no allow list".
# Agreed with the client on 12 November. Do not touch.
fs01.corp.example
192.0.2.40 # month-end database
CORP\svc_backup
OU=OT,DC=corp,DC=exampleNames, addresses or the computer object
All three work. They differ in what happens when the network is less tidy than the list.
The computer object is the safest way to name a computer. Its SID, its distinguished name or CORP\FS01$ points at the object in the directory. The entry follows the computer through a rename and through a change of address, and it covers the computer at every address it has.
A full host name comes next. It covers the computer at the addresses the name service and the directory report for it. A name that does not resolve yet stays "not confirmed" until it does.
An address covers that address and nothing else. On an allow list this matters most. A server with two network interfaces, listed by one address, is contacted at that address only. On a deny list, ADscan also keeps away from every other address it has learned for the same computer, but it cannot know about an interface that neither the name service nor the directory reports.
So list computers by object or by name, and keep addresses and ranges for what they are good at, whole subnets and equipment that is not joined to the directory. ADscan assesses the systems joined to the directory. An address entry that matches no computer of the directory is honoured, and the report says that no computer corresponds to it.
scope verify shows where every entry points and offers to pin name and address entries to the computer object behind them.
Domain controllers
ADscan cannot assess a domain without reading its directory, and the directory lives on the domain controllers. Three rules follow.
A denied domain controller is never contacted, not even for directory reads. The directory is read through the other domain controllers and nothing is checked on the denied one. If every domain controller of the target domain is denied, the run stops before it sends anything, because the domain cannot be read. Naming a denied controller in --dc-ip stops the run the same way.
With a deny list only, domain controllers are ordinary hosts. They are assessed like any other computer unless you deny them.
With an allow list that does not name a domain controller, the controllers are used for directory reads only. This is the default, written directory. A client who scopes an assessment to a server subnet almost never means "and attack my domain controllers too", yet nothing can be assessed without the directory. Under this setting a domain controller that the allow list does not name is contacted for LDAP, Kerberos, DNS, time and reads of the SYSVOL and NETLOGON shares, and for nothing else.
| On a domain controller used for directory reads only | |
|---|---|
| Still done | Reading the directory (users, groups, computers, permissions, Group Policy, certificate templates), Kerberos sign-ins, name resolution, clock checks, and the check for passwords stored in Group Policy files on SYSVOL. |
| Not done | The host sweep (sessions, local groups, registry, services, local credentials), listing or searching any other share, known-vulnerability probes, coercion, credential dumps and directory replication (DCSync). |
A domain controller you put on the allow list is assessed in full, like any listed host. To have every domain controller assessed as a host under an allow list that does not name them, set the access to full. Either way a denied controller stays untouched.
With adscan ci
Five flags carry the scope. Each list flag can be repeated.
| Flag | Effect |
|---|---|
--scope-allow VALUE[,VALUE...] | Allow entries, separated by commas. |
--scope-deny VALUE[,VALUE...] | Deny entries, separated by commas. |
--scope-allow-file PATH | Allow entries from a file. |
--scope-deny-file PATH | Deny entries from a file. |
--scope-dc-access directory or full | How domain controllers that the allow list does not name are treated. The default is directory. |
adscan ci auth --policy audit --domain corp.example --dc-ip 192.0.2.5 \
-u auditor -p 'S3cr3t!' --workspace corp-2026 \
--scope-allow 198.51.100.0/24 \
--scope-deny fs01.corp.example,198.51.100.40 \
--scope-deny-file ./do-not-touch.txtA mistake stops the run before anything is sent. The launcher reads every value and every file before it starts the container. A bad entry ends the run with exit code 2 and one line that names the file, the line and the reason. The files are handed to the scan read-only and nothing is copied out of them.
The scope is recorded in the workspace. A later run on the same workspace applies the recorded scope and says so. Scope flags on a later run replace it as a new revision, recorded with who decided it and when. --scope-dc-access on its own changes the domain controller setting and keeps the lists. A host the current scope excludes is never contacted again, whatever an earlier run collected from it.
Some errors need the directory. A run also stops with exit code 2, before it contacts anything, when the recorded scope cannot be read, when the scope excludes the account the scan was told to sign in with, when every domain controller of the target domain is excluded, or when an allow entry matches several computers.
A scan configuration can carry the scope instead of flags, which is how a platform passes it.
asset_scope:
allow: ["198.51.100.0/24"]
deny: ["fs01.corp.example", "CORP\\svc_backup"]
dc_access: directoryA section that is present replaces the recorded scope, even with both lists empty, and an absent one keeps it. If a run gets both the section and the flags, the flags win and one warning says so.
With adscan start and the scope command
adscan start takes the same five flags. They apply to the workspace you open, after a summary you confirm, before any scan step. A change that narrows the scope is confirmed with Yes as the default. A change that widens what ADscan may touch asks with No as the default.
Inside the shell, the scope command shows and changes the scope at any time.
| Command | What it does |
|---|---|
scope | Show the recorded scope, its revision, who decided it, and every entry with how it resolved. |
scope allow <entry>[,<entry>...] | Add allow entries. |
scope deny <entry>[,<entry>...] | Add deny entries. |
scope allow-file <path>, scope deny-file <path> | Add the entries of a file. |
scope remove <id or value> | Remove entries, by the id the listing shows (a1, d2) or by value. |
scope clear [allow or deny or all] | Empty one list or both. |
scope dc-access directory or full | Change how domain controllers outside the allow list are treated. |
scope check <host or account> | Say whether one target is inside the scope, and which entry decided it. |
scope verify | Show what every entry resolves to, before anything is contacted. |
A change applies from the next action. A sweep that is already running asks the scope again before each host, so a host you deny in the middle of it is not contacted.
Check one target
scope check answers the question you get asked on the phone, "will it touch this one?".
(ADscan:corp-2026) > scope check fs01.corp.example
fs01.corp.example: denied entry (entry d1: fs01.corp.example).
(ADscan:corp-2026) > scope check app07.corp.example
app07.corp.example: inside the engagement scope (entry a1: 198.51.100.0/24).Verify the whole scope
scope verify reads the lists against what ADscan knows and tells you what each entry will do. Run it after typing a scope and again once the directory has been collected. Before the collection it can only show where each name points. After it, every entry is matched to the computers and accounts it names.
It leads with the one result that leaves the client's wish unmet, an exclusion that matched nothing. A typo in a deny entry does not fail. It leaves the host the client wanted left alone inside the scope under its real name, so ADscan states it first and asks you to check the name. The same line opens every run that has a scope.
scope verify also points out a computer that is covered at only some of its addresses, an entry that sits on both lists, an excluded domain controller or certificate server and what that costs in coverage, and it counts the computers inside the scope, excluded and not confirmed.
On the Enterprise platform
The scope belongs to the workspace. The workspace page carries an Engagement scope card with two text areas, one for the hosts and accounts to leave alone and one for the only ones an assessment may touch. You can paste entries or add a file. The card checks every line as you type with the same rules as the CLI and shows what the entries resolve to against the last collected inventory. A line with a mistake blocks saving.
When an allow list is present, the card asks how to treat the domain controllers it does not name, with the same two choices as the CLI.
Saving a change that widens the scope asks for confirmation and is recorded with your name. Changing the scope needs the Set the engagement scope permission. An assessment that is already running keeps the scope it started with, and the next one applies the saved scope. The page that launches an assessment shows the scope it will run under and lets you change it there, which saves it for the workspace too.
After an assessment, the Scope card of the scan lists what was left alone in two groups, excluded and not confirmed. Each not-confirmed row says what was missing and offers to add the object to the scope, as assessed or as left alone, so the next assessment can place it.
Excluded and not confirmed
ADscan keeps two outcomes apart, because they call for different actions.
Excluded is the client's decision, honoured. The object is on the deny list, or an allow list exists and does not cover it. There is nothing to fix.
Not confirmed means ADscan could not establish whether the object is inside the scope, so it left it alone as a precaution. It never guesses in the direction of touching something. Each not-confirmed object is listed with what was missing and what would settle it.
| What was missing | What settles it |
|---|---|
| The object is known only by name, and the name did not resolve to an address. | List the host by name in the scope. |
| The object is known only by address, and the address is not attributed to a known host. | List the address itself. |
| A scope entry that could apply had not been matched to a directory object. | Correct that entry, or list the host by address. |
| The change would reach hosts that could not be enumerated, as with a Group Policy object or an organisational unit. | List the hosts the change reaches, or confirm they are in scope. |
| The recorded scope could not be read. | Record the scope again before the next run. |
Neither outcome makes a run incomplete. Objects left alone because of the scope are a gap the client asked for or one you can close with a list entry, so adscan ci does not exit with code 3 for them. A scope record that cannot be read is different. ADscan then contacts no host at all, and an unattended run stops with exit code 2 before it starts.
What the report shows
Both reports and the platform state the scope in the same words, from the same data.
- The scope statement. How the assessment was limited, the scope revision and how it was set, how many computers and accounts were left out, and that ADscan sent no traffic to the excluded computers and took no action on the excluded accounts.
- Not assessed, excluded by the engagement scope. One row per excluded object, with the entry that matched it. These objects are never counted inside a clean result, and a compliance control that depends on them reads as not assessed.
- Not assessed, not confirmed as within the engagement scope. One row per object, with what was missing and what would settle it.
- What became of each entry. Every entry as the client wrote it, what it matched, and whether that was assessed, excluded, not reached or not confirmed. An exclusion that matched nothing is listed first.
- Domain controllers used for directory reads only, by name, with the statement that they were not assessed as hosts.
- Attack routes through an excluded object. The route is drawn, the step that would touch the object carries the label
Not executed: outside the engagement scope., and the route counts as mapped, not as executed.
Host figures use the in-scope hosts as their total and state the excluded count beside it, so a sweep over 180 of 200 hosts never reads as 200 clean hosts.
For a platform that ingests the results, the same facts are in scope.json in the workspace and in the asset_scope blocks of technical_report.json. See Integrate ADscan into your platform.
Limits to know about
- A connection from an excluded computer. ADscan closes it before reading anything, but the operating system has already completed the TCP handshake by then. The excluded computer sees a connection that opened and closed.
- An interface nothing reports. A second network interface that appears in neither the name service nor the directory cannot be tied to its computer. If it matters, list the address or the subnet as well.
- Broadcast and multicast traffic is not addressed to a host, so no list can exclude a host from receiving it. Name poisoning decides per request whether to answer, and it does not answer an excluded computer. To send no poisoning traffic at all, turn poisoning off in the scan policy.
- A second safety net. Besides the checks made where each target list is built, ADscan refuses a connection to an excluded address at the moment it would be opened, and counts every such refusal in
scope.json. In a normal run that count is zero.
Related
- adscan ci for the unattended flags and exit codes.
- Scan policies and scan speed for which checks run and how hard a scan works the network.
- Segmented networks for the segments an appliance can reach, which is a different question from the ones it is allowed to touch.
Callback Address (set myip)
Which IP ADscan tells a target to connect back to during relay, coercion and capture, how it is chosen per asset, and what to set when the authentication never arrives.
Segmented Networks
What the ADscan Enterprise appliance needs to assess a network split into VLANs or segments, which ports it uses, how to check reach, and what happens to a segment it cannot reach.