Sigma rule: File Encryption/Decryption Via Gpg4win From Suspicious Locations

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-4367bf93ac34, updated 2023-08-09T00:00:00.000Z.

Rule

Title
File Encryption/Decryption Via Gpg4win From Suspicious Locations
Status
test
Level
high
Author
Nasreddine Bencherchali (Nextron Systems), X__Junior (Nextron Systems)
Date
2022-11-30
Modified
2023-08-09
File
rules/windows/process_creation/proc_creation_win_gpg4win_susp_location.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects usage of Gpg4win to encrypt/decrypt files located in potentially suspicious locations.

Log source

product
windows
category
process_creation

Detection

selection_metadata:
    - Image|endswith:
          - '\gpg.exe'
          - '\gpg2.exe'
    - Product: 'GNU Privacy Guard (GnuPG)'
    - Description: 'GnuPG’s OpenPGP tool'
selection_cli:
    CommandLine|contains: '-passphrase'
selection_paths:
    CommandLine|contains:
        - ':\PerfLogs\'
        - ':\Temp\'
        - ':\Users\Public\'
        - ':\Windows\Temp\'
        - '\AppData\Local\Temp\'
        - '\AppData\Roaming\'
condition: all of selection_*

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.execution

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_gpg4win_susp_location.yml

Sources and licences

  • SigmaHQ

    "File Encryption/Decryption Via Gpg4win From Suspicious Locations" by Nasreddine Bencherchali (Nextron Systems), X__Junior (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_gpg4win_susp_location.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: File Encryption/Decryption Via Gpg4win From Suspicious Locations",
entity page, dataset version ref-4367bf93ac34, updated 2023-08-09T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/e1e0b7d7-e10b-4ee4-ac49-a4bda05d320d (accessed 2026-11-03).
Underlying source: SigmaHQ rule e1e0b7d7-e10b-4ee4-ac49-a4bda05d320d, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.