Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Rat_Win_Remcos

DEPRECATED : Find Remcos RAT samples based on specific strings

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

What this rule detects

DEPRECATED : Find Remcos RAT samples based on specific strings

Associated malware family: Remcos.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

rat-win-remcos.yarDetection Rule License 1.1
rule SEKOIA_Rat_Win_Remcos : FILE
{
	meta:
		description = "DEPRECATED : Find Remcos RAT samples based on specific strings"
		author = "Sekoia.io"
		id = "011132f5-c5d9-4e97-bfed-0b94c9a30481"
		date = "2023-01-29"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/rat_win_remcos.yar#L1-L25"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "259f31d745449dc81cde698bb0ae4a20b4bbf050a1c818fbb5a891f26ca2e856"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		modification_date = "2024-01-08"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "/k %windir%\\System32\\reg.exe ADD HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System /v EnableLUA /t REG_DWORD /d 0 /f" ascii
		$str02 = "Disconnection occurred, retrying to connect..." ascii
		$str03 = "[Following text has been pasted from clipboard:]" ascii
		$str04 = "[Following text has been copied to clipboard:]" ascii
		$str05 = "[Chrome StoredLogins found, cleared!]" ascii
		$str06 = "PING 127.0.0.1 -n 2" ascii
		$str07 = "Remcos_Mutex_Inj" ascii
		$str08 = " * REMCOS v" ascii
		$str09 = "Connected to C&C!" ascii
		$str10 = "[Cleared all cookies & stored logins!]" ascii

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

Strings (10 patterns)

IdentifierTypeValueModifiers
$str01text"/k %windir%\\System32\\reg.exe ADD HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System /v EnableLUA /t REG_DWORD /d 0 /f"ascii
$str02text"Disconnection occurred, retrying to connect..."ascii
$str03text"[Following text has been pasted from clipboard:]"ascii
$str04text"[Following text has been copied to clipboard:]"ascii
$str05text"[Chrome StoredLogins found, cleared!]"ascii
$str06text"PING 127.0.0.1 -n 2"ascii
$str07text"Remcos_Mutex_Inj"ascii
$str08text" * REMCOS v"ascii
$str09text"Connected to C&C!"ascii
$str10text"[Cleared all cookies & stored logins!]"ascii

Condition

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

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 3 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: 011132f5-c5d9-4e97-bfed-0b94c9a30481

Metadata

version1.0
modification_date2024-01-08
classificationTLP:CLEAR

Tags:FILE

More Remcos rules