v3.6 · MIT · PowerShell 5.1 and 7

HostBadger

A Windows host hardening auditor. One read-only script collects the host, the analysis runs anywhere else, offline, and the report says what is weak, what it means and what could not be judged at all.

248checks
1475DISA STIG rules
36attack vectors mapped
15attack paths
68checks with a fix script
0network calls in the analysis

Every number on this page is generated from the catalogs in the repository, so it cannot promise a check, a rule or a release the tool does not ship.

See it before you run it

The report below is the real output of HostBadger on a synthetic fleet of five hosts, shipped in the repository as examples\demo_report.html. It is one HTML file with no server behind it: open it, switch host, expand a check, read the fix script.

A tour of the HostBadger report, one section per slide

How it works

1 · Collect

One file, read-only

Collect-HostSnapshot.ps1 is a single self-contained script, so your EDR console, RMM or GPO can run it as it is. It reads: no Set-, no New-, no Remove-, no CIM method call. A section that fails is recorded as a collection error, never as a clean result.

2 · Analyse

Anywhere, offline

The snapshot is judged on your own machine. 248 checks across 14 categories, per host and across the fleet (shared local passwords, cloned machine SIDs, configuration drift). Snapshots can be encrypted with a password or a certificate before they leave the host.

3 · Fix

A script you can read

68 checks come with a generated fix: one setting, the expected value, reversible, previewed by default and with a rollback file. Three hardening profiles (148 settings) go further when you ask for them, and every item quotes the rule it comes from.

Attack paths

The findings read as chains instead of one weakness at a time. 15 chains tie each stage - initial access, execution, privilege escalation, defence evasion, credential access, lateral movement, persistence, impact - to the checks that look for the condition that stage needs, and the dashboard draws them per host.

Initial access: condition presentAccessExecution: condition presentExecDefence evasion: not judgedEvasionCredential access: condition presentCredsLateral movement: nothing foundLateral
the condition is on the host nothing could be judged every judged check is clean

A chain is drawn for one host, the worst of those in view: the stages of several hosts put together would show a chain that none of them has. A complete chain means every stage has an enabling condition on that one host - evidence worth acting on, not proof that anyone walked it. A chain holds only while every stage of it stays open, so the report names the one stage that is cheapest to close: first a stage whose findings all have a fix script, then the one with the fewest settings to change.

The same discipline applies to the 36 attack vectors of 2022-2026 that the report maps: only the checks that look for the condition a vector needs decide whether a host is exposed; a check that merely makes it worse is shown as context, and never counted as exposure.

Judged against what

Benchmarks and baselines

  • DISA STIG: 1475 registry rules, one finding each - Adobe Acrobat V2R1, Google Chrome V2R11, Defender Antivirus V2R8, Microsoft Edge V2R5, Mozilla Firefox V6R7, Windows Firewall V2R2, Microsoft 365 Apps V3R5, Windows Server 2016 V2R10, Windows Server 2019 V3R8, Windows Server 2022 V2R8, Windows Server 2025 V1R1, Windows 10 V3R6, Windows 11 V2R7.
  • CIS: 83 checks follow a benchmark rule, quoted in the host's own version - CIS Microsoft Windows 11 Enterprise Benchmark v3.0.0; CIS Microsoft Windows 10 Enterprise Benchmark v3.0.0; CIS Microsoft Windows Server 2022 Benchmark v4.0.0; CIS Microsoft Windows Server 2019 Benchmark v4.0.0; CIS Microsoft Windows Server 2016 Benchmark v3.0.0.
  • ACSC Essential Eight: maturity levels from what a host can actually show (ASD model, November 2023), with the requirements that need other evidence named as such.
  • NIS2 in Italy: the ACN basic security measures (Determinazione 379907/2025, D.Lgs. 138/2024) a host gives evidence about, in ACN's own wording.

And what it refuses to claim

A snapshot is a configuration, not a stream of events. The report lists every check it could not judge and why, instead of counting it as clean; the coverage document names the kinds of attack a configuration can say nothing about; and no framework panel is presented as a certification of conformity.

Full catalogue, rule by rule: COVERAGE.md.

Design rules

Nothing leaves the host

The analysis makes no network call. The catalogues (CISA KEV, LOLDrivers, NVD, endoflife.date) are downloaded only when you pass the switch for them, from their own address and nothing else. The optional AI summary is opt-in, and every host, account, service and path name is replaced by a token before anything is sent - checked, not promised.

Nothing updates itself

STIG releases, CIS versions and the Essential Eight model live in the shipped catalogues, and the documents are generated from them. The tool cannot quote a release it was not built from, and a developer tool reports when a newer one exists.

Nothing changes a machine by accident

Remediation is a script you read first. It previews by default, applies only after you type YES, takes a System Restore point where it can and writes a rollback file. A fix that needs an organizational decision stays out of the automatic set.

It is checked, not asserted

Test-HostBadgerSafety.ps1 parses the shipped scripts and fails on anything that writes, on compiled code and on network calls outside the one file allowed to make them. The regression suite runs on PowerShell 7 and on Windows PowerShell 5.1 at every change.

Who wrote it

HostBadger is written and maintained by Gabriele Piccini. It started as the tool I wanted while auditing Windows estates: something that could be handed to whoever holds the console, that collects once without touching anything, and that is honest about the difference between "this is wrong" and "I could not see this".