OpenSCAP / openscap

NIST Certified SCAP 1.2 toolkit

Home Page:https://www.open-scap.org/tools/openscap-base

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenSCAP is not supporting for Windows Server with XCCDF evaluation & CIS Benchmark

kumar6429 opened this issue · comments

Description of Problem: OpenSCAP is not supporting for Windows Server with XCCDF evaluation & CIS Benchmark. Is there any powershell script to install the OpenSCAP on windows

OpenSCAP Version: 1.3.0 & SCAP compliance checker 5.7.1

Operating System & Version: Windows Server 2016

Steps to Reproduce:

  1. Log into Windows Server 2016.
  2. Download the STIG compliance checklist and upload to SCC 5.7.1.
  3. Now run the local scan , select that particular profile (STIG for Windows 2016)
  4. The results will be saved to location you specify in SCC 5.7.1
  5. How to perform XCCDF evaluation with CIS Benchmark for windows server 2016 via command line or power shell script?
  6. How to install the OpenSCAP & SCAP Compliance checker software via power shell script?

Actual Results:

PS C:\SCAP\SCAP Report\Sessions\2023-05-26_093808\Results\SCAP\XML> oscap xccdf eval --fetch-remote-resources --profile Microsoft Windows Server 2016 - cpe:/0 --results-arf win-arf.xml --report win16-report.html
OpenSCAP Error: Unable to open file: 'Windows' [c:\projects\openscap\src\source\oscap_source.c:287]
PS C:\SCAP\SCAP Report\Sessions\2023-05-26_093808\Results\SCAP\XML>

Expected Results: The command should run successfully and results need to be saved locally

Additional Information / Debugging Steps: