Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_APT_PY_Bluelight_Loader

Python Loader used to execute the BLUELIGHT malware family.

APT / threat actorBluelightSignature Base (Florian Roth / Nextron)BSD 2-Clause LicenseCompiles with YARA-X
Author
threatintel@volexity.com
Date
2021-06-22
Modified
2023-12-05
Score / Quality
75 / 85

What this rule detects

Python Loader used to execute the BLUELIGHT malware family.

Associated malware family: Bluelight.

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

Summary generated from the rule's metadata and condition.

Rule source

apt-py-bluelight-loader.yarBSD 2-Clause License
rule SIGNATURE_BASE_APT_PY_Bluelight_Loader : INKYSQUID
{
	meta:
		description = "Python Loader used to execute the BLUELIGHT malware family."
		author = "threatintel@volexity.com"
		id = "f8da3e40-c3b0-5b7f-8ece-81874993d8cd"
		date = "2021-06-22"
		modified = "2023-12-05"
		reference = "https://www.volexity.com/blog/2021/08/24/north-korean-bluelight-special-inkysquid-deploys-rokrat/"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_nk_inkysquid.yar#L39-L58"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "80269413be6ad51b8b19631b2f5559c9572842e789bbce031babe6e879d2e120"
		logic_hash = "e7e18a6d648b1383706439ba923335ac4396f6b5d2a3dc8f30f63ded7df29eda"
		score = 75
		quality = 85
		tags = "INKYSQUID"
		license = "See license at https://github.com/volexity/threat-intel/LICENSE.txt"

	strings:
		$s1 = "\"\".join(chr(ord(" ascii
		$s2 = "import ctypes " ascii
		$s3 = "ctypes.CFUNCTYPE(ctypes.c_int)" ascii
		$s4 = "ctypes.memmove" ascii
		$s5 = "python ended" ascii

	condition:
		all of them
}

Strings (5 patterns)

IdentifierTypeValueModifiers
$s1text"\"\".join(chr(ord("ascii
$s2text"import ctypes "ascii
$s3text"ctypes.CFUNCTYPE(ctypes.c_int)"ascii
$s4text"ctypes.memmove"ascii
$s5text"python ended"ascii

Condition

all of them

In plain words (Heuristic)

  • All 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).

  • 80269413be6ad51b8b19631b2f5559c9572842e789bbce031babe6e879d2e120

Licence & attribution

Author: threatintel@volexity.com

Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

Licence: BSD 2-Clause License (stated in the rule's own meta)

“See license at https://github.com/volexity/threat-intel/LICENSE.txt”

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: f8da3e40-c3b0-5b7f-8ece-81874993d8cd

Tags:INKYSQUID

More Bluelight rules