YARA · SEKOIA.IO Community
SEKOIA_Apt_Ta410_Driver_Keylogger
Keylogger TA410
- Author
- Sekoia.io
- Date
- 2022-10-11
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Keylogger TA410
Targets: Windows PE.
It defines 8 patterns (8 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
apt-ta410-driver-keylogger.yarDetection Rule License 1.1
rule SEKOIA_Apt_Ta410_Driver_Keylogger : FILE
{
meta:
= "Keylogger TA410"
= "Sekoia.io"
= "0cba1b3b-b93e-41e3-a7df-afd306e6b519"
= "2022-10-11"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_ta410_driver_keylogger.yar#L1-L23"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "5ed152cc068f194cb7bf8c34744f0f1ebd4f621e6ae47f14bab64b18d94af4c5"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "namedpipe_keymousespy" ascii wide
$ = "[`LCTRL]" ascii wide
$ = "[`RCTRL]" ascii wide
$ = "[`BREAK]" ascii wide
$ = "[`NUMLOCK]" ascii wide
$ = "[`L]" ascii wide
$ = "[`R]" ascii wide
$ = "[`M]" ascii wide
condition:
uint16be( 0 ) == 0x4d5a and filesize < 1MB and 3 of them
}
Strings (8 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | text | "namedpipe_keymousespy" | ascii wide |
| $ | text | "[`LCTRL]" | ascii wide |
| $ | text | "[`RCTRL]" | ascii wide |
| $ | text | "[`BREAK]" | ascii wide |
| $ | text | "[`NUMLOCK]" | ascii wide |
| $ | text | "[`L]" | ascii wide |
| $ | text | "[`R]" | ascii wide |
| $ | text | "[`M]" | ascii wide |
Condition
uint16be( 0 ) == 0x4d5a and filesize < 1MB and 3 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be smaller than 1MB (a cheap guard that skips large files).
- 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.
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: 0cba1b3b-b93e-41e3-a7df-afd306e6b519
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
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