YARA · SEKOIA.IO Community
SEKOIA_Tool_Rubeus_Strings
Detects Rubeus
- Author
- Sekoia.io
- Date
- 2024-03-22
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detects Rubeus
Targets: Windows PE.
It defines 8 patterns (8 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
tool-rubeus-strings.yarDetection Rule License 1.1
rule SEKOIA_Tool_Rubeus_Strings : FILE
{
meta:
= "Detects Rubeus"
= "Sekoia.io"
= "df1860d0-ec34-4c2d-bd83-5f16b26d075c"
= "2024-03-22"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/tool_rubeus_strings.yar#L1-L24"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "adc6a5207bb15c8020ca170564ea9066b2c0b0e09839d6838744c623f59153cf"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = ".Ndr.RPC_DISPATCH_TABLE32"
$ = ".Ndr.RPC_PROTSEQ_ENDPOINT32"
$ = ".Ndr.RPC_SERVER_INTERFACE32"
$ = ".Ndr.NDR_EXPR_DESC32"
$ = "$krb5tgs${0}$*{1}${2}${3}*${4}${5}" wide
$ = "$krb5asrep$23${0}@{1}:{2}" wide
$ = "Unable to decrypt the EncTicketPart using key:" wide
$ = "[*] Target service : {0:x}" wide
condition:
uint16be( 0 ) == 0x4d5a and filesize < 1MB and 5 of them
}
Strings (8 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | text | ".Ndr.RPC_DISPATCH_TABLE32" | |
| $ | text | ".Ndr.RPC_PROTSEQ_ENDPOINT32" | |
| $ | text | ".Ndr.RPC_SERVER_INTERFACE32" | |
| $ | text | ".Ndr.NDR_EXPR_DESC32" | |
| $ | text | "$krb5tgs${0}$*{1}${2}${3}*${4}${5}" | wide |
| $ | text | "$krb5asrep$23${0}@{1}:{2}" | wide |
| $ | text | "Unable to decrypt the EncTicketPart using key:" | wide |
| $ | text | "[*] Target service : {0:x}" | wide |
Condition
uint16be( 0 ) == 0x4d5a and filesize < 1MB and 5 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 5 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: df1860d0-ec34-4c2d-bd83-5f16b26d075c
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- Hack toolSEKOIA.IO Community· Sekoia.io· 2024-09-06
- Hack toolSEKOIA.IO Community· Sekoia.io· 2024-02-29
- Hack toolSEKOIA.IO Community· Sekoia.io· 2023-12-05
- Hack toolSEKOIA.IO Community· Sekoia.io· 2023-11-15
- Hack toolSEKOIA.IO Community· Sekoia.io· 2023-08-23
- Hack toolSEKOIA.IO Community· Sekoia.io· 2022-02-08
- Hack toolSEKOIA.IO Community· Sekoia.io· 2022-07-22
- Hack toolSEKOIA.IO Community· Sekoia.io· 2022-09-09