PyrsistenceSniper Detects 117 Offline Windows Persistence Checks for DFIR Teams


PyrsistenceSniper is an open-source Python tool that helps incident responders and threat hunters find offline Windows persistence mechanisms in forensic collections. The PyrsistenceSniper GitHub repository says the tool can scan KAPE dumps, Velociraptor collections, mounted disk images, and standalone registry hives without requiring access to a live endpoint.

The project currently lists 117 checks across 9 MITRE ATT&CK techniques. It runs on Windows, Linux, and macOS, but its detection coverage focuses on Windows persistence artifacts such as Run keys, services, COM hijacking, scheduled tasks, WMI subscriptions, Office add-ins, IFEO injection, startup folders, and LSA packages.

That offline approach makes it useful during incident response, where analysts often receive triage collections instead of direct access to an infected machine. It also helps teams review multiple systems from one analysis workstation without relying on PowerShell execution on the original host.

What PyrsistenceSniper does

PyrsistenceSniper scans Windows forensic artifacts for places where malware or attackers may try to survive reboots, user logouts, credential changes, and cleanup attempts. The MITRE ATT&CK Persistence tactic describes this goal as maintaining a foothold after access could otherwise be lost.

The tool parses registry hives offline with libregf, checks file system artifacts, reads scheduled task XML files, and enriches findings with useful context. Each result can include file existence, SHA-256 hash, Authenticode signer information, LOLBin classification, severity, and MITRE technique mapping.

The project is inspired by two well-known Windows persistence tools: Sysinternals Autoruns and the original PersistenceSniper PowerShell module. Unlike those tools, PyrsistenceSniper was built for offline triage workflows and can run from non-Windows analyst systems.

FeatureWhy it matters
Offline scanningWorks against forensic collections without touching a live endpoint
117 checksCovers common and less obvious Windows persistence locations
MITRE mappingHelps teams report findings using a shared threat model
Signature filteringHelps separate likely suspicious entries from normal Windows noise
CSV, HTML, and XLSX outputSupports incident response reports and cross-host analysis

Why offline persistence detection matters

Persistence is one of the most important parts of post-compromise analysis. Attackers often create startup entries, hijack legitimate execution paths, add services, register event-based triggers, or modify authentication-related locations to keep access after the first intrusion.

Microsoft’s Sysinternals Autoruns remains one of the best-known tools for reviewing autostart locations on Windows. It shows configured startup applications and many registry and file system locations used for automatic execution.

PyrsistenceSniper addresses a different workflow. It helps analysts review collected evidence after the fact, especially when they need to process many host images or triage bundles from a separate forensic workstation.

Supported checks and MITRE coverage

The project repository lists 117 supported checks across 9 MITRE ATT&CK techniques. These include boot and logon startup locations, scheduled tasks, account manipulation, Office startup locations, service changes, event-triggered execution, autostart execution, hijacked execution flows, and authentication process changes.

This mapping helps responders connect a suspicious artifact to a known attacker behavior. It also gives teams a clearer structure for reporting findings to customers, executives, or internal security leadership.

The MITRE ATT&CK Persistence page explains that adversaries use these techniques to keep access across interruptions. PyrsistenceSniper uses that language to group findings in a way that fits normal DFIR reporting.

MITRE IDTechnique groupExample check areas
T1037Boot or logon initialization scriptsGroup Policy scripts and logon scripts
T1053Scheduled task or jobScheduled task files and ghost tasks
T1098Account manipulationRID hijacking and related account changes
T1137Office application startupOffice add-ins, templates, and Outlook startup paths
T1543Create or modify system processWindows services and service failure commands
T1546Event triggered executionWMI subscriptions, AppInit DLLs, IFEO debugger keys, and shell hooks
T1547Boot or logon autostart executionRun keys, startup folders, Winlogon entries, and LSA-related entries
T1556Modify authentication processAuthentication package and credential-related persistence locations
T1574Hijack execution flowCOM hijacking, DLL search order abuse, and path interception

How it reduces noise during investigations

One of the main challenges with persistence hunting is noise. Windows systems contain many legitimate startup entries, scheduled tasks, services, shell extensions, and signed Microsoft components, so raw output can overwhelm analysts.

Tool Usage

PyrsistenceSniper uses signature-based filtering and YAML detection profiles to help teams suppress known-good entries and highlight stronger signals. The tool’s documentation says block rules take priority, while allow rules can reduce low-value findings from normal operating system behavior.

