YARA · ditekSHen detection
DITEKSHEN_INDICATOR_TOOL_Havoc
Detects Havoc Demon
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-09-25
- Score / Quality
- 75 / 75
What this rule detects
Detects Havoc Demon
Associated malware family: Havoc.
Targets: Windows PE.
It defines 4 patterns (4 text, 0 hex, 0 regex). YARA modules used: pe.
Summary generated from the rule's metadata and condition.
Rule source
Includes the imports needed to compile it on its own.
import "pe"
rule DITEKSHEN_INDICATOR_TOOL_Havoc : FILE
{
meta:
= "Detects Havoc Demon"
= "ditekSHen"
= "71ad145c-4017-597a-837e-5d11ba64d7c0"
= "2020-11-06"
= "2024-09-25"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_tools.yar#L1693-L1710"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "c5806deaa57590ebe1923608b9b085460e0edd024721e6e9d7073765a79bf22b"
= 75
= 75
= "FILE"
strings:
$x1 = "X-Havoc:" wide
$x2 = "X-Havoc-Agent:" wide
$s1 = "\\Werfault.exe" wide
$s2 = "/funny_cat.gif" wide
condition:
uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or 3 of them or ( pe.number_of_imports == 0 and pe.number_of_exports == 0 and 2 of them ) )
}
Strings (4 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "X-Havoc:" | wide |
| $x2 | text | "X-Havoc-Agent:" | wide |
| $s1 | text | "\\Werfault.exe" | wide |
| $s2 | text | "/funny_cat.gif" | wide |
Condition
uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or 3 of them or ( pe.number_of_imports == 0 and pe.number_of_exports == 0 and 2 of them ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $x* ) must match.
- At least 3 patterns in the rule must match.
- At least 2 patterns in the rule must match.
- Uses the pe module.
- Checks imported functions or libraries.
- Checks exported functions or the DLL name.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
References
Licence & attribution
Author: ditekSHen
Source repository: ditekSHen detection @ e76c93dcde
Licence: BSD 2-Clause License (repository licence)
Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 71ad145c-4017-597a-837e-5d11ba64d7c0
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-10-07
- Hack toolMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- Hack toolEmbee Research· embee_research @ HuntressLabs· 2022-10-11
- Suspicious / huntingditekSHen detection· ditekSHen· 2023-08-22
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21