BADCANDY
- Type
- Webshell
- Capabilities
- PersistencePost exploitationReconnaissanceExfiltration
- Platforms
- Network device
BadCandy is a Lua-based web shell implant targeting Cisco IOS XE network devices, including routers, switches, and wireless controllers. Observed since October 2023, it is deployed following exploitation of CVE-2023-20198 in exposed web management interfaces. The implant provides root-level remote access and arbitrary command execution, enabling network reconnaissance, data exfiltration, and unauthorized account creation. It has been used in telecommunications espionage associated with the China state-sponsored threat actor Salt Typhoon, but its use is not exclusive to that group.
BadCandy does not survive a device reboot. Attackers can nevertheless restore access by re-exploiting devices that remain vulnerable and exposed, while unauthorized accounts, stolen credentials, and configuration changes may provide additional access after the implant is removed. Operators have also applied a non-persistent patch after compromise to mask devices' vulnerability status. Renewed activity occurred throughout 2024 and 2025, including widespread compromises in Australia. The Australian Signals Directorate assessed that more than 400 Australian devices were potentially compromised since July 2025, with more than 150 still compromised in late October 2025.
Associated vulnerabilities
1 CVE Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
In one campaign, the threat actor deployed BadCandy ... a malicious web shell implant known to be leveraged by Salt Typhoon, to maintain persistent and stealthy remote access.
Techniques & procedures
5 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
Exploitation begins with CVE-2023-20198, which allows an unauthenticated attacker to create a privileged local user on the device.
Execution
1 technique
Execution
With this access, attackers can execute arbitrary commands, conduct network reconnaissance, and exfiltrate data.
Persistence
2 techniques
Persistence
...allowing bad actors to create an administrator account on said devices.
The threat actor deployed BadCandy ... a malicious web shell implant known to be leveraged by Salt Typhoon, to maintain persistent and stealthy remote access.
Discovery
1 technique
Discovery
With this access, attackers can execute arbitrary commands, conduct network reconnaissance, and exfiltrate data.
Recent activity
14 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.