feat: add Microsoft Defender anti-malware HIP reporting support for linux (#618)

Co-authored-by: bstock84 <[email protected]>
This commit is contained in:
bstock-rpandbstock84 authored and GitHub committed 2026-06-19 14:29:54 +08:00
1 parent 7d63836e35
commit 67de92044f
4 files changed
+73

No files matched your search

+13
View File
@@ -218,7 +218,20 @@
</entry>
{% elif host_info.os_vendor == "Linux" -%}
<entry name="anti-malware">
{% if let Some(defender) = &host_info.defender -%}
<list>
<entry>
<ProductInfo>
<Prod name="Microsoft Defender ATP" version="{{ defender.app_version }}" defver="{{ defender.definitions_version }}" prodType="3" engver="{{ defender.engine_version }}" osType="1" vendor="Microsoft Corporation" dateday="{{ day }}" dateyear="{{ year }}" datemon="{{ month }}">
</Prod>
<real-time-protection>{% if defender.real_time_protection_enabled.value %}yes{% else %}no{% endif %}</real-time-protection>
<last-full-scan-time>n/a</last-full-scan-time>
</ProductInfo>
</entry>
</list>
{% else -%}
<list/>
{% endif -%}
</entry>
<entry name="disk-backup">
<list/>