Response playbooks, investigation guides, and Atomic Red Team tests are Pro-only. Upgrade to unlock the full detection package for THREAT-Exfiltration-GPGAsymmetricArchiveExfil.
Upgrade to ProDetect Asymmetric Public-Key Encrypted Archive Exfiltration (GPG/OpenSSL/age) in Sumo Logic CSE
Rather than relying on a shared secret or a symmetric session key that could be recovered from memory forensics or a network capture, some adversaries and malicious insiders encrypt staged data with an attacker-controlled public key before it ever leaves the host. Tooling observed for this includes GPG/GPG2 invoked with `--recipient`/`-r` against a hardcoded or embedded public key (as opposed to `--symmetric`/`-c`, which uses a shared passphrase), `openssl smime -encrypt` against a recipient certificate, and the modern `age` utility invoked with `-r`/`--recipient` rather than `-p`/`--passphrase`. Because only the holder of the corresponding private key can ever decrypt the resulting `.gpg`/`.pgp`/`.p7m`/`.age` file, this defeats DLP content inspection and gives defenders no way to recover the plaintext even with full access to the transfer, unlike a password-protected archive whose passphrase might be brute-forced or recovered from the intruder's session. The encrypted archive is then moved off-host over a generic channel — a `curl`/`Invoke-WebRequest` upload to a file-sharing, paste, or webhook endpoint, or a drop into cloud storage — that is deliberately decoupled from any tasking/C2 channel already in use, so the exfiltration blends in with ordinary outbound HTTPS traffic. This pattern shows up both in insider IP theft (an employee quietly PGP-encrypting a document set to their personal key before uploading it) and in ransomware-affiliate double-extortion tooling that stages and asymmetrically encrypts a batch of high-value files immediately before the encryptor payload runs.
MITRE ATT&CK
- Tactic
- Exfiltration
Sumo Detection Query
(_sourceCategory="windows/sysmon" OR _sourceCategory="endpoint/windows/sysmon") EventCode=1
(Image matches "*\\gpg.exe" OR Image matches "*\\gpg2.exe" OR Image matches "*\\openssl.exe" OR Image matches "*\\age.exe")
(CommandLine matches "*--recipient*" OR CommandLine matches "*-r *" OR CommandLine matches "*smime*")
!(CommandLine matches "*--symmetric*" OR CommandLine matches "*--passphrase*" OR CommandLine matches "*-c *")
| eval Signal="AsymmetricEncryptionInvoked", RiskScore=55
| fields _messagetime, ComputerName, User, Image, CommandLine, Signal, RiskScore
| union (
(_sourceCategory="windows/sysmon" OR _sourceCategory="endpoint/windows/sysmon") EventCode=3
(DestinationPort=443 OR DestinationPort=80 OR DestinationPort=21)
| timeslice 10m
| count AS ConnectionCount BY ComputerName, User, Image, DestinationIp, DestinationPort, _timeslice
| eval Signal="PostEncryptionUpload", RiskScore=85
| fields _timeslice, ComputerName, User, Image, DestinationIp, DestinationPort, ConnectionCount, Signal, RiskScore
)
| sort by RiskScore desc Sumo Logic search combining Sysmon process creation (EventCode=1) for gpg/openssl/age invoked with a public-key recipient flag rather than a symmetric passphrase flag with Sysmon network connection (EventCode=3) events showing outbound HTTP(S)/FTP connections in the following 10-minute timeslice, matching the asymmetric-encryption-then-transfer pattern.
Data Sources
Required Tables
False Positives & Tuning
- Release automation matching the recipient-flag pattern but with no subsequent network signal outside a known CI/CD egress range — suppress by requiring correlation with the PostEncryptionUpload signal before alerting
- Backup jobs producing regular connection bursts to a known offsite IP — maintain a Sumo Logic lookup table of authorized backup destination IPs and exclude matches from DestinationIp
Other platforms for THREAT-Exfiltration-GPGAsymmetricArchiveExfil
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1Simulate GPG Public-Key Encryption of Staged Files
Expected signal: Sysmon Event ID 1 for gpg.exe launched with --recipient and --encrypt in the command line; Sysmon Event ID 11 for the resulting .gpg output files.
- Test 2Simulate Bulk Asymmetric Staging
Expected signal: Sysmon Event ID 11 showing six .gpg files created by the same process within a 15-minute window.
- Test 3Simulate Post-Encryption Upload of an Asymmetrically-Encrypted Archive
Expected signal: Sysmon Event ID 11 for the .gpg file creation followed within minutes by Sysmon Event ID 3 showing an outbound HTTPS connection to the test endpoint from powershell.exe.
Unlock playbooks & atomic tests with Pro
Get the full detection package for THREAT-Exfiltration-GPGAsymmetricArchiveExfil — response playbook and atomic red team tests, plus investigation guidance and hunting queries.
df00tech Pro — £29/user/month
Related Detections
Tactic Hub
Detection Variants (1)
Different telemetry and tradecraft for the same technique — pick the one that matches the data you collect.