Skip to content

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

Siemphony’s repertoire

Script host or signed proxy binary connecting to mail ports

Siemphony@siemphonymediumT1071.003unverified
AN0379's Windows leg reduced to what a single Sysmon EventID 3 record can carry: a scripting engine or signed proxy binary — never a mail client — opening an outbound connection to an SMTP, IMAP or POP3 service port. `Initiated`, `Image` and `DestinationPort` are all network-connection fields, so the whole selection evaluates on one event and no process-creation field is mixed in. It sees the connection and nothing of its contents, so it cannot separate mail-protocol C2 from a script that legitimately sends mail: MITRE's AttachmentType knob, and the outbound-to-inbound ratio idea AN0382 builds on, both need Zeek smtp.log, which this log source is not. The port list is MITRE's DestPortFilter knob populated here with the standard submission, relay and retrieval ports, and the process list is the ProcessImageName knob populated with script hosts and download-capable signed binaries. Requires Sysmon installed with network-connection logging enabled and not trimmed to a handful of ports — it is absent from a bare Windows install and filtered hard in most shipped configurations, so an empty result means blind, not clean. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0135, not hand-written and not tested by its author. Any lab result is on this rule's own page.Full description

The detection

The 2 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

Splunk · SPL

Run this as a search.

index=* (Initiated="true" AND (Image="*\\powershell.exe" OR Image="*\\pwsh.exe" OR Image="*\\wscript.exe" OR Image="*\\cscript.exe" OR Image="*\\mshta.exe" OR Image="*\\rundll32.exe" OR Image="*\\regsvr32.exe" OR Image="*\\certutil.exe" OR Image="*\\curl.exe" OR Image="*\\python.exe") AND (DestinationPort="25" OR DestinationPort="465" OR DestinationPort="587" OR DestinationPort="110" OR DestinationPort="995" OR DestinationPort="143" OR DestinationPort="993"))

Wazuh · XML rule

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

<group name="sigma,windows,network_connection,">  <!-- 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="Initiated" type="pcre2">(?i)^true$</field>    <field name="Image" type="pcre2">(?i)(\\powershell\.exe$|\\pwsh\.exe$|\\wscript\.exe$|\\cscript\.exe$|\\mshta\.exe$|\\rundll32\.exe$|\\regsvr32\.exe$|\\certutil\.exe$|\\curl\.exe$|\\python\.exe$)</field>    <field name="DestinationPort" type="pcre2">(?i)(^25$|^465$|^587$|^110$|^995$|^143$|^993$)</field>    <description>Script host or signed proxy binary connecting to mail ports</description>    <mitre>      <id>T1071.003</id>    </mitre>  </rule></group>

Sentinel · KQL

Run this as a search.

Sentinel cannot express this construct. `Initiated` has no Sentinel column: Defender expresses connection direction in `ActionType`, not as a boolean column, so `Initiated` cannot be renamed — it needs a different predicate. The Sigma source is on the first tab, unchanged.

Elastic · ES|QL

Run this as a search.

Elastic cannot express this construct. `Initiated` has no ECS field: ECS expresses connection direction as `network.direction` with values like `egress`, not as a boolean, so `Initiated` needs a different predicate rather than a rename. The Sigma source is on the first tab, unchanged.

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.