Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Rat_Darkvision_String

DarkVision RAT based on string

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

What this rule detects

DarkVision RAT based on string

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

rat-darkvision-string.yarDetection Rule License 1.1
rule SEKOIA_Rat_Darkvision_String : FILE
{
	meta:
		description = "DarkVision RAT based on string"
		author = "Sekoia.io"
		id = "ab698a79-42ee-452a-a3ba-1a9872d5e2bc"
		date = "2024-09-17"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/rat_darkvision_string.yar#L1-L28"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "8ec5526cecc596e0711c82e39cd4f2ce"
		hash = "2dd476464e46d91ffe68483cb478d9b4"
		hash = "20de7547d79d3637430b6a0787e59df5"
		hash = "60d1e02316e6f22e078f9aa710790912"
		hash = "e136e51efc22b0e071c11e7d652ea3be"
		hash = "f466be81310147fcdd9a7886735a3786"
		hash = "5065134cf4ba765bd97bb2edb61c5869"
		hash = "6ed21c4f507e8cc830141ff732bd5acc"
		hash = "40b2641150f291ca07bd08ab629fe1ed"
		hash = "3f20cd14137e0abfa84b39e29a277350"
		hash = "7dc8427be8b4d26a49fd380ad40d3b96"
		logic_hash = "63ed3b1a991dc07bd06678a58449e0a67dd9453b358c0ac82a9c38235394122b"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "DarkVision Installation" wide
		$ = "You are about to install DarkVision Remote Access Tool." wide

	condition:
		uint16be( 0 ) == 0x4d5a and 2 of them
}

Strings (2 patterns)

IdentifierTypeValueModifiers
$text"DarkVision Installation"wide
$text"You are about to install DarkVision Remote Access Tool."wide

Condition

uint16be( 0 ) == 0x4d5a and 2 of them

In plain words (Heuristic)

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

  • 8ec5526cecc596e0711c82e39cd4f2ce
  • 2dd476464e46d91ffe68483cb478d9b4
  • 20de7547d79d3637430b6a0787e59df5
  • 60d1e02316e6f22e078f9aa710790912
  • e136e51efc22b0e071c11e7d652ea3be
  • f466be81310147fcdd9a7886735a3786
  • 5065134cf4ba765bd97bb2edb61c5869
  • 6ed21c4f507e8cc830141ff732bd5acc
  • 40b2641150f291ca07bd08ab629fe1ed
  • 3f20cd14137e0abfa84b39e29a277350
  • 7dc8427be8b4d26a49fd380ad40d3b96

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: ab698a79-42ee-452a-a3ba-1a9872d5e2bc

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE