Skip to content

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

Siemphony’s repertoire

Mavinject started with a DLL or import-descriptor injection switch

Siemphony@siemphonymediumT1218.013verified in lab
Matches process creation of the App-V injector carrying `/INJECTRUNNING` or `/HMODULE`, the two switches that make it write a DLL or an import-table entry into a process it did not start — step 1 of MITRE's chain and the only step that is a single event. Both names are matched because an `endswith` on `\mavinject.exe` alone is defeated by the 32-bit `mavinject32.exe` that ships with App-V and with Office Click-to-Run, and `windash` is applied because the argument parser accepts a hyphen wherever the documented form writes a slash. The rule is written in the Sysmon EventID 1 process-creation vocabulary (`Image`, `CommandLine`); the Security EventID 4688 feed the analytic names calls the same path `NewProcessName` and needs a field mapping first, plus *Audit Process Creation* and *Include command line in process creation events*, neither of which is on in a default install. The rest of the chain — the high-access handle, the module load inside the target and any follow-on egress — is a time-windowed correlation Sigma cannot express. Two limitations set the level. On any estate where App-V is published the client injects its subsystem DLLs through this exact command line on ordinary application launches, so the normal case there is a continuous benign match and the rule is only a high-confidence signal once those launches are allowlisted, or on an estate confirmed not to run App-V at all. And the match is on the image name, so copying the Microsoft-signed binary to any other filename defeats both selectors while leaving the technique's value intact — the switches are the rename-resistant half and would need a CommandLine-only companion rule. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0433, 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 "\\mavinject.exe" or FolderPath endswith "\\mavinject32.exe") and (ProcessCommandLine contains "-INJECTRUNNING" or ProcessCommandLine contains "/INJECTRUNNING" or ProcessCommandLine contains "–INJECTRUNNING" or ProcessCommandLine contains "—INJECTRUNNING" or ProcessCommandLine contains "―INJECTRUNNING" or ProcessCommandLine contains "-HMODULE" or ProcessCommandLine contains "/HMODULE" or ProcessCommandLine contains "–HMODULE" or ProcessCommandLine contains "—HMODULE" or ProcessCommandLine contains "―HMODULE"))

Splunk · SPL

Run this as a search.

index=* ((Image="*\\mavinject.exe" OR Image="*\\mavinject32.exe") AND (CommandLine="*-INJECTRUNNING*" OR CommandLine="*/INJECTRUNNING*" OR CommandLine="*–INJECTRUNNING*" OR CommandLine="*—INJECTRUNNING*" OR CommandLine="*―INJECTRUNNING*" OR CommandLine="*-HMODULE*" OR CommandLine="*/HMODULE*" OR CommandLine="*–HMODULE*" OR CommandLine="*—HMODULE*" OR CommandLine="*―HMODULE*"))

Elastic · ES|QL

Run this as a search.

FROM logs-*| WHERE ((TO_LOWER(process.executable) LIKE "*\\\\mavinject.exe" OR TO_LOWER(process.executable) LIKE "*\\\\mavinject32.exe") AND (TO_LOWER(process.command_line) LIKE "*-injectrunning*" OR TO_LOWER(process.command_line) LIKE "*/injectrunning*" OR TO_LOWER(process.command_line) LIKE "*–injectrunning*" OR TO_LOWER(process.command_line) LIKE "*—injectrunning*" OR TO_LOWER(process.command_line) LIKE "*―injectrunning*" OR TO_LOWER(process.command_line) LIKE "*-hmodule*" OR TO_LOWER(process.command_line) LIKE "*/hmodule*" OR TO_LOWER(process.command_line) LIKE "*–hmodule*" OR TO_LOWER(process.command_line) LIKE "*—hmodule*" OR TO_LOWER(process.command_line) LIKE "*―hmodule*"))

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="7">    <!-- Set <if_sid> to the decoder/base rule for windows so this only evaluates relevant events. -->    <field name="Image" type="pcre2">(?i)(\\mavinject\.exe$|\\mavinject32\.exe$)</field>    <field name="CommandLine" type="pcre2">(?i)(-INJECTRUNNING|/INJECTRUNNING|–INJECTRUNNING|—INJECTRUNNING|―INJECTRUNNING|-HMODULE|/HMODULE|–HMODULE|—HMODULE|―HMODULE)</field>    <description>Mavinject started with a DLL or import-descriptor injection switch</description>    <mitre>      <id>T1218.013</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.