Skip to content

Siemphony is in beta and still being built. What ships today, and what does not.

Siemphony’s repertoire

Detect archiving utilities run with an archive-creating verb

Siemphony@siemphonymediumT1560.001verified in lab
Detects the process-creation half of MITRE's AN0831: an archiving utility invoked in a way that creates or encrypts an archive. The gate is the utility plus a create verb or flag, and never an archive extension on its own — 7-Zip and WinRAR append the extension themselves, so `7z.exe a stage C:\loot` writes stage.7z with no `.7z` on the command line, while `7z.exe x report.zip` and a user double-clicking a download into 7zFM.exe both carry one. Archive extraction, listing and testing are therefore deliberately out of scope: on a workstation fleet they outnumber archive creation by orders of magnitude and none of them is this technique. MITRE's SuspiciousExtensions knob belongs to the file-creation half of the analytic, not to this one; makecab and diantz are the exception, and are carried by their own switches (` /d `, ` /f `, `.ddf`) because they take no verb. The utility is matched on Image and on OriginalFileName so a renamed copy still lands, but OriginalFileName exists only on Sysmon EventID 1 — under Security 4688 that arm is always empty and only the Image path applies. The tar terms cover both the short and the GNU long options, since `tar.exe --create --file=loot.tar` contains none of the short ones; ` -c` is a two-character term and will also catch a WinRAR `-c-` or `-cfg-` switch on a non-creating command. certutil gets its own selection paired only with the encode switches, so `certutil -urlcache -split -f http://host/payload.zip`, which is Ingress Tool Transfer and not archiving, does not match by accident. Compress-Archive is matched on the command line alone because it is a cmdlet with no binary of its own. Security 4688 is off in a default install and needs Audit Process Creation, and its CommandLine field needs the separate Include command line in process creation events policy; without both this rule returns nothing because nothing is being collected. The file-write half of the analytic, and MITRE's FileSizeThresholdMB knob with it, has no process-creation equivalent, so a one-file compression looks the same here as a staged collection. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0298, 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 "\\7z.exe" or FolderPath endswith "\\7za.exe" or FolderPath endswith "\\7zg.exe" or FolderPath endswith "\\7zr.exe" or FolderPath endswith "\\7zfm.exe" or FolderPath endswith "\\rar.exe" or FolderPath endswith "\\winrar.exe" or FolderPath endswith "\\wzzip.exe" or FolderPath endswith "\\winzip32.exe" or FolderPath endswith "\\winzip64.exe" or FolderPath endswith "\\makecab.exe" or FolderPath endswith "\\diantz.exe" or FolderPath endswith "\\tar.exe") or (ProcessVersionInfoOriginalFileName =~ "7z.exe" or ProcessVersionInfoOriginalFileName =~ "7za.exe" or ProcessVersionInfoOriginalFileName =~ "Rar.exe" or ProcessVersionInfoOriginalFileName =~ "WinRAR.exe" or ProcessVersionInfoOriginalFileName =~ "tar.exe" or ProcessVersionInfoOriginalFileName =~ "makecab.exe")) and (ProcessCommandLine contains " a " or ProcessCommandLine contains " u " or ProcessCommandLine contains " -hp" or ProcessCommandLine contains " -mhe" or ProcessCommandLine contains " -r0" or ProcessCommandLine contains " -t7z" or ProcessCommandLine contains " -c" or ProcessCommandLine contains " --create" or ProcessCommandLine contains " --xz" or ProcessCommandLine contains " --gzip" or ProcessCommandLine contains " /d " or ProcessCommandLine contains " /f " or ProcessCommandLine contains ".ddf")) or (FolderPath endswith "\\certutil.exe" and (ProcessCommandLine contains "-encode" or ProcessCommandLine contains "/encode" or ProcessCommandLine contains "-encodehex"))) or ProcessCommandLine contains "Compress-Archive")

Splunk · SPL

Run this as a search.

index=* (((((Image="*\\7z.exe" OR Image="*\\7za.exe" OR Image="*\\7zg.exe" OR Image="*\\7zr.exe" OR Image="*\\7zfm.exe" OR Image="*\\rar.exe" OR Image="*\\winrar.exe" OR Image="*\\wzzip.exe" OR Image="*\\winzip32.exe" OR Image="*\\winzip64.exe" OR Image="*\\makecab.exe" OR Image="*\\diantz.exe" OR Image="*\\tar.exe") OR (OriginalFileName="7z.exe" OR OriginalFileName="7za.exe" OR OriginalFileName="Rar.exe" OR OriginalFileName="WinRAR.exe" OR OriginalFileName="tar.exe" OR OriginalFileName="makecab.exe")) AND (CommandLine="* a *" OR CommandLine="* u *" OR CommandLine="* -hp*" OR CommandLine="* -mhe*" OR CommandLine="* -r0*" OR CommandLine="* -t7z*" OR CommandLine="* -c*" OR CommandLine="* --create*" OR CommandLine="* --xz*" OR CommandLine="* --gzip*" OR CommandLine="* /d *" OR CommandLine="* /f *" OR CommandLine="*.ddf*")) OR (Image="*\\certutil.exe" AND (CommandLine="*-encode*" OR CommandLine="*/encode*" OR CommandLine="*-encodehex*"))) OR CommandLine="*Compress-Archive*")

Elastic · ES|QL

Run this as a search.

FROM logs-*| WHERE (((((TO_LOWER(process.executable) LIKE "*\\\\7z.exe" OR TO_LOWER(process.executable) LIKE "*\\\\7za.exe" OR TO_LOWER(process.executable) LIKE "*\\\\7zg.exe" OR TO_LOWER(process.executable) LIKE "*\\\\7zr.exe" OR TO_LOWER(process.executable) LIKE "*\\\\7zfm.exe" OR TO_LOWER(process.executable) LIKE "*\\\\rar.exe" OR TO_LOWER(process.executable) LIKE "*\\\\winrar.exe" OR TO_LOWER(process.executable) LIKE "*\\\\wzzip.exe" OR TO_LOWER(process.executable) LIKE "*\\\\winzip32.exe" OR TO_LOWER(process.executable) LIKE "*\\\\winzip64.exe" OR TO_LOWER(process.executable) LIKE "*\\\\makecab.exe" OR TO_LOWER(process.executable) LIKE "*\\\\diantz.exe" OR TO_LOWER(process.executable) LIKE "*\\\\tar.exe") OR (TO_LOWER(process.pe.original_file_name) == "7z.exe" OR TO_LOWER(process.pe.original_file_name) == "7za.exe" OR TO_LOWER(process.pe.original_file_name) == "rar.exe" OR TO_LOWER(process.pe.original_file_name) == "winrar.exe" OR TO_LOWER(process.pe.original_file_name) == "tar.exe" OR TO_LOWER(process.pe.original_file_name) == "makecab.exe")) AND (TO_LOWER(process.command_line) LIKE "* a *" OR TO_LOWER(process.command_line) LIKE "* u *" OR TO_LOWER(process.command_line) LIKE "* -hp*" OR TO_LOWER(process.command_line) LIKE "* -mhe*" OR TO_LOWER(process.command_line) LIKE "* -r0*" OR TO_LOWER(process.command_line) LIKE "* -t7z*" OR TO_LOWER(process.command_line) LIKE "* -c*" OR TO_LOWER(process.command_line) LIKE "* --create*" OR TO_LOWER(process.command_line) LIKE "* --xz*" OR TO_LOWER(process.command_line) LIKE "* --gzip*" OR TO_LOWER(process.command_line) LIKE "* /d *" OR TO_LOWER(process.command_line) LIKE "* /f *" OR TO_LOWER(process.command_line) LIKE "*.ddf*")) OR (TO_LOWER(process.executable) LIKE "*\\\\certutil.exe" AND (TO_LOWER(process.command_line) LIKE "*-encode*" OR TO_LOWER(process.command_line) LIKE "*/encode*" OR TO_LOWER(process.command_line) LIKE "*-encodehex*"))) OR TO_LOWER(process.command_line) LIKE "*compress-archive*")

Wazuh · XML rule

Deploy to your manager — this is a rule, not a search.

<group name="sigma,windows,process_creation,">  <!-- Rule ids must be unique on your manager; 100000+ is the user range. -->  <!-- 4 rules: the Sigma condition ORs across different fields,       which one rule cannot express. Any one matching is a hit. -->  <rule id="100000" level="7">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="Image" type="pcre2">(?i)(\\7z\.exe$|\\7za\.exe$|\\7zg\.exe$|\\7zr\.exe$|\\7zfm\.exe$|\\rar\.exe$|\\winrar\.exe$|\\wzzip\.exe$|\\winzip32\.exe$|\\winzip64\.exe$|\\makecab\.exe$|\\diantz\.exe$|\\tar\.exe$)</field>    <field name="CommandLine" type="pcre2">(?i)( a | u | -hp| -mhe| -r0| -t7z| -c| --create| --xz| --gzip| /d | /f |\.ddf)</field>    <description>Detect archiving utilities run with an archive-creating verb (1/4)</description>    <mitre>      <id>T1560.001</id>    </mitre>  </rule>   <rule id="100001" level="7">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="OriginalFileName" type="pcre2">(?i)(^7z\.exe$|^7za\.exe$|^Rar\.exe$|^WinRAR\.exe$|^tar\.exe$|^makecab\.exe$)</field>    <field name="CommandLine" type="pcre2">(?i)( a | u | -hp| -mhe| -r0| -t7z| -c| --create| --xz| --gzip| /d | /f |\.ddf)</field>    <description>Detect archiving utilities run with an archive-creating verb (2/4)</description>    <mitre>      <id>T1560.001</id>    </mitre>  </rule>   <rule id="100002" level="7">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="Image" type="pcre2">(?i)\\certutil\.exe$</field>    <field name="CommandLine" type="pcre2">(?i)(-encode|/encode|-encodehex)</field>    <description>Detect archiving utilities run with an archive-creating verb (3/4)</description>    <mitre>      <id>T1560.001</id>    </mitre>  </rule>   <rule id="100003" level="7">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="CommandLine" type="pcre2">(?i)Compress-Archive</field>    <description>Detect archiving utilities run with an archive-creating verb (4/4)</description>    <mitre>      <id>T1560.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.