Skip to content

Siemphony is in beta and still being built. How a rule earns its badge.

Siemphony’s repertoire

File encrypted with a symmetric cipher on the command line

Siemphony@siemphonylowT1048.001unverified
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 description

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

Sentinel · 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.

Log in to react
Not yet reported on

Nobody has run this in a real environment and said what happened.

Verdicts from engineers who deployed it

0 cast

No 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.