Skip to content

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

Siemphony’s repertoire

Command line sets a custom .NET AppDomainManager assembly

Siemphony@siemphonymediumT1574.014unverified
AppDomainManager injection redirects a .NET host to load an attacker assembly through one of two mechanisms: the APPDOMAIN_MANAGER_ASM and APPDOMAIN_MANAGER_TYPE environment variables, or the appDomainManagerAssembly and appDomainManagerType attributes in a .config file — both named directly in Microsoft's own AppDomainManager documentation and the public AppDomainManagerInject tooling this technique's citations point to. This rule matches only the narrow case where one of those four literal marker strings is visible on the command line of the process being launched — a `cmd /c set APPDOMAIN_MANAGER_ASM=... && app.exe` chain, a PowerShell `$env:` assignment on the same line, or an inline reference to the config attribute name. It cannot see AN1433's other two legs: an env var set by a separate parent process (invisible to the child's own CommandLine), or a .config file edited out-of-band and read silently at next launch with nothing to show on the command line at all — both would need the file_event and image_load correlation AN1433 also asks for, which is a cross-event join lib/sigma has no construct for. The brief maps Security 4688 onto Sigma's process_creation category, which is Sysmon-shaped, and this rule is written in that vocabulary (Image, CommandLine); on a 4688 feed the same values are NewProcessName and CommandLine, so that feed needs a field mapping before this rule matches at all, and 4688 itself only exists once Audit Process Creation is enabled, with CommandLine requiring the separate "Include command line in process creation events" policy — neither is on in a default install or in the MS/CIS baselines, and zero rows here would read as quiet when it actually means blind. UNVERIFIED AS AUTHORED — derived from MITRE ATT&CK DET0517, 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 "APPDOMAIN_MANAGER_ASM" or ProcessCommandLine contains "APPDOMAIN_MANAGER_TYPE" or ProcessCommandLine contains "appDomainManagerAssembly" or ProcessCommandLine contains "appDomainManagerType")

Splunk · SPL

Run this as a search.

index=* (CommandLine="*APPDOMAIN_MANAGER_ASM*" OR CommandLine="*APPDOMAIN_MANAGER_TYPE*" OR CommandLine="*appDomainManagerAssembly*" OR CommandLine="*appDomainManagerType*")

Elastic · ES|QL

Run this as a search.

FROM logs-*| WHERE (TO_LOWER(process.command_line) LIKE "*appdomain_manager_asm*" OR TO_LOWER(process.command_line) LIKE "*appdomain_manager_type*" OR TO_LOWER(process.command_line) LIKE "*appdomainmanagerassembly*" OR TO_LOWER(process.command_line) LIKE "*appdomainmanagertype*")

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="CommandLine" type="pcre2">(?i)(APPDOMAIN_MANAGER_ASM|APPDOMAIN_MANAGER_TYPE|appDomainManagerAssembly|appDomainManagerType)</field>    <description>Command line sets a custom .NET AppDomainManager assembly</description>    <mitre>      <id>T1574.014</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.