HostBadger

3.4

Windows host hardening auditor. Collect once on each host with a read-only snapshot (as SYSTEM through an EDR, an RMM, Intune, a startup script or PowerShell remoting), then analyze anywhere: 236 checks plus about 500 DISA STIG registry rules, mapped to MITRE ATT&CK, the CIS Windows benchmarks, the ASD Essential Eight and NIS2 / ACN. One HTML report for the whole flee
Windows host hardening auditor. Collect once on each host with a read-only snapshot (as SYSTEM through an EDR, an RMM, Intune, a startup script or PowerShell remoting), then analyze anywhere: 236 checks plus about 500 DISA STIG registry rules, mapped to MITRE ATT&CK, the CIS Windows benchmarks, the ASD Essential Eight and NIS2 / ACN. One HTML report for the whole fleet, a findings CSV, JSON Lines for a SIEM, and a generated reversible remediation script. Pure PowerShell, Windows PowerShell 5.1 and PowerShell 7, no agent, and no network unless you ask for a catalog download or the optional AI summary. A check whose data could not be collected is listed as not evaluated, never as clean.
Show more

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name HostBadger

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name HostBadger

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 Gabriele Piccini. MIT licence.

Package Details

Author(s)

  • Gabriele Piccini

Tags

Security Hardening Audit Compliance Windows CIS STIG EssentialEight NIS2 Defender BlueTeam IncidentResponse

Functions

Get-HostBadgerPath Invoke-HostBadger New-HostSnapshot New-SyntheticHostSnapshot Start-HostBadger Start-HostBadgerGui Test-HostBadgerSafety

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes

## [3.4] - 2026-11-25
### Added
- **HostBadger on the PowerShell Gallery.** `Install-Module HostBadger` installs the
 analyzer, the collector, the libraries and the catalogs, and gives each entry
 point a command: `Invoke-HostBadger`, `New-HostSnapshot` (alias
 `Collect-HostSnapshot`), `Start-HostBadger`, `Start-HostBadgerGui`,
 `Test-HostBadgerSafety`, `New-SyntheticHostSnapshot`, and `Get-HostBadgerPath`
 to reach a file of the module (the collector to copy to a host, the synthetic
 fleet to analyze). The scripts are still the product: each function runs the
 script file itself, in process, so the script keeps its own `$PSScriptRoot` and
 finds `lib\` and `data\` where it always did. A SecureString parameter is easier
 this way than from a command line: `-SnapshotPassword` no longer has to cross a
 new PowerShell.
- `tools\New-HostBadgerModule.ps1` builds that module under `output\module`,
 outside the repository's own files: anyone cloning the repository still gets a
 set of scripts with no build step and no manifest. The param block, its
 attributes and the comment based help of every function are copied from the
 script's own source with the PowerShell parser, so the 66 parameters of
 `HostBadger.ps1` are never written down twice and the module cannot drift from
 the scripts. The regression reads the generated module without running it and
 fails if a parameter, an export or the version differs from the scripts.
- The package leaves out what a run does not read (the demo report and its GIF,
 the developer tools in `tools\`) and keeps `examples\fleet`, the synthetic
 snapshots the README analyzes first.

FileList

Version History

Version Downloads Last updated
3.4 (current version) 11 11/25/2026