Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Bebra

Find samples of Bebra Stealer based on specific strings

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
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

infostealer-win-bebra.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Bebra : FILE
{
	meta:
		description = "Find samples of Bebra Stealer based on specific strings"
		author = "Sekoia.io"
		id = "e84d04a7-1232-47e5-b797-ac8e56066796"
		date = "2023-02-06"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_bebra.yar#L1-L26"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "7841746c54c53dbcafdf3f357c7a84b90fe3b089e07f30dea15ef6f7f15b0f00"
		logic_hash = "588fa3091f0dc565123c60d59479202d036e092499eca6204d420395ddc332f9"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "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)

IdentifierTypeValueModifiers
$str01text"https://studio.youtube.com/youtubei/v1/att/esr?alt=json&key="ascii
$str02text"https://www.youtube.com/getAccountSwitcher"ascii
$str03text"\"challenge\":\""ascii
$str04text"\"botguardResponse\":\""ascii
$str05text"\"continueUrl\":\"https://studio.youtube.com/reauth\","ascii
$str06text"\"flow\":\"REAUTH_FLOW_YT_STUDIO_COLD_LOAD\","ascii
$str07text"\"xguardClientStatus\":0"ascii
$str08text"SAPISIDHASH"ascii
$str09text"system32\\cmd.exe /C choice /C Y /N /D Y /T 0 &Del"ascii
$str10text"/new.php"ascii
$str11text"github.com/mattn/go-sqlite3"ascii

Condition

uint16( 0 ) == 0x5A4D and 9 of them

In 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.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

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)

Original rule

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

version1.0
classificationTLP:CLEAR

Tags:FILE