PowerShell Module Analysis Cache
Modules PowerShell analysed and the commands and types each exports, as a snapshot of the last cache write; a cache relocated by PSModuleAnalysisCachePath, kept by PowerShell 7 running as SYSTEM, or kept in a Windows service account profile is not located.
What PowerShell Module Analysis Cache is
Modules PowerShell analysed and the commands and types each exports, as a snapshot of the last cache write; a cache relocated by PSModuleAnalysisCachePath, kept by PowerShell 7 running as SYSTEM, or kept in a Windows service account profile is not located. It is one of 23 execution artifacts Arcsentry reads. Execution artifacts record that a program was present or ran: what, where from, how often and when. They are the core of "what did the attacker run?"
Forensic value
Execution artifacts help answer questions like these:
- Which tools ran on this host?
- When did a program first and last run?
- Which user ran it?
Where it is stored
Arcsentry looks for PowerShell Module Analysis Cache at these locations inside a collection, disk image or mounted volume:
**/Users/*/AppData/Local/Microsoft/PowerShell/ModuleAnalysisCache*
**/Users/*/AppData/Local/Microsoft/Windows/PowerShell/ModuleAnalysisCache*
**/Windows.old/Users/*/AppData/Local/Microsoft/PowerShell/ModuleAnalysisCache*
**/Windows.old/Users/*/AppData/Local/Microsoft/Windows/PowerShell/ModuleAnalysisCache*
**/Windows/SysWOW64/config/systemprofile/AppData/Local/Microsoft/Windows/PowerShell/ModuleAnalysisCache*
**/Windows/System32/config/systemprofile/AppData/Local/Microsoft/Windows/PowerShell/ModuleAnalysisCache*
**/home/*/.cache/powershell/ModuleAnalysisCache*
**/root/.cache/powershell/ModuleAnalysisCache* What Arcsentry records
Each PowerShell Module Analysis Cache record is written to Arcsentry's common schema with these fields, alongside the host, timestamp and provenance every record carries:
| Field | Type | Meaning |
|---|---|---|
file_path | VARCHAR | File path |
message | VARCHAR | Human-readable message |
module | VARCHAR | module_name |
powershell_exported_commands | VARCHAR[] | Command names a PowerShell module exports, as recorded in the module analysis cache |
powershell_exported_types | VARCHAR[] | Type names a PowerShell module exports, absent when the cache records the module as not type-analysed |
powershell_module_last_write_local | VARCHAR | Module file last-write time in the writing host's local wall clock, with no time zone recorded |
source_file_modified | TIMESTAMP | Modification time of the source artifact file, carried only on records that lack a parsed event timestamp (substituted-time provenance, never a forensic event time) |
user_name | VARCHAR | User name |
log_file | VARCHAR | Source log file path |
artifact_read_status | VARCHAR | Source read failure: unreadable (the source could not be read), corrupt (its bytes failed format or stream integrity checks), unrecognized (the content does not identify a supported format), or unsupported (the format version or a required format extension is not supported); records read before a failure may still be present |
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 PowerShell Module Analysis Cache with Arcsentry Collector
Arcsentry Collector gathers PowerShell Module Analysis Cache in these triage profiles: linux::profile::triage::priority, linux::profile::triage::offline, linux::profile::triage::full, windows::profile::triage::priority, windows::profile::triage::offline, 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: linux::execution::docker_ondisk, linux::execution::powershell_module_cache, linux::filesystem::bodyfile, windows::execution::powershell_module_cache.
sudo ./arcsentry-collect collect --local -t linux::profile::triage::priority \
-o /mnt/ir -f host.arcx --password-file /mnt/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 PowerShell Module Analysis Cache can come from the tools you already use.
Analysing PowerShell Module Analysis Cache in Arcsentry
Ask in plain English, for example "show PowerShell Module Analysis Cache records from the incident window, newest first", and Arcsentry shows the query before it runs. Or write it in AQL:
filter event_type == "powershell_module_analysis_cache"
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 PowerShell Module Analysis Cache records with the same tools and cites them by event ID.
Frequently asked
Does Arcsentry parse PowerShell Module Analysis Cache?
Yes. Arcsentry's PowerShell Module Analysis Cache parser (powershell_module_analysis_cache) reads it from Windows and Linux evidence and records 10 fields per record, with provenance back to the source file.
How do I collect PowerShell Module Analysis Cache?
Arcsentry Collector gathers it with the priority triage profile (linux::profile::triage::priority), live or from a disk image, sealed in an AES-256 archive with a SHA-256 for every file.
Parse PowerShell Module Analysis Cache 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