detecting-wmi-persistence
Pass
Audited by Gen Agent Trust Hub on Sep 14, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/agent.pyexecutes built-in Windows commandswevtutilandpowershellusingsubprocess.runwith list-based arguments. These commands are used to collect security telemetry (Sysmon Event IDs 19, 20, 21) and enumerate WMI namespaces for active persistence mechanisms. This is the intended and necessary behavior for the skill's threat-hunting purpose. - [INDIRECT_PROMPT_INJECTION]: The skill has a vulnerability surface for indirect prompt injection as it processes untrusted system event logs and WMI subscription metadata which could contain attacker-controlled strings.
- Ingestion points: Untrusted event data is ingested via
wevtutilandpowershelloutputs inscripts/agent.py. - Boundary markers: The script uses standard structured data parsers including
xml.etree.ElementTreefor Sysmon logs andjson.loadsfor PowerShell output to process data. - Capability inventory: The skill performs local command execution and file writing to generate reports but does not have network exfiltration capabilities.
- Sanitization: The script extracts specific telemetry fields for analysis and report generation, but does not execute the content of the data it processes as code.
Audit Metadata