Skip to content

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

Siemphony’s repertoire

Document or archive accessed inside a hidden administrative share

Siemphony@siemphonymediumT1039unverified
Covers the share-access leg of AN1145 on the only field set that carries it: Security EventID 5145 records the share, the file within the share and the account that asked for it, so a request for a document, mailbox archive or compressed container inside a hidden administrative share is visible as one event. The share list is MITRE's ShareName knob populated here with the default hidden shares, and the file list stands in for "files of interest", which the analytic describes but does not enumerate. Two things the analytic asks for are not available: 5145 is written by the server hosting the share, so the local process that did the reading is nowhere in the event and the ProcessName knob cannot be applied, and 5145 does not distinguish a read from a write in any form that survives normalisation consistently — a site whose collector preserves the raw `AccessList` codes can add ReadData to tighten this, but the rule does not depend on it. The Sysmon EventID 11 leg of the same analytic is not authored here: file creation records the local destination of a copy, not the network source, so it cannot express reading from a share at all. Requires the *Audit Detailed File Share* subcategory, which is off in a clean install and in the Microsoft and CIS baselines, so an empty result means blind rather than quiet. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0410, 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.

SecurityEvent| where ((EventID == 5145 and (ShareName endswith "\\C$" or ShareName endswith "\\ADMIN$" or ShareName endswith "\\D$" or ShareName endswith "\\E$")) and (RelativeTargetName endswith ".doc" or RelativeTargetName endswith ".docx" or RelativeTargetName endswith ".xls" or RelativeTargetName endswith ".xlsx" or RelativeTargetName endswith ".ppt" or RelativeTargetName endswith ".pptx" or RelativeTargetName endswith ".pdf" or RelativeTargetName endswith ".zip" or RelativeTargetName endswith ".7z" or RelativeTargetName endswith ".rar" or RelativeTargetName endswith ".pst" or RelativeTargetName endswith ".ost" or RelativeTargetName endswith ".kdbx"))

Splunk · SPL

Run this as a search.

index=* ((EventID="5145" AND (ShareName="*\\C$" OR ShareName="*\\ADMIN$" OR ShareName="*\\D$" OR ShareName="*\\E$")) AND (RelativeTargetName="*.doc" OR RelativeTargetName="*.docx" OR RelativeTargetName="*.xls" OR RelativeTargetName="*.xlsx" OR RelativeTargetName="*.ppt" OR RelativeTargetName="*.pptx" OR RelativeTargetName="*.pdf" OR RelativeTargetName="*.zip" OR RelativeTargetName="*.7z" OR RelativeTargetName="*.rar" OR RelativeTargetName="*.pst" OR RelativeTargetName="*.ost" OR RelativeTargetName="*.kdbx"))

Elastic · ES|QL

Run this as a search.

FROM logs-*| WHERE ((event.code == 5145 AND (TO_LOWER(ShareName) LIKE "*\\\\c$" OR TO_LOWER(ShareName) LIKE "*\\\\admin$" OR TO_LOWER(ShareName) LIKE "*\\\\d$" OR TO_LOWER(ShareName) LIKE "*\\\\e$")) AND (TO_LOWER(RelativeTargetName) LIKE "*.doc" OR TO_LOWER(RelativeTargetName) LIKE "*.docx" OR TO_LOWER(RelativeTargetName) LIKE "*.xls" OR TO_LOWER(RelativeTargetName) LIKE "*.xlsx" OR TO_LOWER(RelativeTargetName) LIKE "*.ppt" OR TO_LOWER(RelativeTargetName) LIKE "*.pptx" OR TO_LOWER(RelativeTargetName) LIKE "*.pdf" OR TO_LOWER(RelativeTargetName) LIKE "*.zip" OR TO_LOWER(RelativeTargetName) LIKE "*.7z" OR TO_LOWER(RelativeTargetName) LIKE "*.rar" OR TO_LOWER(RelativeTargetName) LIKE "*.pst" OR TO_LOWER(RelativeTargetName) LIKE "*.ost" OR TO_LOWER(RelativeTargetName) LIKE "*.kdbx"))

Wazuh · XML rule

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

<group name="sigma,windows,">  <!-- Rule ids must be unique on your manager; 100000+ is the user range. -->  <rule id="100000" level="7">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="EventID" type="pcre2">(?i)^5145$</field>    <field name="ShareName" type="pcre2">(?i)(\\C\$$|\\ADMIN\$$|\\D\$$|\\E\$$)</field>    <field name="RelativeTargetName" type="pcre2">(?i)(\.doc$|\.docx$|\.xls$|\.xlsx$|\.ppt$|\.pptx$|\.pdf$|\.zip$|\.7z$|\.rar$|\.pst$|\.ost$|\.kdbx$)</field>    <description>Document or archive accessed inside a hidden administrative share</description>    <mitre>      <id>T1039</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.