This design matters for consultants and SOC teams that compare evidence across many machines. Clean output makes it easier to find the one host with a suspicious service path, unusual DLL, malicious Run key, or unexpected WMI event subscription.

  • Authenticode signer checks help identify trusted and suspicious binaries.
  • SHA-256 hashes make findings easier to compare across multiple systems.
  • LOLBin classification highlights legitimate binaries attackers may abuse.
  • YAML allow and block rules help teams adapt the tool to customer baselines.
  • Technique filtering lets analysts focus on specific persistence families.

Installation and reporting options

PyrsistenceSniper is available as a Python package, with version 0.8.0 listed on PyPI as of March 30, 2026. The package requires Python 3.10 or newer and lists Maurice Fielenbach as the author.

The tool can export results to console, CSV, HTML, and XLSX formats. HTML output works well for client delivery, while CSV and XLSX files help responders stack findings across many systems during larger investigations.

The PyPI project page also lists the package under forensics, DFIR, incident response, persistence, Windows, registry, threat hunting, security, and malware analysis tags. That positioning matches the tool’s target audience: analysts who need fast offline triage rather than a live endpoint GUI.

How it compares with Autoruns and PersistenceSniper

Autoruns remains a powerful choice when an analyst has a live Windows system and wants a broad view of configured autostart locations. Microsoft’s Autoruns documentation lists logon entries, Explorer add-ons, AppInit DLLs, image hijacks, Winlogon notification DLLs, Windows services, and many other autostart locations.

The original PersistenceSniper project takes a PowerShell-based approach for blue teams, incident responders, and system administrators hunting persistence on Windows machines. PyrsistenceSniper builds on that idea but shifts the workflow toward offline Python-based analysis.

That makes the new tool especially useful when the analyst works from Linux or macOS, processes KAPE collections, or needs a repeatable command-line workflow for many host collections.

ToolBest suited forMain workflow
AutorunsLive Windows autostart reviewInteractive review of configured autostart locations
PersistenceSniperWindows persistence hunting with PowerShellBlue-team module for finding persistence on Windows systems
PyrsistenceSniperOffline DFIR triage from collections and disk imagesPython-based scanning of registry hives and forensic artifacts

Who should use PyrsistenceSniper

The tool is most useful for incident response firms, SOC teams, malware analysts, digital forensics teams, and internal security teams that collect endpoint evidence at scale. It can also help consultants prepare cleaner reports for customers after ransomware, intrusion, or suspicious persistence investigations.

It is less useful as a general desktop scanner for casual users. PyrsistenceSniper expects forensic artifacts, Windows hives, mounted images, or triage output, so it fits trained analysts better than home users looking for one-click malware removal.

Teams already using the original PersistenceSniper may find the Python version helpful when they need cross-platform analyst workstations, offline scanning, structured exports, and custom detection profiles.

What analysts should keep in mind

PyrsistenceSniper can speed up persistence triage, but it should not replace full forensic analysis. A clean scan does not prove that a system is safe, and a suspicious finding still needs analyst review before final conclusions.

The tool’s strongest value comes from repeatability. Analysts can scan many collections with the same profile, compare output across hosts, and focus manual review on entries with stronger evidence.

For teams handling real incidents, PyrsistenceSniper adds a practical offline layer to Windows persistence hunting. It gives responders a faster way to locate likely footholds, document them, and connect them to recognized ATT&CK techniques.

FAQ

What is PyrsistenceSniper?

PyrsistenceSniper is an open-source Python tool for offline Windows persistence detection. It scans forensic collections, mounted disk images, KAPE output, Velociraptor collections, and standalone registry hives for persistence indicators.

Does PyrsistenceSniper detect Linux and macOS persistence?

No. PyrsistenceSniper runs on Windows, Linux, and macOS analyst workstations, but its detection focus is offline Windows persistence artifacts.

How many persistence checks does PyrsistenceSniper include?

The current project documentation lists 117 persistence checks across 9 MITRE ATT&CK techniques. These checks cover areas such as Run keys, scheduled tasks, services, WMI subscriptions, COM hijacking, Office startup paths, and authentication-related entries.

What output formats does PyrsistenceSniper support?

PyrsistenceSniper supports console, CSV, HTML, and XLSX output. CSV and XLSX help with cross-host analysis, while HTML reports work well for client-facing incident response deliverables.

Is PyrsistenceSniper a replacement for full forensic analysis?

No. PyrsistenceSniper helps analysts find likely Windows persistence mechanisms faster, but findings still require review, context, and correlation with other forensic evidence before final conclusions.

Readers help support VPNCentral. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help VPNCentral sustain the editorial team Read more

User forum

0 messages