YARA · SEKOIA.IO Community
SEKOIA_Apt_Win_Disabledefender
detects strings and imphash
- Author
- Sekoia.io
- Date
- 2022-09-23
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
detects strings and imphash
Targets: Windows PE.
It defines 5 patterns (5 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.
apt-win-disabledefender.yarDetection Rule License 1.1
import "pe"
rule SEKOIA_Apt_Win_Disabledefender
{
meta:
= "detects strings and imphash"
= "Sekoia.io"
= "a7b124ab-4c9d-47c0-a59e-211cc713b9b3"
= "2022-09-23"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_win_disabledefender.yar#L3-L20"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "3b8c8d9144d9f97ee053c7cefc30d3920940bc33efcd1d7f5c61666217ef7896"
= 75
= 80
= ""
= "1.0"
= "TLP:CLEAR"
strings:
$ = "Restarting with privileges"
$ = "Windows defender is currently ACTIVE"
$ = "Windows defender is currently OFF"
$ = "Disabled windows defender"
$ = "Failed to disable defender..."
condition:
4 of them or pe.imphash ( ) == "74a6ef9e7b49c71341e439022f643c8e"
}
Strings (5 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | text | "Restarting with privileges" | |
| $ | text | "Windows defender is currently ACTIVE" | |
| $ | text | "Windows defender is currently OFF" | |
| $ | text | "Disabled windows defender" | |
| $ | text | "Failed to disable defender..." |
Condition
4 of them or pe.imphash ( ) == "74a6ef9e7b49c71341e439022f643c8e"In plain words (Heuristic)
- At least 4 patterns in the rule must match.
- Uses the pe module.
- Checks the PE import hash (imphash).
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.
References
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: a7b124ab-4c9d-47c0-a59e-211cc713b9b3
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Related rules
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-23
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-06-11
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-03-06