WMI persistence
WMI event subscriptions persist in the WMI repository (C:\Windows\System32\wbem\Repository). An event filter, an event consumer and a binding between them can run code when a condition is met, without a file in any usual autostart location (ATT&CK T1546.003).
What WMI Persistence is
Persistence artifacts are the places programs start from automatically: services, tasks, autostart keys, WMI subscriptions, cron and systemd. Attackers use them to survive reboots.
Forensic value
What WMI Persistence can tell an investigator:
- Event filters, consumers and bindings, including command-line and script consumers.
- A persistence method that many quick checks miss.
What it does not prove
- Some legitimate software uses WMI subscriptions; review consumers before calling them malicious.
Where it is stored
Arcsentry looks for WMI Persistence at these locations inside a collection, disk image or mounted volume:
**/Windows/System32/wbem/AutoRecover/*.mof
**/Windows/System32/wbem/Repository/INDEX.BTR
**/Windows/System32/wbem/Repository/MAPPING*.MAP
**/Windows/System32/wbem/Repository/MAPPING.VER
**/Windows/System32/wbem/Repository/OBJECTS.DATA
**/Windows/System32/wbem/mof/**/*.mof What Arcsentry records
Each WMI Persistence record is written to Arcsentry's common schema with these fields, alongside the host, timestamp and provenance every record carries:
| Field | Type | Meaning |
|---|---|---|
config_object_name | VARCHAR | Configuration object name (site, application, handler, module) |
file_name | VARCHAR | File name |
file_size | BIGINT | File size |
message | VARCHAR | Human-readable message |
process_command_line | VARCHAR | Process command line |
record_type | VARCHAR | Record type code |
binding_consumer | VARCHAR | Consumer reference of a WMI filter-to-consumer binding |
binding_filter | VARCHAR | Event filter reference of a WMI filter-to-consumer binding |
consumer_type | VARCHAR | Wmi consumer type |
filter_query | VARCHAR | Wmi filter query |
namespace | VARCHAR | Wmi namespace |
repository_record_id | BIGINT | Wmi repository record id |
wmi_unmapped_fields | VARCHAR | JSON overflow for unmapped WMI fields |
class_name | VARCHAR | CIM class of the repository record |
script_text | VARCHAR | Inline script body of a WMI script event consumer |
allocation_state | VARCHAR | Allocation state of the CIM repository record |
file_path | VARCHAR | File path |
user_sid | VARCHAR | User sid |
Time
Arcsentry keeps each record's own time and labels its time zone when the source does not state one. A record with no time of its own stays untimed; Arcsentry never substitutes the collection time.
Collecting WMI Persistence with Arcsentry Collector
Arcsentry Collector gathers WMI Persistence in these triage profiles: windows::profile::triage::priority, windows::profile::triage::full. It is read straight from the file system, on a live host or inside a disk image, without mounting.
The collection targets that pick it up: windows::system_state::mof, windows::system_state::wbem.
.\arcsentry-collect.exe collect --local -t windows::profile::triage::priority `
-o E:\IR -f host.arcx --password-file E:\IR\pw.txt Every file lands in one AES-256 archive with a SHA-256 recorded for it, and the collection log notes which target collected it. See everything each profile collects.
Already collected with something else? Arcsentry also reads KAPE, Velociraptor and UAC collections, so WMI Persistence can come from the tools you already use.
Analysing WMI Persistence in Arcsentry
Ask in plain English, for example "show WMI Persistence records from the incident window, newest first", and Arcsentry shows the query before it runs. Or write it in AQL:
filter event_type == "wmi"
sort {-timestamp}
take 100 Mark a record malicious or suspicious and it joins the timeline in its kill-chain lane. Add its values as indicators and Arcsentry matches them across every host. When the AI investigator works the case, it reads WMI Persistence records with the same tools and cites them by event ID.
Corroborate with
No single artifact settles a question on its own. Check WMI Persistence against:
- Registry Run keys: Parses autostart Run/RunOnce registry keys.
- Scheduled task: Parses Windows Task Scheduler XML task definition files.
- Windows services: Windows service configurations including image paths, start types, and service DLLs.
- Windows event log: Parses Windows Event Log (.evtx) files.
Frequently asked
What does WMI persistence look like?
A __EventFilter defining a trigger, an __EventConsumer such as CommandLineEventConsumer defining an action, and a __FilterToConsumerBinding linking them.
Does Arcsentry parse WMI Persistence?
Yes. Arcsentry's WMI Persistence parser (wmi) reads it from Windows evidence and records 18 fields per record, with provenance back to the source file.
How do I collect WMI Persistence?
Arcsentry Collector gathers it with the priority triage profile (windows::profile::triage::priority), live or from a disk image, sealed in an AES-256 archive with a SHA-256 for every file.
Parse WMI Persistence on your own evidence.
Tell us what you want to investigate. A person replies within one business day with the download and a trial licence.
Request a trial