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 CrowdStrike LogScale
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
LogScale Detection Query
#event_simpleName=ProcessRollup2
| ImageFileName=/(?i)(gpg2?|openssl|age)\.exe$/
| CommandLine=/(?i)(--recipient|-r\s|smime)/
| CommandLine!=/(?i)(--symmetric|--passphrase|-c\s)/
| Signal := "AsymmetricEncryptionInvoked"
| RiskScore := 55
| groupBy([ComputerName, UserName, ImageFileName, CommandLine, Signal], function=[count(as=EventCount), max(field=RiskScore, as=MaxRisk)])
| sort(field=MaxRisk, order=desc) CrowdStrike LogScale (Falcon) detection query using ProcessRollup2 endpoint telemetry to identify gpg/gpg2/openssl/age invoked with a public-key recipient flag rather than a symmetric passphrase flag — the setup step for asymmetric-encrypted, attacker-only-decryptable exfiltration. Should be paired with a follow-up NetworkConnectIP4 query on the same ComputerName/ImageFileName within 10-15 minutes to confirm the subsequent off-host transfer.
Data Sources
Required Tables
False Positives & Tuning
- Release/build automation matching the recipient-flag pattern with no subsequent network fan-out — require correlation with a follow-up NetworkConnectIP4 query before escalating to critical
- Approved backup/compliance agent binaries deployed under a known service account with a documented recipient key ID — use Falcon host groups to tag known backup infrastructure and exclude matching ComputerName values
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.