fbprogmbh / Audit-Test-Automation

FBPro Audit Test Automation Package allows you to create compliance reports for your systems. The resulting HTML-reports provide a transparent overview of your devices' security configuration compared to international security standards and hardening guides.
https://fb-pro.com/audit-test-automation-package-audit-tap/
BSD 3-Clause "New" or "Revised" License
86 stars 27 forks source link

Modules: Defender is deprecated and capabilities moved to ConfigDefender Module #600

Closed TuemmlerKelch closed 3 weeks ago

TuemmlerKelch commented 1 month ago

Operating System

Microsoft Windows Server 2022

Report Name

Microsoft Windows Server 2022

Benchmark and ID (OPTIONAL)

No response

What happened?

Report generation fails once function CheckWindefRunning is called. Error message is highly misleading and will be fixed in a different issue, which I will open soon. image The report will check for license, go through the cis checks (as apprently they do not utilize this function; we will need to add this in form of an enhancement) and then state the reportname was wrong.

Please add a check for module presence. If the module is non-existent, we will rate this as Windows Defender not being in a running state. For this, we need to check for existence of at least one of the following modules: Defender (deprecated) OR ConfigDefender

Please also note, that with Ticket #519 we added some checks for required modules. So this should go in line. (Might reconsider moving this away from ATAPAuditor.psm1 and relocating that to the helpers)

What did you expect?

Either continuing with errors, or an error message that would actually hint at the specific command not being found.

Current Version?

I used the latest official release.

TuemmlerKelch commented 1 month ago

@SteffenWinternheimer I checked the code and it's working now. However, we still see two more errors we need to catch. Basically we need to make sure ASR rules are skipped if no defender module is present. I believe we should make sure that Windefrunning check (line 551) is the first we do in SBD-022. image

TuemmlerKelch commented 3 weeks ago

Solved with other issues