VersaMem is a web shell that MITRE ATT&CK says was built for Versa Director servers, which help manage SD-WAN networks. It is a Java Archive that captures logon credentials and can run further Java payloads. MITRE lists it as used by Volt Typhoon in a zero-day campaign against ISPs and MSPs in 2024.
What it does
Versa Director is a product used to manage SD-WAN networks, and CISA says some Internet Service Providers and Managed Service Providers use it. MITRE says VersaMem was placed on these servers after the attackers had broken in, so that they could keep stealing logon details and run more code.
MITRE describes it as running inside the web server rather than as a separate program. It hooks the login routine and the web request path, so it sees passwords as people submit them.
Names
Public sources use several names for this malware.
What it can do
The ATT&CK techniques the cited sources map to this tool, by tactic. Each id opens our technique page where one exists, otherwise MITRE.
Execution
Command and Scripting Interpreter T1059
It ships as a Java Archive that runs by attaching itself to the Apache Tomcat servlet and web server.[1]
Exploitation for Client Execution T1203
It was installed by exploiting CVE-2024-39717 in Versa Director servers.[1]
Shared Modules T1129
It uses the Java Instrumentation API and Javassist to change Java code that is already in memory.[1]
Credential Access
Input Capture: Credential API Hooking T1056.004
It hooks and overrides Versa's own authentication method, setUserPassword, to catch plaintext credentials as they are submitted.[1]
Network Sniffing T1040
It hooks the Tomcat filter chain to watch all inbound requests to the local web server for passwords and for follow-on Java modules.[1]
Collection
Stealth
Obfuscated Files or Information: Encrypted/Encoded File T1027.013
It encrypts captured credentials with AES and then Base64 encodes them before writing them to local storage.[1]
Indicator Removal: File Deletion T1070.004
It deletes files left from the first install, such as temporary files tied to the process ID of the main web process.[1]
How it spreads
MITRE says VersaMem was installed after attackers exploited CVE-2024-39717 in Versa Director servers. CISA lists this flaw in its Known Exploited Vulnerabilities Catalog (added 23 August 2024) as an unrestricted file upload flaw in the Versa Director GUI. MITRE describes the campaign as aimed at Versa Director servers at managed service providers and internet service providers, to enable follow-on access to the providers' clients. No government source found describes any other way it spreads.
How an infection runs
The order of steps in a typical infection, as the sources describe it.
Exploit the flaw
Attackers exploit a vulnerability in Versa Director servers, since identified as CVE-2024-39717, for initial access and code execution.[2]
Deliver the web shell
The exploitation is followed by delivery of the VersaMem web shell, for credential theft and follow-on code execution.[2]
Capture credentials
VersaMem hooks the login routine, then encrypts and stages captured credentials locally.[1]
Reach the clients
MITRE says the credentials let attackers gain follow-on access to the clients of the service provider.[2]
Timeline
- 7 February 2024
CISA, NSA and FBI advisory on Volt Typhoon
AA24-038A says the agencies assess that PRC state-sponsored actors are pre-positioning on IT networks of US critical infrastructure. It does not mention VersaMem or Versa Director.[6]
- June 2024
Versa Director exploitation begins
MITRE dates the campaign it attributes to Volt Typhoon from early June 2024.[2]
- 22 August 2024
CVE-2024-39717 published
The National Vulnerability Database record for the Versa Director flaw is first published.[5]
- August 2024
- August 23, 2024
Added to CISA catalog
CISA adds CVE-2024-39717 to its Known Exploited Vulnerabilities Catalog, based on evidence of active exploitation.[3]
- August 27, 2024
CISA alert on Versa Director
CISA urges organizations to apply updates, hunt for malicious activity and report positive findings to CISA.[4]
Who uses it
Detection and defense
What Brandefense can do
- Scan your domain in Brandefense Atlas, free
Atlas checks public sources for leaked credentials, phishing domains, dark web mentions and data sales, then gives your domain a risk grade. Free, no sign-up.
- Cyber Threat Intelligence
Brandefense Cyber Threat Intelligence tracks malware families and the infrastructure they use, and shares indicators your team can check against its own systems.
Frequently Asked Questions
What is VersaMem?
MITRE ATT&CK calls it a web shell designed for deployment to Versa Director servers following exploitation, delivered as a Java Archive. It captures logon credentials and can run further Java payloads.
Which flaw was used to install it?
MITRE says VersaMem was installed through exploitation of CVE-2024-39717 in Versa Director servers. CISA added that flaw to its Known Exploited Vulnerabilities Catalog on 23 August 2024.
Who is linked to VersaMem?
MITRE ATT&CK lists Volt Typhoon as the user, in a campaign it dates June to August 2024. CISA's alerts on the Versa flaw do not name an actor.
Who was targeted?
MITRE says the campaign focused on Versa Director servers at managed service providers and internet service providers, to enable follow-on access to their clients.
What should defenders do?
CISA urges organizations to apply updates for the Versa flaw, hunt for malicious activity and report positive findings to CISA.
Sources
- VersaMem, Software S1154MITRE ATT&CK · Supports: Description, techniques, discovery in August 2024, CVE-2024-39717, Volt Typhoon link.
- Versa Director Zero Day Exploitation, Campaign C0039MITRE ATT&CK · Supports: Campaign dates, targets, order of events.
- CISA Adds One Known Exploited Vulnerability to Catalog for Versa Networks DirectorCISA · Supports: Catalog addition on 23 August 2024.
- Versa Networks Releases Advisory for a Vulnerability in Versa Director, CVE-2024-39717CISA · Supports: Product use, risk, CISA actions urged.
- CVE-2024-39717 recordNIST National Vulnerability Database · Supports: Flaw description and publication date.
- PRC State-Sponsored Actors Compromise and Maintain Persistent Access to U.S. Critical Infrastructure, AA24-038ACISA, NSA, FBI · Supports: Agency assessment of Volt Typhoon and mitigations.
- NSA, ASD Release Guidance for Mitigating Web Shell MalwareCISA · Supports: Official web shell detection and prevention guidance.
- Guidance and Strategies to Protect Network Edge DevicesCISA · Supports: Joint edge device guidance, 4 February 2025.
