VersaMem
- Type
- Webshell
- Capabilities
- Credential theftPersistencePost exploitation
VersaMem is a bespoke Java-based web shell used to compromise Versa Director servers and harvest credentials. It has been deployed by the China-linked threat actor Volt Typhoon through exploitation of CVE-2024-39717, a file-upload vulnerability initially exploited as a zero-day. The implant supports continued remote access and follow-on activity, including operations intended to gain access to downstream customer environments.
Delivered as a Java Archive, VersaMem attaches to the Apache Tomcat process and uses the Java Instrumentation API and Javassist to modify existing Java code in memory. It hooks the Catalina application filter chain's doFilter method to monitor inbound requests, inspect password parameters, and identify requests carrying follow-on Java modules. Captured credentials are staged locally on the compromised server. Its integration into the running web application enables credential interception and remote access through the legitimate server process.
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.
[VersaMem](https://attack.mitre.org/software/S1154) was used by [Volt Typhoon](https://attack.mitre.org/groups/G1017) as part of [Versa Director Zero Day Exploitation](https://attack.mitre.org/campaigns/C0039).(Citation: Lumen Versa 2024)
Techniques & procedures
15 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
4 techniques
Execution
[VersaMem](https://attack.mitre.org/software/S1154) was delivered as a Java Archive (JAR) that runs by attaching itself to the Apache Tomcat Java servlet and web server.(Citation: Lumen Versa 2024)
VersaMem was delivered as a Java Archive (JAR) that runs by attaching itself to the Apache Tomcat Java servlet and web server.
[VersaMem](https://attack.mitre.org/software/S1154) relied on the Java Instrumentation API and Javassist to dynamically modify Java code existing in memory.(Citation: Lumen Versa 2024)
[VersaMem](https://attack.mitre.org/software/S1154) was installed through exploitation of CVE-2024-39717 in Versa Director servers.(Citation: Lumen Versa 2024)
Persistence
2 techniques
Persistence
The group also deploys custom web shells like Awen, VersaMem, AuditReport, and iisstart.aspx, further enabling persistent remote access and control.
VersaMem relied on the Java Instrumentation API and Javassist to dynamically modify Java code existing in memory.
Privilege Escalation
1 technique
Privilege Escalation
VersaMem relied on the Java Instrumentation API and Javassist to dynamically modify Java code existing in memory.
Stealth
3 techniques
Stealth
The content repeatedly describes payloads, strings, configuration files, scripts, URLs, and binaries being obfuscated or encoded using Base64, XOR, RC4, AES, RSA, hex encoding, custom algorithms, and other methods across many malware families and threat actors.
[VersaMem](https://attack.mitre.org/software/S1154) encrypted captured credentials with AES then Base64 encoded them before writing to local storage.(Citation: Lumen Versa 2024)
[VersaMem](https://attack.mitre.org/software/S1154) deleted files related to initial installation such as temporary files related to the PID of the main web process.(Citation: Lumen Versa 2024)
Defense Impairment
1 technique
Defense Impairment
VersaMem relied on the Java Instrumentation API and Javassist to dynamically modify Java code existing in memory.
Credential Access
2 techniques
Credential Access
[VersaMem](https://attack.mitre.org/software/S1154) hooked the Catalina application filter chain `doFilter` on compromised systems to monitor all inbound requests to the local Tomcat web server, inspecting them for parameters like passwords and follow-on Java modules.(Citation: Lumen Versa 2024)
[VersaMem](https://attack.mitre.org/software/S1154) hooked and overrided Versa's built-in authentication method, `setUserPassword`, to intercept plaintext credentials when submitted to the server.(Citation: Lumen Versa 2024)
Discovery
1 technique
Discovery
[VersaMem](https://attack.mitre.org/software/S1154) hooked the Catalina application filter chain `doFilter` on compromised systems to monitor all inbound requests to the local Tomcat web server, inspecting them for parameters like passwords and follow-on Java modules.(Citation: Lumen Versa 2024)
Lateral Movement
1 technique
Lateral Movement
"UNC3886 has exploited CVE-2023-34048 to enable command execution on vCenter servers..." / "VersaMem was installed through exploitation of CVE-2024-39717 in Versa Director servers." / "SUPERNOVA was installed via exploitation of a SolarWinds Orion API authentication bypass vulnerability (CVE-2020-10148)."
Collection
3 techniques
Collection
[VersaMem](https://attack.mitre.org/software/S1154) hooked and overrided Versa's built-in authentication method, `setUserPassword`, to intercept plaintext credentials when submitted to the server.(Citation: Lumen Versa 2024)
The content repeatedly describes adversaries and malware storing collected data, command output, credentials, archives, or files in local temporary folders, working directories, hidden directories, registry locations, recycle bins, or specific files prior to exfiltration.
[VersaMem](https://attack.mitre.org/software/S1154) staged captured credentials locally at `/tmp/.temp.data`.(Citation: Lumen Versa 2024)
Recent activity
17 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.