cscli scenarios install sigmahq/proc_creation_win_gpg4win_susp_location
1type: trigger2name: sigmahq/proc_creation_win_gpg4win_susp_location3description: |4 Detects usage of Gpg4win to encrypt/decrypt files located in potentially suspicious locations.5filter: |6 (evt.Meta.service == 'sysmon' && evt.Parsed.EventID == '1') && ((evt.Parsed.Image endsWith '\\gpg.exe' || evt.Parsed.Image endsWith '\\gpg2.exe' || evt.Parsed.Product == 'GNU Privacy Guard (GnuPG)' || evt.Parsed.Description == 'GnuPG’s OpenPGP tool') && evt.Parsed.CommandLine contains '-passphrase' && (evt.Parsed.CommandLine contains ':\\PerfLogs\\' || evt.Parsed.CommandLine contains ':\\Temp\\' || evt.Parsed.CommandLine contains ':\\Users\\Public\\' || evt.Parsed.CommandLine contains ':\\Windows\\Temp\\' || evt.Parsed.CommandLine contains '\\AppData\\Local\\Temp\\' || evt.Parsed.CommandLine contains '\\AppData\\Roaming\\'))7blackhole: 2m8#status: test9labels:10 service: windows11 confidence: 112 spoofable: 013 classification:1415 label: "File Encryption/Decryption Via Gpg4win From Suspicious Locations"16 behavior : "windows:audit"17 remediation: false1819scope:20 type: ParentProcessId21 expression: evt.Parsed.ParentProcessId2223