Vulnerability Provision

Vulnerability Provision

Use scripts/thruntops-scenarios.py to add selected vulnerability scenarios to an already-deployed Ludus range. This is a separate, targeted provisioning workflow: it does not destroy VMs or run a full range deployment.

Requirements

  • Run commands from the repository root with Python 3 and PyYAML installed.
  • Configure the Ludus CLI and ensure it can access the target range.
  • Deploy the range first. All VMs targeted by the selected scenarios must be running; the CLI checks their state before confirmation.
  • Apply scenarios only in an isolated ThruntOps lab. Changes to AD and Windows are persistent.

Install the Python dependencies in a virtual environment if needed:

1
2
3
python3 -m venv .venv
. .venv/bin/activate
python3 -m pip install -r scripts/requirements.txt

List scenarios

No range ID is needed to list the catalog. Use the exact scenario names shown here with the apply command:

1
python3 scripts/thruntops-scenarios.py list

Example output:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
asrep                          AS-REP roasting [local]
timeroasting                   Timeroasting [local]
shadow-credentials             Shadow Credentials [local]
kerberoasting                  Kerberoasting [local]
targeted-kerberoasting         Targeted Kerberoasting [local]
ntlm-relay                     NTLM relay [local]
coercion                       Authentication coercion (MS-RPRN) [local]
dpapi                          DPAPI Secrets [local]
gmsa                           gMSA password access [local]
adcs-esc1                      ESC1 [upstream ADCS]
adcs-esc2                      ESC2 [upstream ADCS]
adcs-esc3                      ESC3 [upstream ADCS]
adcs-esc3-cra                  ESC3 CRA variant [upstream ADCS]
adcs-esc4                      ESC4 [upstream ADCS]
adcs-esc5                      ESC5 [upstream ADCS]
adcs-esc6                      ESC6 [upstream ADCS]
adcs-esc7                      ESC7 [upstream ADCS]
adcs-esc8                      ESC8 [upstream ADCS]
adcs-esc9                      ESC9 [upstream ADCS]
adcs-esc10-case1               ESC10 case 1 [upstream ADCS]
adcs-esc10-case2               ESC10 case 2 [upstream ADCS]
adcs-esc11                     ESC11 [upstream ADCS]
adcs-esc13                     ESC13 [upstream ADCS]
adcs-esc14                     ESC14 [upstream ADCS]
adcs-esc15                     ESC15 [upstream ADCS]
adcs-esc16                     ESC16 [upstream ADCS]

[local] scenarios use roles maintained in this repository. [upstream ADCS] scenarios use badsectorlabs.ludus_adcs version 1.6.0.

Check configured scenarios

1
python3 scripts/thruntops-scenarios.py --range <range_id> status

This reports scenarios detected in the saved Ludus range configuration. It does not inspect Windows or confirm that a scenario was successfully applied.

Apply scenarios

Start the interactive selector:

1
python3 scripts/thruntops-scenarios.py --range <range_id> apply

Choose one or more numbered entries (comma-separated), or enter q to cancel. Alternatively, pass one or more exact scenario names:

1
2
python3 scripts/thruntops-scenarios.py --range <range_id> apply asrep
python3 scripts/thruntops-scenarios.py --range <range_id> apply asrep adcs-esc1

Names are case-insensitive and duplicate selections are ignored. Place --range before the subcommand.

Before making changes, the CLI previews the selected scenarios, roles, and target VMs. Check the preview and type exactly APPLY to proceed; any other response cancels. Non-interactive application is refused. After confirmation, the CLI updates the range configuration and invokes Ludus with --only-roles and --limit for the selected roles and hosts. It does not run siem.sh deploy, destroy VMs, or run a full range deployment.

Help

1
python3 scripts/thruntops-scenarios.py -h

Representative help output:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
usage: thruntops-scenarios.py [-h] [--range RANGE_ID] {list,status,apply} ...

Selectively provision ThruntOps AD scenarios on an existing Ludus range.
This does not destroy or fully redeploy the range.

positional arguments:
  {list,status,apply}
    list               List supported local and upstream ADCS scenarios (no
                       range needed).
    status             Show scenarios configured in a range (does not inspect
                       live Windows state).
    apply              Preview, confirm, and apply selected scenario(s) to a
                       deployed range.

options:
  -h, --help           show this help message and exit
  --range RANGE_ID     Ludus range ID (required for status/apply; place before
                       the command).

Examples:
  python3 scripts/thruntops-scenarios.py list
  python3 scripts/thruntops-scenarios.py --range lab1 status
  python3 scripts/thruntops-scenarios.py --range lab1 apply
  python3 scripts/thruntops-scenarios.py --range lab1 apply asrep adcs-esc1

Apply requires an interactive confirmation: type APPLY at the preview. All
requested target VMs must already be running. See docs/vulnerabilities.md for
prerequisites, selection behavior, persistence, and cleanup.

Persistence, failures, and cleanup

Provisioning modifies directory or Windows state; it is not a temporary test session. Selected roles remain recorded in the range configuration. The CLI has no disable/reset command, and setting a role variable to false does not undo changes already made on Windows. The upstream ADCS role is non-idempotent.

If a role run fails, configuration remains updated and some changes may already have been applied. Inspect ludus range logs --range <range_id> before retrying; do not assume retries roll back or safely repeat every operation. Restore a suitable snapshot or perform scenario-specific cleanup to return to baseline.

For live checks and the Kali runner, see Vulnerabilities Check. For exploitation walkthroughs, see AD Vulnerability Scenarios and ADCS Exploitation Scenarios.