Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
Back to malware
MalwareUsed by 2 actorsExploits 2 CVEs

Line Dancer

Line Dancer is a memory-resident shellcode loader/implant used in the ArcaneDoor espionage campaign against Cisco Adaptive Security Appliance (ASA) devices, including ASA55xx systems, during activity observed in late 2023 and early 2024. It has been associated with the state-sponsored threat actor tracked by Cisco as UAT4356 and by Microsoft as STORM-1849. Cisco Talos and partner agencies reported it being deployed alongside the persistent Line Runner backdoor on compromised ASA devices.

High-confidence reporting describes Line Dancer as an in-memory implant that enables attackers to upload and execute arbitrary shellcode payloads. NCSC analysis states it was recovered only from memory, from a non-file-backed RWX region outside the lina text section, and that it is non-persistent. Execution is achieved by overwriting a lina data-section function pointer used to parse the WebVPN XML <host-scan-reply> field. The implant checks for a victim-specific fixed 32-byte authentication token at the start of data submitted in that field of a WebVPN HTTP(S) POST request; if the token matches, it base64-decodes the remaining data as shellcode, copies it into a fixed address in the same memory region, executes it, and then returns control to the legitimate parser.

Reported capabilities include executing arbitrary commands and shellcode payloads, modifying device configuration, reconnaissance, collecting and exfiltrating device configuration data, creating and exfiltrating packet captures, disabling or suppressing syslog logging, and interfering with AAA/authentication mechanisms to bypass configured controls. Cisco reporting also states Line Dancer hooked the crash-dump process to force reboot behavior and hinder forensic collection. French CERT reporting similarly describes the implant as memory-only and capable of disabling system activity logs, retrieving configuration elements, performing and exfiltrating network captures, executing arbitrary commands, inserting into the crash-dump process to reduce traces, and inserting into AAA processing to bypass those mechanisms.

The malware was observed in targeted attacks exploiting Cisco ASA/WebVPN-related activity associated with CVE-2024-20353 and CVE-2024-20359. Public advisories describe the broader campaign as focused on espionage and targeting government and critical national infrastructure networks globally. Cisco stated the initial intrusion vector remained unknown, but the malware was used post-compromise on a small set of customers. Known behavioral indicators directly mentioned in the reporting include WebVPN HTTP(S) POST activity to URIs such as /CSCOSSLC/config-auth, use of the <host-scan-reply> XML field for tasking, victim-specific 32-byte tokens, and suspicious split or multiple executable lina memory regions observable via "show memory region | Include lina".

Share:
For your environment

Hunt this family in your stack

Mallory pivots from this family to the IOCs, detections, and named campaigns that touch your stack, and pages you when something new lands.

EXPLOITED CVES

Vulnerabilities exploited

2 CVEs Mallory has correlated with this family across public research and vendor advisories. Each row links to the full Mallory page for that vulnerability.

2 CVES
CVE-2024-20359Cisco ASA and FTD Persistent Local Code Execution VulnerabilityExploited in the wild

CISA added two Cisco product vulnerabilities — CVE-2024-20353 and CVE-2024-20359 — to the Known Exploited Vulnerabilities catalog. Cisco warned they are being exploited as part of a campaign by state-sponsored threat actors affecting Cisco ASA and Firepower Threat Defense devices.

via the record mediatherecord.media
CVE-2024-20353Cisco ASA and FTD Web Services Denial of Service VulnerabilityExploited in the wild

CISA added two Cisco product vulnerabilities — CVE-2024-20353 and CVE-2024-20359 — to the Known Exploited Vulnerabilities catalog. Cisco warned they are being exploited as part of a campaign by state-sponsored threat actors affecting Cisco ASA and Firepower Threat Defense devices.

via the record mediatherecord.media
THREAT ACTORS

Groups observed using it

2 distinct threat actors attributed by public researchers. Open in Mallory to see the full evidence chain and overlapping campaigns.

View more details
ArcaneDoor

UAT4356 deployed two backdoors as components of this campaign, ‘Line Runner’ and ‘Line Dancer,’ which were used collectively to conduct malicious actions on-target, which included configuration modification, reconnaissance, network traffic capture/exfiltration and potentially lateral movement

via the record mediatherecord.media
UAT-4356

