r/PowerShell • u/Daniel_Mitchell24 • 11d ago
Question Automating STIG CKL comparisons with PowerShell
I'm trying to automate of our monthly STIG review process.
The monthly STIG batch processing is already handled. What i'd like to automate next is comparing the new CKL files against a known good golden base and generating a report showing only the controls that changed.
The goal is to avoid manually opening large numbers of CKL files in STIG Viewer just to find a handful of differences.
I'm currently looking at parsing the CKL XML with PowerShell but before I build something from scratch I wanted to see if there are existing PowerShell modules or tool that can compare CKLs or generate useful diff reports.
Has anyone automated something similar? What approach or tooling worked for you?
3
u/psychotrackz 11d ago •
With 2 tools you should be able to get this done. First, Take a look at a tool called stigmanager. This tool will aggregate all your stigs into one location in a web app. Think of it as STIG viewer on steroids.
Second, use evaluate STIG. That tool will scan the system and spit out a checklist with all technologies found on the system combined. With evaluate STIG, you can export to STIG manager.
Automate running evaluate STIG sending to STIG manager. Once you have that set, STIG manager gives you options to run reports and can show you which findings are opened and on what system.
It’s a different way to do STIGs, but once you see the possibility, you’ll be hooked
2
u/jack1729 11d ago
Haven’t done any of this, but wanna follow the thread good luck
1
u/Lonely_Noyaaa 11d ago
Building a custom XML diff in PowerShell is doable but you will spend weeks on edge cases like namespace changes and version fields that shift between STIG releases. Use the tooling that already handles those.
0
u/PeeCee1 11d ago
I would follow rule 5.