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).

WindowsPersistenceParser: wmi18 fieldsCollected by priority triage

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:

FieldTypeMeaning
config_object_nameVARCHARConfiguration object name (site, application, handler, module)
file_nameVARCHARFile name
file_sizeBIGINTFile size
messageVARCHARHuman-readable message
process_command_lineVARCHARProcess command line
record_typeVARCHARRecord type code
binding_consumerVARCHARConsumer reference of a WMI filter-to-consumer binding
binding_filterVARCHAREvent filter reference of a WMI filter-to-consumer binding
consumer_typeVARCHARWmi consumer type
filter_queryVARCHARWmi filter query
namespaceVARCHARWmi namespace
repository_record_idBIGINTWmi repository record id
wmi_unmapped_fieldsVARCHARJSON overflow for unmapped WMI fields
class_nameVARCHARCIM class of the repository record
script_textVARCHARInline script body of a WMI script event consumer
allocation_stateVARCHARAllocation state of the CIM repository record
file_pathVARCHARFile path
user_sidVARCHARUser 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:

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