Cisco Talos previously attributed this group to the ArcaneDoor campaign in 2024, where they exploited two Cisco ASA zero-day vulnerabilities (CVE-2024–20353, CVE-2024–20359) to deploy malware such as Line Dancer and Line Runner.

via osint team blogosintteam.blog
MITRE ATT&CK

Techniques & procedures

30 distinct techniques documented for this family, organized by ATT&CK tactic.

Initial Access

2 techniques
T1133External Remote ServicesEvidence1

These affected products have been compromised by malicious actors who successfully established unauthorized access through WebVPN sessions, commonly associated with Clientless SSLVPN services.

T1190Exploit Public-Facing ApplicationEvidence1

CISA added two Cisco product vulnerabilities — CVE-2024-20353 and CVE-2024-20359 — as well as one vulnerability affecting popular file transfer tool CrushFTP... because they are being exploited by hackers.

Execution

5 techniques
T1059Command and Scripting InterpreterEvidence2

MITRE TTPs ... Execution of CLI commands (T1059)

T1059.008Network Device CLIEvidence1
T1129Shared ModulesEvidence1

LINE DANCER is a persistent Lua-based shellcode loader, which is a component of a larger framework. This shellcode loader would process malicious payloads that execute system commands.

T1203Exploitation for Client ExecutionEvidence1

The authoring agencies performed analysis that showed malicious actors abusing WebVPN by transmitting malicious payloads resulting in unauthorized remote code execution on Cisco devices.

T1574.006Dynamic Linker HijackingEvidence1

“To achieve execution, the pointer to the subroutine which handles parsing the <host-scan-reply> field… is overwritten to point to the shellcode loader… The pointer that is overwritten is in the data section of lina, not the text section…”

Persistence

7 techniques
T1112Modify RegistryEvidence1

‘Line Runner’ and ‘Line Dancer’... were used collectively to conduct malicious actions on-target, which included configuration modification...

T1133External Remote ServicesEvidence1

These affected products have been compromised by malicious actors who successfully established unauthorized access through WebVPN sessions, commonly associated with Clientless SSLVPN services.

T1505Server Software ComponentEvidence1

UAT4356 deployed two backdoors as components of this campaign, ‘Line Runner’ and ‘Line Dancer,’ which were used collectively to conduct malicious actions on-target.

T1505.003Web ShellEvidence1

“Line Dancer is not persistent, the actor achieves persistence on ASA devices via Line Runner… a persistent Lua webshell…”

T1542.001System FirmwareEvidence1

“An observed Line Dancer payload changes the memory protections of a region of lina, this results in the text section being split and causing multiple executable memory regions for lina… suspicious, especially if one is of size 0x1000.”

T1556Modify Authentication ProcessEvidence2

MITRE TTPs ... Bypassing of the AAA mechanism (T1556)

T1653Power SettingsEvidence1

Privilege Escalation

1 technique
T1055Process InjectionEvidence1

MITRE TTPs ... Injection of code into AAA and Crash Dump processes (T1055)

Stealth

8 techniques
T1014RootkitEvidence1
T1027Obfuscated Files or InformationEvidence1

“This data is then base64-decoded and copied into a fixed memory address… The base64-decoded data is expected to be shellcode.”

T1055Process InjectionEvidence1

MITRE TTPs ... Injection of code into AAA and Crash Dump processes (T1055)

T1070Indicator RemovalEvidence1

The malicious actors were able to control the enabling and disabling of the devices syslog service to obfuscate additional commands.

T1140Deobfuscate/Decode Files or InformationEvidence3

The content repeatedly describes malware and threat actors decoding, decrypting, or deobfuscating payloads, strings, configuration data, commands, and C2 traffic prior to execution or use, e.g., 'APT28 macro uses the command certutil -decode to decode contents of a .txt file storing the base64 encoded payload' and 'Action RAT can use Base64 to decode actor-controlled C2 server communications.'

T1542.001System FirmwareEvidence1

“An observed Line Dancer payload changes the memory protections of a region of lina, this results in the text section being split and causing multiple executable memory regions for lina… suspicious, especially if one is of size 0x1000.”

T1574.006Dynamic Linker HijackingEvidence1

“To achieve execution, the pointer to the subroutine which handles parsing the <host-scan-reply> field… is overwritten to point to the shellcode loader… The pointer that is overwritten is in the data section of lina, not the text section…”

T1620Reflective Code LoadingEvidence2

