Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Nemesis_In_Memory

Finds Nemesis Stealer samples based on specific strings, from samples without strings obsucation, or from memory

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2023-03-29
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Finds Nemesis Stealer samples based on specific strings, from samples without strings obsucation, or from memory

Targets: Windows PE.

It defines 13 patterns (13 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

infostealer-win-nemesis-in-memory.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Nemesis_In_Memory : FILE
{
	meta:
		description = "Finds Nemesis Stealer samples based on specific strings, from samples without strings obsucation, or from memory"
		author = "Sekoia.io"
		id = "01d85bd5-ea93-44ff-b36a-9cd9eb54d634"
		date = "2023-03-29"
		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_nemesis_in_memory.yar#L1-L27"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "65d2dd9a10238e6d65d8992aa9cc145f73bcba9be49ed552f8b0c44723ec4c87"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "NemesisProject.Modules." ascii
		$str02 = "~[NEMESIS INIZIALIZE]~" wide
		$str03 = "Clip_BoardText.txt" wide
		$str04 = "stealer_out.zip" wide
		$str05 = "<span style=\"color:#FFFFFF\">Number of running processes:</span>" wide
		$str06 = "<span style=\"color:#FFFFFF\">Installed FireWall: </span>" wide
		$str07 = "~[Panel_Receiving_Data]~ Incorrect data when receiving data on the panel" wide
		$str08 = "ProcessInfo_Log.txt" wide
		$str09 = "Installed_Software_Log.txt" wide
		$str10 = "Detect Data ClipBoard] - [ {DateTime.Now:MM.dd.yyyy - HH:mm:ss}]" wide
		$str11 = "VPN/ProtonVPN_Log.txt" wide
		$str12 = "VPN/Nord_Log.txt" wide
		$str13 = "Steam/SteamID_Log.txt" wide

	condition:
		uint16( 0 ) == 0x5A4D and 6 of them
}

Strings (13 patterns)

IdentifierTypeValueModifiers
$str01text"NemesisProject.Modules."ascii
$str02text"~[NEMESIS INIZIALIZE]~"wide
$str03text"Clip_BoardText.txt"wide
$str04text"stealer_out.zip"wide
$str05text"<span style=\"color:#FFFFFF\">Number of running processes:</span>"wide
$str06text"<span style=\"color:#FFFFFF\">Installed FireWall: </span>"wide
$str07text"~[Panel_Receiving_Data]~ Incorrect data when receiving data on the panel"wide
$str08text"ProcessInfo_Log.txt"wide
$str09text"Installed_Software_Log.txt"wide
$str10text"Detect Data ClipBoard] - [ {DateTime.Now:MM.dd.yyyy - HH:mm:ss}]"wide
$str11text"VPN/ProtonVPN_Log.txt"wide
$str12text"VPN/Nord_Log.txt"wide
$str13text"Steam/SteamID_Log.txt"wide

Condition

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

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 6 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

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: 01d85bd5-ea93-44ff-b36a-9cd9eb54d634

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE