skills/mukul975/anthropic-cybersecurity-skills/hunting-for-persistence-via-wmi-subscriptions/Gen Agent Trust Hub
hunting-for-persistence-via-wmi-subscriptions
Pass
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/agent.pyexecutes local system commands to enumerate WMI subscriptions. - Evidence: The script uses
subprocess.runto callwmicto query theroot\subscriptionnamespace for filters, consumers, and bindings. - Evidence: The script uses
subprocess.runto execute a PowerShell block that retrieves and formats WMI subscription data into JSON. - [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted log data which could be crafted to influence an agent's behavior during the analysis phase.
- Ingestion points:
scripts/agent.pyreads Sysmon EVTX files;scripts/process.pyparses JSON and CSV log files. - Boundary markers: Absent. The scripts extract data directly from logs without wrapping content in delimiters or applying "ignore" instructions.
- Capability inventory: The skill can execute local commands (
wmic,powershell) and perform local file writes (scripts/process.pygenerates finding reports). - Sanitization: The scripts match suspicious strings via regex but do not sanitize or escape the extracted log content before reporting it.
- [EXTERNAL_DOWNLOADS]: The skill documentation and code reference external libraries required for log parsing.
- Evidence:
references/api-reference.mdandscripts/agent.pyidentify thepython-evtxlibrary as a dependency for processing Sysmon Event logs.
Audit Metadata