“Line Dancer has only been seen in memory… recovered from a 20KB region of memory marked as readable, writable, and executable… not showing as file backed… used to run arbitrary shellcode payloads…”

Defense Impairment

2 techniques
T1112Modify RegistryEvidence1

‘Line Runner’ and ‘Line Dancer’... were used collectively to conduct malicious actions on-target, which included configuration modification...

T1556Modify Authentication ProcessEvidence2

MITRE TTPs ... Bypassing of the AAA mechanism (T1556)

Credential Access

2 techniques
T1040Network SniffingEvidence6

‘Line Runner’ and ‘Line Dancer’... were used collectively to conduct malicious actions on-target, which included... network traffic capture/exfiltration...

T1556Modify Authentication ProcessEvidence2

MITRE TTPs ... Bypassing of the AAA mechanism (T1556)

Discovery

2 techniques
T1040Network SniffingEvidence6

‘Line Runner’ and ‘Line Dancer’... were used collectively to conduct malicious actions on-target, which included... network traffic capture/exfiltration...

T1082System Information DiscoveryEvidence4

The content repeatedly describes malware and threat actors collecting host details such as OS version, hostname, architecture, CPU, memory, BIOS, domain, language, and other configuration data; e.g., "APT41 uses multiple built-in commands such as systeminfo and net config Workstation to enumerate victim system basic configuration information."

Collection

2 techniques
T1005Data from Local SystemEvidence1

These samples are commands that directed the devices to perform specific actions which resulted in the exfiltration of device configurations, configuration of network captures, and data exfiltration.

T1074Data StagedEvidence1

Agrius exfiltrated staged data using tools such as Putty and WinSCP, communicating with command and control servers. Dyre has the ability to send information staged on a compromised host externally to C2. Line Runner utilizes HTTP to retrieve and exfiltrate information staged using Line Dancer.

Command and Control

2 techniques
T1071.001Web ProtocolsEvidence5

The content repeatedly describes threat actors, malware, and campaigns using HTTP and/or HTTPS for command and control, including examples such as BlackEnergy communicating with C2 over HTTP POST requests and many other families using HTTP/S for C2.

T1105Ingress Tool TransferEvidence1

LINE RUNNER - a persistent webshell enabling malicious actors to upload and execute arbitrary Lua scripts. LINE DANCER - an in-memory implant enabling malicious actors to upload and execute arbitrary shellcode payloads.

Exfiltration

3 techniques
T1041Exfiltration Over C2 ChannelEvidence4

ADVSTORESHELL exfiltrates data over the same channel used for C2... Agrius exfiltrated staged data using tools such as Putty and WinSCP, communicating with command and control servers... numerous malware and groups sent victim data, files, credentials, or host information over existing C2 channels.

T1048Exfiltration Over Alternative ProtocolEvidence1

‘Line Runner’ and ‘Line Dancer’... were used collectively to conduct malicious actions on-target, which included... network traffic capture/exfiltration...

T1567Exfiltration Over Web ServiceEvidence1

The malicious actors generated text versions of the device’s configuration file so that it could be exfiltrated through web requests.

Other

2 techniques
T1562.001Disable or Modify ToolsEvidence1

MITRE TTPs ... Disabling syslog and tampering with AAA (T1562-001)

T1562.003Impair Command History LoggingEvidence1
INDICATORS OF COMPROMISE

IOCs tracked for this family

60 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Full values are available in Mallory.

View more in app
Network
60 tracked

IPs, domains, and DNS infrastructure linked to this family.

TypeValueLatest sighting
ip.v4●●●●●●●●●●●●View more in app2 years ago
ip.v4●●●●●●●●●●●●View more in app2 years ago
ip.v4●●●●●●●●●●●●View more in app2 years ago
ip.v4●●●●●●●●●●●●View more in app2 years ago
ip.v4●●●●●●●●●●●●View more in app2 years ago
ip.v4●●●●●●●●●●●●View more in app2 years ago
What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching60

Match every observed IP, domain, and hash against your live telemetry.

Threat actor attribution2

Named campaigns wielding this family, with evidence pinned to each claim.

Exploited vulnerabilities2

CVEs this family uses for access and lateral movement.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

MITRE ATT&CK mapping30

Every documented technique, ranked by evidence weight.

Researcher chatter

Reddit, Mastodon, and CTI community discussion around this family.