Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Cinoshistealer

Finds Cinoshi Stealer samples based on specific strings, or PE resources

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

What this rule detects

Finds Cinoshi Stealer samples based on specific strings, or PE resources

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

infostealer-win-cinoshistealer.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Cinoshistealer : FILE
{
	meta:
		description = "Finds Cinoshi Stealer samples based on specific strings, or PE resources"
		author = "Sekoia.io"
		id = "2e9c066b-d5e3-4a25-8954-c10af285bcd3"
		date = "2023-06-23"
		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_cinoshistealer.yar#L1-L29"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "c4d8418a7bd1bf205295100d993562c89b17b80889cad5aac7a74f89e66543ce"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "Anaida.exe" ascii wide
		$str02 = "Anaida.pdb" ascii
		$str03 = "embedder_download_data" ascii
		$str04 = "date_password_modified" ascii
		$str05 = "card_number_encrypted" ascii
		$str06 = "set_UseZip64WhenSaving" ascii
		$str07 = "set_CommandText" ascii
		$str08 = "Nss3CouldNotBeLoaded" ascii
		$str09 = "formhistory.sqlite" wide
		$str10 = "logins.json" wide
		$str11 = "\\nss3.dll" wide
		$str12 = "\\cookies.sqlite" wide
		$str13 = "\\places.sqlite" wide
		$str14 = "\\autofill-profiles.json" wide

	condition:
		uint16( 0 ) == 0x5a4d and 9 of them and filesize > 400KB
}

Strings (14 patterns)

IdentifierTypeValueModifiers
$str01text"Anaida.exe"ascii wide
$str02text"Anaida.pdb"ascii
$str03text"embedder_download_data"ascii
$str04text"date_password_modified"ascii
$str05text"card_number_encrypted"ascii
$str06text"set_UseZip64WhenSaving"ascii
$str07text"set_CommandText"ascii
$str08text"Nss3CouldNotBeLoaded"ascii
$str09text"formhistory.sqlite"wide
$str10text"logins.json"wide
$str11text"\\nss3.dll"wide
$str12text"\\cookies.sqlite"wide
$str13text"\\places.sqlite"wide
$str14text"\\autofill-profiles.json"wide

Condition

uint16( 0 ) == 0x5a4d and 9 of them and filesize > 400KB

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be larger than 400KB.
  • 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

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: 2e9c066b-d5e3-4a25-8954-c10af285bcd3

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE