The Fix Plan That Would Have Undone the Hardening: STIG Triage, From Open Findings to Approved Fix Plans

The first STIG story on this site ended where a scanning engagement is supposed to end: thirty-one ESXi hosts, a vCenter Server and its appliance, scanned against the DISA vSphere 8.0 baseline, with a per-host checklist in the native STIG Viewer 3.x format for each one, the kind an auditor accepts. This story starts there, because a checklist is a list of what is wrong, and nobody gets credit for the list. Somebody has to turn the open findings into fixes that a reviewer can approve, an operator can run and a POA&M can track, and in a federal environment the tool that helps with that has to run on a machine that nothing leaves.

STIG Triage is that tool, and the way it got built has a moment worth leading with. The first fix plans it drafted for VMware Cloud Foundation 9 came out with Security.AccountLockFailures set to 0, Security.PasswordMaxDays set to 99999 and lockdown mode disabled. Every one of those values came out of VMware’s own STIG automation files. They were the wrong values from the right files, and that is the whole case for a tool whose last step is a person with a name.

Where the Scan Leaves You

The InSpec runner from the earlier work writes a CKL per host. STIG Triage reads CKL and CKLB files, several hosts at once, and the first thing it does with them is check the release. Add the STIG zip from DISA’s library and every checklist is compared with it rule by rule, so the scans that were run against an older release are known before anyone writes a POA&M item against them. The checklist’s MARKING field drives the classification banner across the top of the page, which sounds cosmetic until the workspace is on a desk where it matters.

STIG Triage overview of a synthetic sample workspace: 55 open findings on three hosts by severity, and four STIGs scanned against an older release

The bundled sample workspace, in the Python version’s interface, which the native build shares. The hosts, the statuses and the scan output are invented; the STIG content is VMware’s. Four STIGs in the three sample checklists were scanned against an older release, and the overview says so before anything else.

Then it groups. Every CAT I rule gets a fix plan of its own, so the things that get a system taken off the network are tracked one at a time. Everything else is grouped by the mechanism VMware’s own automation uses to fix it: the ESXi advanced settings that one PowerCLI run sets, the SSH daemon options that go through esxcli, the VAMI hardening role, and so on. A group is something one person can read, approve and run in one sitting. Fifty-five open findings on three hosts became eleven groups.

Drafts That Start From VMware’s Own Automation

The drafting does not start from a blank page. STIG Triage ships an index built from vmware/dod-compliance-and-automation, VMware’s published STIG automation: 999 rules across the vSphere 8.0 STIG V2R4 and the VCF 9.x readiness guides, and for 797 of them the index holds the official value, the Ansible hardening-role block or the PowerCLI section that fixes the rule, with a link to the exact source line. A drafted plan for ESXi advanced settings is one community.vmware.vmware_host_config_manager task that sets each setting to the value VMware publishes, tagged with the STIG IDs it covers. The review screen shows the finding, VMware’s official value and VMware’s own remediation code beside the draft, so the reviewer compares three things that are all on one screen.

That is where the wrong values came from. VMware’s VCF 9 PowerCLI variables files carry two tables keyed by the same STIG IDs: $stigsettings, the values the STIG requires, and $defaultsettings, the out-of-the-box values the revert workflow puts back. The indexer read every line of the file, the defaults table came second, and the defaults won: an account lockout threshold of 0 where the STIG says 3, a password age of 99999 days where the STIG says 90, lockdown mode off, seventeen VCF rules in all. The vSphere 8 index was never affected, because those files are laid out differently.

A careful reviewer would have caught it: the review screen puts the check text, which says 3, right beside the draft. The screen’s own check could not, because it compares a draft with the official value, and here the official value was the wrong one. A tool that needs its reviewer to catch its own indexing mistakes is not finished. The indexer now reads settings only inside $stigsettings, $envstigsettings, $vcconfig and $vmconfig, picks up VCF’s serviceSshEnabled and serviceShellEnabled names, and the VCF index was rebuilt. The lesson stayed: when a draft agrees with a vendor’s file, check which table in the file.

Every draft, whatever wrote it, goes through the same checks before a reviewer sees it. The YAML has to parse and has to be a list of tasks rather than a whole play. A literal credential blocks approval outright. shell and command tasks are flagged. A module the linter does not know is flagged, which is what catches an invented one. And a draft that drops or changes VMware’s official value is flagged, with both values shown. The eval harness scores drafts for the twenty-eight ESXi rules whose official fix is an advanced setting on five checks: parses, sets the setting, sets it to the right value, does it idempotently, with no lint errors. The offline engine scores 100% on all five, because it copies VMware’s values. That is the baseline anything cleverer has to beat.

A Named Reviewer, and Only Approved Work Leaves

The reviewer edits, approves or rejects each plan, and the decision goes into an append-only audit log with their name on it. Reopening a decision is logged too. The export contains approved plans only: an Ansible playbook, a runbook that runs VMware’s own hardening playbooks the way VMware’s README does (vars-vcenter.yml for vSphere 8, inventory_vcf.yml and playbook_api.yml for VCF 9) with --tags limited to the approved rules and --check --diff on, PowerCLI steps written as comments because they run in PowerShell and not in bash, an eMASS-style POA&M CSV with a completion window per severity, the checklists with a dated note on each covered finding, and the audit log. Finding statuses never change in any of this. Only a rescan closes a finding.

A STIG Triage fix plan approved by a named reviewer, with the Ansible tasks built from VMware's official values and the rescan step to verify them

An approved plan, in the Python version: the task built from VMware’s values, the instruction to run it with --check --diff first, and the rescan that verifies it, stamped with the reviewer’s name and time.

The app binds to 127.0.0.1 and has no login, so the rest of its security is about not being driven from somewhere else. Every state-changing request needs a custom header, so another site open in the same browser cannot use the API. A request addressed to any host name the server was not started for is refused, which is what stops a DNS-rebinding page. The content security policy allows no inline scripts and no third-party origins; the font is bundled. Text from a checklist can never reach a command line: host names and rule IDs have to match a strict character set and are shell-quoted, titles and reviewer names are flattened to one line inside comments, and a POA&M cell that starts like a spreadsheet formula is escaped. The workspace directory, which holds the checklists, is created owner-only.

One Program, No Install, No Network

The first version was a Python web app, and its first lesson came from Windows. The page loaded and stayed blank. Windows had the .js extension mapped to text/plain in the registry, the server used that mapping, and a browser refuses to run a module script served as plain text. The fix was one line, and the moment was a reminder that the people who need this tool most are often on a locked-down Windows workstation with no Python on it and no way to install one.

So STIG Triage became one executable. Copy stig-triage.exe to a Windows 10 or Server 2016 machine, or stig-triage to a Linux one, and run it; it opens the browser at a local port and keeps its workspace in the user’s profile, or in a stig-triage-data folder next to the program if that folder exists, which is how it travels on removable media. Three programs come out of each build: the full one, an offline one with no model code compiled in, for sites where only approved software may run, and stig-triage-cli, with no web UI and no listening port, for scripts and scheduled jobs. All three share a workspace, and a lock makes sure only one of them writes it at a time. Ctrl+C, or closing the window, cancels a running scan and gives it time to put back what it changed before the program exits.

The source package carries every dependency, so it builds on an air-gapped Linux machine with Go 1.25 or later and nothing else, and it cross-compiles the Windows programs from Linux. The builds are reproducible: the release’s BUILDINFO.txt names the commit and the Go version, and building the source package with that Go version produces the same SHA-256 hashes as the release’s SHA256SUMS.txt. That is how a site that cannot trust a downloaded binary gets to trust this one: rebuild it and compare.

The Scan That Never Guesses

Once it was one program, the next thing it wanted was to make its own checklists. The Scan page signs in to vCenter Server over the vSphere API and checks 84 ESXi rules and 10 vCenter Server rules across the vSphere 8.0 STIG and the VCF 9 content: advanced settings, services, lockdown mode, the image acceptance level, and the SSH daemon and syslog settings that esxcli reports. Every host gets a checklist, built from a DISA benchmark you loaded when one covers the STIG and otherwise from the built-in content, or the scan fills in a blank checklist exported from STIG Viewer, host fields included.

The rule that shaped all of the scanning is simple to state. A rule is marked Open or Not a Finding only when its automated check ran and read what it needed, and the finding details record the setting, the expected value, the found value and the sentence of the check text that was applied. A check that cannot read its setting, because of permissions, a missing tool or anything else, leaves the rule Not Reviewed with the reason. Rules with no automated check are never touched. Nothing is ever inferred from an absence.

