Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_SUSP_Disable_ETW_Jun20_1

Detects method to disable ETW in ENV vars before executing a program

Suspicious / huntingSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Florian Roth (Nextron Systems)
Date
2020-06-06
Modified
2025-03-21
Score / Quality
65 / 85

What this rule detects

Detects method to disable ETW in ENV vars before executing a program

It defines 7 patterns (7 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

susp-disable-etw-jun20-1.yarDetection Rule License 1.1
rule SIGNATURE_BASE_SUSP_Disable_ETW_Jun20_1
{
	meta:
		description = "Detects method to disable ETW in ENV vars before executing a program"
		author = "Florian Roth (Nextron Systems)"
		id = "ea5dee09-959e-5ef2-8f84-5497bdef0a05"
		date = "2020-06-06"
		modified = "2025-03-21"
		reference = "https://gist.github.com/Cyb3rWard0g/a4a115fd3ab518a0e593525a379adee3"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/gen_suspicious_strings.yar#L395-L413"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "182ad2512bcfbcd92d13380113b32982eb367e458019f07038a12f494dfbebb6"
		score = 65
		quality = 85
		tags = ""

	strings:
		$x1 = "set COMPlus_ETWEnabled=0" ascii wide fullword
		$x2 = "$env:COMPlus_ETWEnabled=0" ascii wide fullword
		$s1 = "Software\\Microsoft.NETFramework" ascii wide
		$sa1 = "/v ETWEnabled" ascii wide fullword
		$sa2 = " /d 0" ascii wide
		$sb4 = "-Name ETWEnabled"
		$sb5 = " -Value 0 "

	condition:
		1 of ( $x* ) or 3 of them
}

Strings (7 patterns)

IdentifierTypeValueModifiers
$x1text"set COMPlus_ETWEnabled=0"ascii wide fullword
$x2text"$env:COMPlus_ETWEnabled=0"ascii wide fullword
$s1text"Software\\Microsoft.NETFramework"ascii wide
$sa1text"/v ETWEnabled"ascii wide fullword
$sa2text" /d 0"ascii wide
$sb4text"-Name ETWEnabled"
$sb5text" -Value 0 "

Condition

1 of ( $x* ) or 3 of them

In plain words (Heuristic)

  • At least 1 patterns in ( $x* ) must match.
  • At least 3 patterns in the rule must match.

Test this rule in your browser

Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

Licence & attribution

Author: Florian Roth (Nextron Systems)

Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: ea5dee09-959e-5ef2-8f84-5497bdef0a05