File encrypted with a symmetric cipher on the command line
A match is the encryption step alone. This rule sees no protocol, no destination and no transferred byte, so a hit is not by itself evidence that anything left the host, and because the same subcommands also decrypt, an inbound file being unpacked matches identically to data being staged for exfiltration. What it does detect is the manual symmetric step AN1390 pairs with an outbound transfer — `openssl enc` or the bare `openssl <cipher>` shorthand, `gpg --symmetric` or `gpg -c`, or an explicit AES, RC4, 3DES or ChaCha20 algorithm name — which is the half of the analytic a single process-creation event can carry; Sigma has no cross-event window, so MITRE's FileTransferIndicator knob has no form in the rule and the transfer leg must be confirmed from network telemetry before a hit means exfiltration rather than local file encryption. The cipher-name selection deliberately carries no process anchor so that a renamed binary or a wrapper script still matches on the algorithm string, at the cost of matching any command line that names a cipher, including TLS and VPN configuration. Written against the `process_creation` category for Linux, whose `CommandLine` field is a normalised join of the auditd SYSCALL and EXECVE records — a raw auditd feed keeps the arguments in a separate EXECVE record and needs that mapping applied before this rule can match at all. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0503, not hand-written and not tested by its author. Any lab result is on this rule's own page.Full descriptionShow less
The detection
The 4 SIEM queries below are previews produced by Siemphony’s own translator, not pySigma, and none has been executed against a real backend — review before you deploy.
detection.yml
title: File encrypted with a symmetric cipher on the command lineid: 9fe7b63a-a4ac-4299-bcb4-f7a7d40cdff5status: experimentaldescription: | A match is the encryption step alone. This rule sees no protocol, no destination and no transferred byte, so a hit is not by itself evidence that anything left the host, and because the same subcommands also decrypt, an inbound file being unpacked matches identically to data being staged for exfiltration. What it does detect is the manual symmetric step AN1390 pairs with an outbound transfer — `openssl enc` or the bare `openssl <cipher>` shorthand, `gpg --symmetric` or `gpg -c`, or an explicit AES, RC4, 3DES or ChaCha20 algorithm name — which is the half of the analytic a single process-creation event can carry; Sigma has no cross-event window, so MITRE's FileTransferIndicator knob has no form in the rule and the transfer leg must be confirmed from network telemetry before a hit means exfiltration rather than local file encryption. The cipher-name selection deliberately carries no process anchor so that a renamed binary or a wrapper script still matches on the algorithm string, at the cost of matching any command line that names a cipher, including TLS and VPN configuration. Written against the `process_creation` category for Linux, whose `CommandLine` field is a normalised join of the auditd SYSCALL and EXECVE records — a raw auditd feed keeps the arguments in a separate EXECVE record and needs that mapping applied before this rule can match at all. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0503, not hand-written and not tested by its author. Any lab result is on this rule's own page.references: - https://attack.mitre.org/techniques/T1048/001 - https://attack.mitre.org/detectionstrategies/DET0503author: Siemphony pipeline (machine-derived from MITRE ATT&CK v19.2)date: 2026-08-16tags: - attack.exfiltration - attack.t1048.001logsource: category: process_creation product: linuxdetection: selection_openssl: Image|endswith: '/openssl' CommandLine|contains: ' enc' selection_gpg: Image|endswith: - '/gpg' - '/gpg1' - '/gpg2' CommandLine|contains: - '--symmetric' - '--cipher-algo' - ' -c ' selection_cipher_name: CommandLine|contains: - 'aes-128-cbc' - 'aes-192-cbc' - 'aes-256-cbc' - 'aes-256-ctr' - 'aes-256-gcm' - '-aes128' - '-aes192' - '-aes256' - 'chacha20' - '-des3' - '-rc4' - ' rc4 ' condition: selection_openssl or selection_gpg or selection_cipher_namefalsepositives: - "Container entrypoints and cloud-init provisioning that unseal a bundled config at start-up with openssl enc -d -aes-256-cbc. On any containerised estate this fires on every container start and every autoscaling event and is the loudest match by a wide margin, which is what the level below reflects." - "Backup and database-export scripts that pipe a dump through openssl enc -aes-256-cbc before shipping it off the host, on a schedule and on every server, where only the destination separates the event from staged exfiltration. Pin the allowed script path and account rather than dropping the cipher terms." - "Configuration-management and CI pipelines that seal or unseal a secrets file at deploy time with openssl enc or gpg --symmetric, producing a match on every build agent on every deployment." - "Users protecting a document with a passphrase before sending it to an external party, which is the intended purpose of gpg --symmetric, and support staff decrypting one that arrived the same way." - "Command lines that name a cipher without encrypting a file at all, such as curl, openvpn or stunnel invocations pinning an AES or ChaCha20 suite, and distribution package builds or regression suites that walk every cipher in the list within a single job."level: lowSentinel · KQL
Run this as a search.
DeviceProcessEvents| where (((FolderPath endswith "/openssl" and ProcessCommandLine contains " enc") or ((FolderPath endswith "/gpg" or FolderPath endswith "/gpg1" or FolderPath endswith "/gpg2") and (ProcessCommandLine contains "--symmetric" or ProcessCommandLine contains "--cipher-algo" or ProcessCommandLine contains " -c "))) or (ProcessCommandLine contains "aes-128-cbc" or ProcessCommandLine contains "aes-192-cbc" or ProcessCommandLine contains "aes-256-cbc" or ProcessCommandLine contains "aes-256-ctr" or ProcessCommandLine contains "aes-256-gcm" or ProcessCommandLine contains "-aes128" or ProcessCommandLine contains "-aes192" or ProcessCommandLine contains "-aes256" or ProcessCommandLine contains "chacha20" or ProcessCommandLine contains "-des3" or ProcessCommandLine contains "-rc4" or ProcessCommandLine contains " rc4 "))
Splunk · SPL
Run this as a search.
index=* (((Image="*/openssl" AND CommandLine="* enc*") OR ((Image="*/gpg" OR Image="*/gpg1" OR Image="*/gpg2") AND (CommandLine="*--symmetric*" OR CommandLine="*--cipher-algo*" OR CommandLine="* -c *"))) OR (CommandLine="*aes-128-cbc*" OR CommandLine="*aes-192-cbc*" OR CommandLine="*aes-256-cbc*" OR CommandLine="*aes-256-ctr*" OR CommandLine="*aes-256-gcm*" OR CommandLine="*-aes128*" OR CommandLine="*-aes192*" OR CommandLine="*-aes256*" OR CommandLine="*chacha20*" OR CommandLine="*-des3*" OR CommandLine="*-rc4*" OR CommandLine="* rc4 *"))Elastic · ES|QL
Run this as a search.
FROM logs-*| WHERE (((TO_LOWER(process.executable) LIKE "*/openssl" AND TO_LOWER(process.command_line) LIKE "* enc*") OR ((TO_LOWER(process.executable) LIKE "*/gpg" OR TO_LOWER(process.executable) LIKE "*/gpg1" OR TO_LOWER(process.executable) LIKE "*/gpg2") AND (TO_LOWER(process.command_line) LIKE "*--symmetric*" OR TO_LOWER(process.command_line) LIKE "*--cipher-algo*" OR TO_LOWER(process.command_line) LIKE "* -c *"))) OR (TO_LOWER(process.command_line) LIKE "*aes-128-cbc*" OR TO_LOWER(process.command_line) LIKE "*aes-192-cbc*" OR TO_LOWER(process.command_line) LIKE "*aes-256-cbc*" OR TO_LOWER(process.command_line) LIKE "*aes-256-ctr*" OR TO_LOWER(process.command_line) LIKE "*aes-256-gcm*" OR TO_LOWER(process.command_line) LIKE "*-aes128*" OR TO_LOWER(process.command_line) LIKE "*-aes192*" OR TO_LOWER(process.command_line) LIKE "*-aes256*" OR TO_LOWER(process.command_line) LIKE "*chacha20*" OR TO_LOWER(process.command_line) LIKE "*-des3*" OR TO_LOWER(process.command_line) LIKE "*-rc4*" OR TO_LOWER(process.command_line) LIKE "* rc4 *"))
Wazuh · XML rule
Deploy to your manager — this is a rule, not a search.
<group name="sigma,linux,process_creation,"> <!-- Rule ids must be unique on your manager; 100000+ is the user range. --> <!-- 3 rules: the Sigma condition ORs across different fields, which one rule cannot express. Any one matching is a hit. --> <rule id="100000" level="5"> <!-- Set <if_sid> to the decoder/base rule for linux so this only evaluates relevant events. --> <field name="Image" type="pcre2">(?i)/openssl$</field> <field name="CommandLine" type="pcre2">(?i) enc</field> <description>File encrypted with a symmetric cipher on the command line (1/3)</description> <mitre> <id>T1048.001</id> </mitre> </rule> <rule id="100001" level="5"> <!-- Set <if_sid> to the decoder/base rule for linux so this only evaluates relevant events. --> <field name="Image" type="pcre2">(?i)(/gpg$|/gpg1$|/gpg2$)</field> <field name="CommandLine" type="pcre2">(?i)(--symmetric|--cipher-algo| -c )</field> <description>File encrypted with a symmetric cipher on the command line (2/3)</description> <mitre> <id>T1048.001</id> </mitre> </rule> <rule id="100002" level="5"> <!-- Set <if_sid> to the decoder/base rule for linux so this only evaluates relevant events. --> <field name="CommandLine" type="pcre2">(?i)(aes-128-cbc|aes-192-cbc|aes-256-cbc|aes-256-ctr|aes-256-gcm|-aes128|-aes192|-aes256|chacha20|-des3|-rc4| rc4 )</field> <description>File encrypted with a symmetric cipher on the command line (3/3)</description> <mitre> <id>T1048.001</id> </mitre> </rule></group>
Verdicts · reactions · comments
Community
Verdicts from engineers who actually deployed it, and the conversation around it.
Nobody has run this in a real environment and said what happened.
Verdicts from engineers who deployed it
0 castNo verdicts reported yet. The first one is worth more than the tenth — say what you ran it against.
Log in to report a verdict.
Log in to join the discussion.
No comments yet. Someone who deploys this will have something to say about it.