Then came Linux and Windows. DISA publishes SCAP benchmarks for them, and the benchmark’s own OVAL checks are what SCC and OpenSCAP run, so STIG Triage runs the same content with a built-in OVAL 5.11 engine: variables, filters, sets and platform checks, the profile per assurance level and the refined values that come with it. On an Ubuntu 20.04 host its results matched OpenSCAP 1.3.9 on all 198 rules of the STIG profile. Run again without root, every difference from the root scan was a rule left Not Reviewed; never a different pass or fail. Results are matched to the checklist by rule ID including the revision, so a rule whose check changed between releases keeps the evidence in its details but is not decided.

On a CentOS Stream 9 server, with the SCAP Security Guide’s STIG profile, the results now match OpenSCAP 1.3.16 on all 477 rules. The first comparison there did not. A check for the vendor’s signing key failed, because the package list skipped the gpg-pubkey entries that check looks for. Four core dump rules that the profile turns off with an XCCDF conflicts element were checked anyway. Two checks used OVAL tests the engine did not run yet. Release 1.4.1 fixed all of it, and that is the reason to compare with another scanner instead of trusting your own. DISA’s RHEL 9 benchmark, for its part, covers RHEL 9 only: on CentOS Stream the scan skips the host, as OpenSCAP marks every rule not applicable, and the SCAP Security Guide’s data stream for CentOS Stream is the content to load.

Windows was its own education. The scan connects over WinRM on HTTPS with NTLM, never HTTP and never Basic, as the Windows STIG itself requires. Audit policy and user rights can only be read from an elevated administrator token, so the scan checks it holds one before it starts and says so when it does not. A 32-bit PowerShell endpoint is refused, because it sees SysWOW64 where the checks name System32, and the architecture is read in a script of its own before anything else so that a slow sign-in cannot hide it. The collection uses reg, auditpol, net accounts, secedit and standard cmdlets only, so it runs where PowerShell is in Constrained Language Mode, which on a hardened workstation it usually is. File permissions report every trustee the DACL names, including one that is only denied, the way SCC does. And a WinRM service with channel binding set to Strict refuses the sign-in; the default Relaxed works, and the README says which.

Before any of that, the host has to be who it says it is. The first time a host is scanned the scan stops and shows its SSH host key fingerprint, or the fingerprint of a TLS certificate no trusted authority signed, and nothing, not even a user name, is sent until a person confirms it. A confirmed identity is remembered, and the scan stops again if it changes. Passwords and private keys live in memory for the length of the scan and are never written to disk or the log; on the command line they are refused as flags, because a flag ends up in the process list and the shell history, and come from the environment or a prompt that does not echo.

The Appliance Has STIGs of Its Own

The vSphere scan checks vCenter Server’s settings over its API. The appliance it runs on has nine STIGs of its own for vCenter Server 8.0, for Photon OS and for each service from the ESX Agent Manager to the VAMI, 319 rules, and four readiness guides for vCenter Server 9 under VMware Cloud Foundation, 153 rules. STIG Triage checks those over SSH. Every rule has an automated check made from its DISA check text: where the text runs a command and says what the output should be, the check runs the same command and compares the same way. An xmllint query is evaluated on the file itself, PostgreSQL settings are read with psql, the VAMI’s with lighttpd -p, sshd’s with sshd -T. Every command only reads. The scan signs in as root, whose login shell has to be bash rather than the appliance shell, which VMware’s own STIG tools need too.

VMware Cloud Foundation 9 turns the appliance’s SSH service off, which is correct and also the end of an SSH-based scan. So the scan can turn it on, with a vCenter Single Sign-On account, through the appliance management API: it reads whether SSH is on, turns it on only if it is off, and when the scan ends, whether it finished, failed or was cancelled, turns it off again and checks that it is off. If that last step fails, the scan log carries a warning and the audit log an entry, and the README says where in the appliance management interface to turn it off by hand. An appliance where SSH was already on is left as it was. One detail the README now spells out: since vCenter Server 8.0, only members of the SSO group SystemConfiguration.BashShellAdministrators may turn SSH on, and administrator@vsphere.local is not a member by default.

The appliance checks were validated against simulated appliances built from each rule’s own expected output, compliant and then with each setting broken in turn. That is a strong test of the comparison and a weak test of the world, and the README says so: check a first scan of a real appliance against VMware’s STIG automation before relying on it. The same honesty applies to Windows, where the collection was exercised against DISA’s Windows 10 and Server 2022 benchmarks on a simulated host, and a first real scan should be compared with SCC.

Fixes Read Off the Check Itself

For Linux and Windows there is no VMware automation to draft from, but there is something almost as good. When a SCAP rule fails, its check already says what would make it pass: the value it compares with. The scan reads that value and records the change, and drafting writes one Ansible task per setting, tagged with the STIG ID, for the hosts that were scanned.

Setting Ansible module
Registry values (HKLM) ansible.windows.win_regedit
Audit policy subcategories community.windows.win_audit_policy_system
Account and password policy community.windows.win_security_policy
User rights ansible.windows.win_user_right
Kernel parameters ansible.posix.sysctl
Packages that must be installed or removed ansible.builtin.package
systemd units ansible.builtin.systemd_service
File owner, group and permissions ansible.builtin.file

What is never derived matters as much. A check that matches with a pattern, a negation or a computed value stays a manual fix. Tests that already pass are never “fixed”, and neither are conditions about the host itself. A removal that would only make the rule not apply is never chosen, even though many checks pass when, say, the SSH server is simply not installed. Nothing ever removes or stops the SSH server or WinRM, because the playbook connects through them. Where a check accepts several values the first it lists is used and the task says so; for audit policy, success and failure together is preferred when the check allows it, so fixing one rule never turns off the auditing another rule needs; user rights are set to exactly the accounts the check allows, named by SID. The generated tasks were checked against the option specifications of the Ansible collections they use, and the Linux tasks were run against a host: a dry run, an apply, and a second run that changed nothing.

Lessons Learned

  • Index what the STIG says, not everything the vendor’s file says. The revert table is in the same file, keyed by the same IDs, and it will win if you let it.
  • Not Reviewed beats a guess. A scanner that marks a rule Not a Finding because it could not read the setting has produced a false accreditation artifact. The reason in the finding details is worth more than the green.
  • The session is a precondition, not a detail. On Windows, audit policy and user rights are invisible to a session without an elevated token, and a 32-bit PowerShell sees a different System32. Check the session first, every time.
  • Put SSH back the way you found it, however the scan ends. Cancelled, failed or finished, the appliance should look afterwards the way it looked before, and the log should prove it.
  • Measure against another scanner, rule by rule. On CentOS Stream 9 a diff against OpenSCAP found faults that every test of our own had passed.
  • A reproducible build is how an air-gapped site trusts a binary. Ship the source package with its dependencies, name the toolchain, and let them rebuild and compare hashes.

Getting Started

Download the release’s zip, which holds the three programs for Windows and the three for Linux with their hashes, or the source package and ./build.sh. Run stig-triage, choose Load the sample checklists to see the whole workflow on synthetic data, then import your own CKL files or go to the Scan page. For a scheduled scan of Linux hosts against DISA’s benchmark, with the manual STIG loaded so the checklists hold every rule:

stig-triage-cli scan --type ssh --host web01,web02 --user admin --sudo \
    --benchmark U_RHEL_9_V2R9_STIG_SCAP_1-3_Benchmark.zip --stig U_RHEL_9_V2R9_STIG.zip \
    --profile MAC-1_Classified --out checklists/

stig-triage-cli scan --type vcsa --host vcenter.corp.example --enable-ssh \
    --sso-user stig-scan@vsphere.local --out checklists/

The password comes from STIG_TRIAGE_PASSWORD or a prompt, the first scan of a host stops to show its fingerprint, and the exit status is 0 when every host was checked, 2 when some were skipped and 1 on an error. For CentOS Stream, pass the SCAP Security Guide’s ssg-cs9-ds.xml (from the scap-security-guide package) as the benchmark, with --profile xccdf_org.ssgproject.content_profile_stig. The Python version that started it all is in the repository too, under python/, for anyone who would rather read the engine than run the binary. The per-host checklists for ESXi can also still come from the InSpec runner in the earlier repository; STIG Triage reads those exactly as it reads its own.


Repository: github.com/noahfarshad/stig-triage (release 1.4.1: the Windows and Linux programs, their hashes and the source package)

Product page: essential.coach/stig-triage/, with the downloads for Windows and Linux

Related Stories:

Scroll to Top