Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_Line_Dancer

Targets code sections of Line Dancer, a shellcode loader targeting Cisco ASA devices.

MalwareSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
NCSC
Date
2024-04-24
Modified
2024-04-29
Score / Quality
75 / 85

What this rule detects

Targets code sections of Line Dancer, a shellcode loader targeting Cisco ASA devices.

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

Summary generated from the rule's metadata and condition.

Rule source

line-dancer.yarDetection Rule License 1.1
rule SIGNATURE_BASE_Line_Dancer
{
	meta:
		description = "Targets code sections of Line Dancer, a shellcode loader targeting Cisco ASA devices."
		author = "NCSC"
		id = "3b49a861-8107-577a-bae1-ae28d424cc13"
		date = "2024-04-24"
		modified = "2024-04-29"
		reference = "https://www.ncsc.gov.uk/static-assets/documents/malware-analysis-reports/line/ncsc-tip-line-dancer.pdf"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_cisco_asa_line_dancer_apr24.yar#L2-L16"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "179e58274a792bc4a16787d251f5ad25de1271084323e62e153fa6d461e3c07e"
		score = 75
		quality = 85
		tags = ""

	strings:
		$ = { 48 8D 5E 20 48 8D 3D BB FF FF FF BA 20 00 00 00 }
		$ = { 4C 89 EE 44 89 F2 48 8D 3D 9A 27 00 00 }
		$ = { 41 FF D7 41 5F 41 5E 41 5D 41 5C 5B 5D 48 C7 C0 01 00 00 00 5F }

	condition:
		all of them
}

Strings (3 patterns)

IdentifierTypeValueModifiers
$hex{ 48 8D 5E 20 48 8D 3D BB FF FF FF BA 20 00 00 00 }
$hex{ 4C 89 EE 44 89 F2 48 8D 3D 9A 27 00 00 }
$hex{ 41 FF D7 41 5F 41 5E 41 5D 41 5C 5B 5D 48 C7 C0 01 00 00 00 5F }

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

Licence & attribution

Author: NCSC

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

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: 3b49a861-8107-577a-bae1-ae28d424cc13