YARA · SEKOIA.IO Community
SEKOIA_Infostealer_Win_Bebra
Find samples of Bebra Stealer based on specific strings
- Author
- Sekoia.io
- Date
- 2023-02-06
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Find samples of Bebra Stealer based on specific strings
Targets: Windows PE.
It defines 11 patterns (11 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SEKOIA_Infostealer_Win_Bebra : FILE
{
meta:
= "Find samples of Bebra Stealer based on specific strings"
= "Sekoia.io"
= "e84d04a7-1232-47e5-b797-ac8e56066796"
= "2023-02-06"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_bebra.yar#L1-L26"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "7841746c54c53dbcafdf3f357c7a84b90fe3b089e07f30dea15ef6f7f15b0f00"
= "588fa3091f0dc565123c60d59479202d036e092499eca6204d420395ddc332f9"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$str01 = "https://studio.youtube.com/youtubei/v1/att/esr?alt=json&key=" ascii
$str02 = "https://www.youtube.com/getAccountSwitcher" ascii
$str03 = "\"challenge\":\"" ascii
$str04 = "\"botguardResponse\":\"" ascii
$str05 = "\"continueUrl\":\"https://studio.youtube.com/reauth\"," ascii
$str06 = "\"flow\":\"REAUTH_FLOW_YT_STUDIO_COLD_LOAD\"," ascii
$str07 = "\"xguardClientStatus\":0" ascii
$str08 = "SAPISIDHASH" ascii
$str09 = "system32\\cmd.exe /C choice /C Y /N /D Y /T 0 &Del" ascii
$str10 = "/new.php" ascii
$str11 = "github.com/mattn/go-sqlite3" ascii
condition:
uint16( 0 ) == 0x5A4D and 9 of them
}
Strings (11 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $str01 | text | "https://studio.youtube.com/youtubei/v1/att/esr?alt=json&key=" | ascii |
| $str02 | text | "https://www.youtube.com/getAccountSwitcher" | ascii |
| $str03 | text | "\"challenge\":\"" | ascii |
| $str04 | text | "\"botguardResponse\":\"" | ascii |
| $str05 | text | "\"continueUrl\":\"https://studio.youtube.com/reauth\"," | ascii |
| $str06 | text | "\"flow\":\"REAUTH_FLOW_YT_STUDIO_COLD_LOAD\"," | ascii |
| $str07 | text | "\"xguardClientStatus\":0" | ascii |
| $str08 | text | "SAPISIDHASH" | ascii |
| $str09 | text | "system32\\cmd.exe /C choice /C Y /N /D Y /T 0 &Del" | ascii |
| $str10 | text | "/new.php" | ascii |
| $str11 | text | "github.com/mattn/go-sqlite3" | ascii |
Condition
uint16( 0 ) == 0x5A4D and 9 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 9 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.
References
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 7841746c54c53dbcafdf3f357c7a84b90fe3b089e07f30dea15ef6f7f15b0f00
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: e84d04a7-1232-47e5-b797-ac8e56066796
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20