Detection rules › Sigma

Dynamic CSharp Compile Artefact

Severity
low
Author
frack113
Source
upstream

When C# is compiled dynamically, a .cmdline file will be created as a part of the process. Certain processes are not typically observed compiling C# code, but can do so without touching disk. This can be used to unpack a payload for execution

MITRE ATT&CK coverage

TacticTechniques
Defense EvasionT1027.004 Obfuscated Files or Information: Compile After Delivery

Event coverage

ProviderEvent IDTitle
Sysmon11FileCreate

Stages and Predicates

Stage 1: selection

TargetFilename|endswith: .cmdline

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
TargetFilenameends_with
  • .cmdline