Windows: Gpg4win (GnuPG) Encrypt/Decrypt Command Using Suspicious File Paths

Flags Gpg4win/GnuPG file crypto commands using -passphrase with activity in temporary/public or suspicious Windows directories.

FreeReviewedSigma · High · v2
Product
windows
Category
process_creation
Author
Nasreddine Bencherchali (Nextron Systems), X__Junior (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2022-11-30
Updated
2026-07-31

What it detects

This rule identifies Windows process executions of Gpg4win’s GnuPG tooling (gpg.exe/gpg2.exe) performing file encryption or decryption using a command line that includes the -passphrase option. It further narrows matches to activity where the command line references commonly abused or staging-like locations such as Temp, Public profiles, PerfLogs, and AppData temp directories. Attackers often use OpenPGP tooling to protect malicious payloads, exfiltrate data, or obscure intent while operating from transient user or system directories. The detection relies on Windows process creation telemetry including image name, product/description metadata, and full command-line content.

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.