Detection rules › Sigma

Suspicious DotNET CLR Usage Log Artifact

Severity
high
Author
frack113, omkar72, oscd.community, Wojciech Lesicki
Source
upstream

Detects the creation of Usage Log files by the CLR (clr.dll). These files are named after the executing process once the assembly is finished executing for the first time in the (user) session context.

MITRE ATT&CK coverage

TacticTechniques
Defense EvasionT1218 System Binary Proxy Execution

Event coverage

ProviderEvent IDTitle
Sysmon11FileCreate

Stages and Predicates

Stage 1: selection

or:
TargetFilename|endswith: '\UsageLogs\cmstp.exe.log'
TargetFilename|endswith: '\UsageLogs\cscript.exe.log'
TargetFilename|endswith: '\UsageLogs\mshta.exe.log'
TargetFilename|endswith: '\UsageLogs\msxsl.exe.log'
TargetFilename|endswith: '\UsageLogs\regsvr32.exe.log'
TargetFilename|endswith: '\UsageLogs\rundll32.exe.log'
TargetFilename|endswith: '\UsageLogs\svchost.exe.log'
TargetFilename|endswith: '\UsageLogs\wmic.exe.log'
TargetFilename|endswith: '\UsageLogs\wscript.exe.log'

Stage 2: not 1 of filter_main_rundll32

CommandLine|contains: Temp
CommandLine|contains: 'zzzzInvokeManagedCustomActionOutOfProc'
Image|endswith: '\rundll32.exe'
ParentCommandLine|contains: ' -Embedding'
ParentImage|endswith: '\MsiExec.exe'

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
CommandLinematch
  • Temp
  • zzzzInvokeManagedCustomActionOutOfProc corpus 2 (sigma 2)
Imageends_with
  • \rundll32.exe corpus 76 (sigma 76)
ParentCommandLinematch
  • -Embedding
ParentImageends_with
  • \MsiExec.exe
TargetFilenameends_with
  • \UsageLogs\cmstp.exe.log
  • \UsageLogs\cscript.exe.log
  • \UsageLogs\mshta.exe.log
  • \UsageLogs\msxsl.exe.log
  • \UsageLogs\regsvr32.exe.log
  • \UsageLogs\rundll32.exe.log
  • \UsageLogs\svchost.exe.log
  • \UsageLogs\wmic.exe.log
  • \UsageLogs\wscript.exe.log