Skip to content

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

Siemphony’s repertoire

Detect encoding or encryption of files under sensitive paths

Siemphony@siemphonylowT1027unverified
MITRE's Linux analytic describes base64, openssl and similar tools being used to encode or encrypt files after staging or enumeration, so this rule pairs the tool invocation with the file it was pointed at, both read off the same CommandLine field of one execve event. The tool terms and the path list are MITRE's CommandRegex and SensitivePathList knobs, populated here with openssl enc, symmetric gpg, base64 and xxd against /etc, /home, /root, /srv and /var/www; gzip and tar are deliberately absent because on any real host they would supply nearly every match. The decode and decrypt directions are filtered out, since that is the reverse behaviour and belongs to T1140. Three limits: a shell pipeline such as tar czf - /home | openssl enc leaves no path in openssl's own argv and is missed entirely, encoding of data held in a variable or a heredoc never touches a path either, and auditd emits nothing here until an execve syscall rule is loaded — the stock auditd install ships none, so this rule returns zero rows on an unconfigured host and zero rows means blind, not clean. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0378, 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 (((ProcessCommandLine contains "openssl enc" or ProcessCommandLine contains "gpg --symmetric" or ProcessCommandLine contains "gpg -c " or ProcessCommandLine contains "base64 " or ProcessCommandLine contains "xxd -p") and (ProcessCommandLine contains "/etc/" or ProcessCommandLine contains "/home/" or ProcessCommandLine contains "/root/" or ProcessCommandLine contains "/srv/" or ProcessCommandLine contains "/var/www/")) and not ((ProcessCommandLine contains " -d " or ProcessCommandLine contains "--decode" or ProcessCommandLine contains "--decrypt")))

Splunk · SPL

Run this as a search.

index=* (((CommandLine="*openssl enc*" OR CommandLine="*gpg --symmetric*" OR CommandLine="*gpg -c *" OR CommandLine="*base64 *" OR CommandLine="*xxd -p*") AND (CommandLine="*/etc/*" OR CommandLine="*/home/*" OR CommandLine="*/root/*" OR CommandLine="*/srv/*" OR CommandLine="*/var/www/*")) AND NOT ((CommandLine="* -d *" OR CommandLine="*--decode*" OR CommandLine="*--decrypt*")))

Elastic · ES|QL

Run this as a search.

FROM logs-*| WHERE (((TO_LOWER(process.command_line) LIKE "*openssl enc*" OR TO_LOWER(process.command_line) LIKE "*gpg --symmetric*" OR TO_LOWER(process.command_line) LIKE "*gpg -c *" OR TO_LOWER(process.command_line) LIKE "*base64 *" OR TO_LOWER(process.command_line) LIKE "*xxd -p*") AND (TO_LOWER(process.command_line) LIKE "*/etc/*" OR TO_LOWER(process.command_line) LIKE "*/home/*" OR TO_LOWER(process.command_line) LIKE "*/root/*" OR TO_LOWER(process.command_line) LIKE "*/srv/*" OR TO_LOWER(process.command_line) LIKE "*/var/www/*")) AND NOT ((TO_LOWER(process.command_line) LIKE "* -d *" OR TO_LOWER(process.command_line) LIKE "*--decode*" OR TO_LOWER(process.command_line) LIKE "*--decrypt*")))

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. -->  <rule id="100000" level="5">    <!-- Set <if_sid> to the decoder/base rule for linux so this only evaluates relevant events. -->    <field name="CommandLine" type="pcre2">(?i)(openssl enc|gpg --symmetric|gpg -c |base64 |xxd -p)</field>    <field name="CommandLine" type="pcre2">(?i)(/etc/|/home/|/root/|/srv/|/var/www/)</field>    <field name="CommandLine" negate="yes" type="pcre2">(?i)( -d |--decode|--decrypt)</field>    <description>Detect encoding or encryption of files under sensitive paths</description>    <mitre>      <id>T1027</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.