Skip to content

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

Siemphony’s repertoire

attrib.exe or PowerShell sets the Hidden attribute on a file

Siemphony@siemphonylowT1564.001unverified
AN0091 names two Windows mechanisms: attrib.exe setting the hidden attribute, and PowerShell commands doing the same. Both are single-event, literal observables on Sysmon EventID 1 and are what this rule matches -- attrib.exe invoked with the +h flag, or powershell.exe/pwsh.exe whose command line names both Attributes and Hidden, the shape of Set-ItemProperty -Name Attributes -Value Hidden and the equivalent (Get-Item ...).Attributes = 'Hidden' idiom. AN0091's other defender view -- "creating files with ADS" -- is deliberately left out: alternate data streams are a distinct concealment mechanism already covered by the sibling T1564.004 rule, and folding it in here would duplicate that selection rather than add a new one. AN0091's second logsource, Sysmon EventID 11 (file_event), is also left out: it carries only TargetFilename and the writing process, with no field for a file's attribute bits, so it can show a file was created but never that it was marked hidden. The other two analytics in this strategy are not attempted. AN0092's Linux observable -- a file or directory created with a leading '.' -- is real on the wire but not anomalous on its own: modern desktops and dev environments write dot-prefixed files constantly as ordinary behaviour (shell history, editor swap files, application caches, dotfile managers), which is exactly what MITRE's own DirectoryScope knob concedes by naming .ssh and .config as expected noise -- and DirectoryScope supplies no directory list to scope it with, so populating one here would be an invented value attributed to a MITRE knob that carries none. AN0093's macOS logsource ({product: macos, service: unifiedlog}) has no established Sigma field vocabulary anywhere in this corpus. Requires Sysmon installed and configured to log EventID 1 with CommandLine capture, which is Sysmon's default (unlike Security 4688, no separate audit policy is needed). UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0032, 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 "\\attrib.exe" and ProcessCommandLine contains "+h") or ((FolderPath endswith "\\powershell.exe" or FolderPath endswith "\\pwsh.exe") and (ProcessCommandLine contains "attributes" and ProcessCommandLine contains "hidden")))

Splunk · SPL

Run this as a search.

index=* ((Image="*\\attrib.exe" AND CommandLine="*+h*") OR ((Image="*\\powershell.exe" OR Image="*\\pwsh.exe") AND (CommandLine="*attributes*" AND CommandLine="*hidden*")))

Elastic · ES|QL

Run this as a search.

FROM logs-*| WHERE ((TO_LOWER(process.executable) LIKE "*\\\\attrib.exe" AND TO_LOWER(process.command_line) LIKE "*+h*") OR ((TO_LOWER(process.executable) LIKE "*\\\\powershell.exe" OR TO_LOWER(process.executable) LIKE "*\\\\pwsh.exe") AND (TO_LOWER(process.command_line) LIKE "*attributes*" AND TO_LOWER(process.command_line) LIKE "*hidden*")))

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. -->  <!-- 2 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 windows so this only evaluates relevant events. -->    <field name="Image" type="pcre2">(?i)\\attrib\.exe$</field>    <field name="CommandLine" type="pcre2">(?i)\+h</field>    <description>attrib.exe or PowerShell sets the Hidden attribute on a file (1/2)</description>    <mitre>      <id>T1564.001</id>    </mitre>  </rule>   <rule id="100001" level="5">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="Image" type="pcre2">(?i)(\\powershell\.exe$|\\pwsh\.exe$)</field>    <field name="CommandLine" type="pcre2">(?i)(?=.*(?:attributes))(?=.*(?:hidden)).*</field>    <description>attrib.exe or PowerShell sets the Hidden attribute on a file (2/2)</description>    <mitre>      <id>T1564.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.