Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Luckymouse_Compromised_Electronapp

Detects compromised ElectronApp

APT / threat actorSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2022-08-05
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detects compromised ElectronApp

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

Summary generated from the rule's metadata and condition.

Rule source

apt-luckymouse-compromised-electronapp.yarDetection Rule License 1.1
rule SEKOIA_Apt_Luckymouse_Compromised_Electronapp : FILE
{
	meta:
		description = "Detects compromised ElectronApp"
		author = "Sekoia.io"
		id = "7702217d-771f-47af-8eaa-d5acf1e14f4d"
		date = "2022-08-05"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_luckymouse_compromised_electronapp.yar#L1-L15"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "939546b75d5f7161bb8eb1fd838a9a7c0c88cb58a0f01f67e687523e5b31b0aa"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$s = "module.exports=function(t){eval(function(p,a,c,k,e,r)"

	condition:
		$s at 0 and filesize < 100KB
}

Strings (1 patterns)

IdentifierTypeValueModifiers
$stext"module.exports=function(t){eval(function(p,a,c,k,e,r)"

Condition

$s at 0 and filesize < 100KB

In plain words (Heuristic)

  • The file must be smaller than 100KB (a cheap guard that skips large files).
  • Pattern $s must be found at offset 0.

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: 7702217d-771f-47af-8eaa-d5acf1e14f4d

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE