Skip to content

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

Siemphony’s repertoire

Exchange mailbox delegate permission granted from a command line

Siemphony@siemphonylowT1098.002unverified
Matches process creation where the command line carries one of the Exchange cmdlets that give another principal standing access to a mailbox — the mechanism AN1052 describes, and the one behind the Default and Anonymous folder grants used to keep reading a victim's mail after the initial compromise. The whole match is a single CommandLine gate on the cmdlet name, so it holds whichever shell or script host runs it; the analytic's PowerShellCmdletFilter knob is where that list is widened or narrowed, populated here with the mailbox, recipient, folder and Send-As delegation cmdlets. Two limits are structural rather than tunable: a cmdlet typed inside an interactive Exchange Management Shell or an implicitly remoted session is never an argument to a process, so only -Command style invocations that carry the cmdlet name in the argument string are visible at all — a powershell.exe -File run of the same script never shows the cmdlet, and -EncodedCommand hides it behind base64 — and the authoritative record of a delegation change is the Exchange admin audit log or the Microsoft 365 unified audit log, neither of which is a log source in this brief. The brief maps Security EventID 4688 onto the Sysmon-shaped process_creation category and this rule is written in that vocabulary, gating only on CommandLine, which both feeds carry; a 4688 feed needs both Audit Process Creation and the separate Include command line in process creation events policy enabled first, or CommandLine is never populated and the rule returns zero rows for the wrong reason. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0373, 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 "Add-MailboxPermission" or ProcessCommandLine contains "Add-RecipientPermission" or ProcessCommandLine contains "Add-MailboxFolderPermission" or ProcessCommandLine contains "Set-MailboxFolderPermission" or ProcessCommandLine contains "Add-ADPermission")

Splunk · SPL

Run this as a search.

index=* (CommandLine="*Add-MailboxPermission*" OR CommandLine="*Add-RecipientPermission*" OR CommandLine="*Add-MailboxFolderPermission*" OR CommandLine="*Set-MailboxFolderPermission*" OR CommandLine="*Add-ADPermission*")

Elastic · ES|QL

Run this as a search.

FROM logs-*| WHERE (TO_LOWER(process.command_line) LIKE "*add-mailboxpermission*" OR TO_LOWER(process.command_line) LIKE "*add-recipientpermission*" OR TO_LOWER(process.command_line) LIKE "*add-mailboxfolderpermission*" OR TO_LOWER(process.command_line) LIKE "*set-mailboxfolderpermission*" OR TO_LOWER(process.command_line) LIKE "*add-adpermission*")

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. -->  <rule id="100000" level="5">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="CommandLine" type="pcre2">(?i)(Add-MailboxPermission|Add-RecipientPermission|Add-MailboxFolderPermission|Set-MailboxFolderPermission|Add-ADPermission)</field>    <description>Exchange mailbox delegate permission granted from a command line</description>    <mitre>      <id>T1098.002</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.