SpyPress.ROUNDCUBE
SpyPress.ROUNDCUBE is a malicious JavaScript payload used in ESET-tracked Operation RoundPress. It is injected into vulnerable Roundcube webmail instances via spearphishing emails that exploit XSS flaws in the webmail interface; the payload executes when the victim opens the malicious email in a vulnerable Roundcube portal. ESET reported Roundcube exploitation in 2023 and 2024, including CVE-2020-35730 and CVE-2023-43770. The broader campaign is assessed with medium confidence by ESET to be run by Sednit, also known as APT28, Fancy Bear, Forest Blizzard, and Sofacy, with the goal of stealing confidential data from selected email accounts. Observed targeting primarily involved governmental entities and defense-related organizations, especially in Eastern Europe and organizations connected to the war in Ukraine, with additional victims in Africa, Europe, and South America. Once deobfuscated, SpyPress.ROUNDCUBE is described as having functionality similar to SpyPress.MDAEMON: credential theft, exfiltration of the address book and the about page, exfiltration of emails, and creation of malicious Sieve rules. Some samples can log victims out and capture credentials when they reauthenticate through the legitimate login form, and some create Sieve rules that forward copies of incoming emails to an attacker-controlled address. The payload is obfuscated, uses randomized variable and function names, decrypts strings only when needed, lacks true persistence, and is reloaded whenever the victim reopens the malicious email. SpyPress payloads exfiltrate stolen data to hardcoded command-and-control servers via HTTP POST requests, typically with base64-encoded content. Reported SpyPress C2 infrastructure includes sqj[.]fr, tgh24[.]xyz, tuo[.]world, lsjb[.]digital, jiaw[.]shop, hfuu[.]de, raxia[.]top, rnl[.]world, hijx[.]xyz, and ikses[.]net.
Associated vulnerabilities
3 CVEs 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
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
SpyPress.ROUNDCUBE is the JavaScript payload injected into vulnerable Roundcube webmail instances. Once deobfuscated, it reveals similar functionalities to what is implemented in SpyPress.MDAEMON: credential stealing, exfiltration of the address book and the about page, exfiltration of emails, and malicious Sieve rules.
"The attackers unleash JavaScript payloads SpyPress.HORDE, SpyPress.MDAEMON, SpyPress.ROUNDCUBE, and SpyPress.ZIMBRA upon the targets."
Techniques & procedures
23 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
4 techniques
Resource Development
Sednit bought domains at various registrars.
Sednit rented servers at M247 and other hosting providers.
Sednit developed JavaScript stealers (SpyPress.HORDE, SpyPress.MDAEMON, SpyPress.ROUNDCUBE, and SpyPress.ZIMBRA) to steal data from webmail servers.
Sednit developed (or acquired) XSS exploits for Roundcube, Zimbra, Horde, and MDaemon.
Initial Access
1 technique
Initial Access
Sednit exploited known and zero-day vulnerabilities in webmail software to execute JavaScript code in the context of the victim’s webmail window.
Execution
2 techniques
Execution
SpyPress is a family of malicious JavaScript payloads... The payload runs inside an authenticated Roundcube session
the operation exploits cross-site scripting (XSS) vulnerabilities in Roundcube, Horde, MDaemon, and Zimbra webmail to inject JavaScript
Stealth
1 technique
Stealth
SpyPress payloads are obfuscated with an unknown JavaScript obfuscator.
Credential Access
5 techniques
Credential Access
Hooks the input[name=_pass] field; if empty, attaches a change listener and waits for the victim to type. POSTs _user + _pass + parent .username to the C2.
SpyPress payloads try to steal webmail credentials by creating a hidden login form, to trick the browser and password managers into filling the credentials.
SpyPress payloads can log out users to entice them into entering their credentials in a fake login form.
Uses the victim's CSRF token ( window.rcmail.env.request_token ) to call ?_task=addressbook&_source=0&_action=export
Harvests login credentials. Hooks the input[name=_pass] field... POSTs _user + _pass + parent .username to the C2.
Discovery
1 technique
Discovery
SpyPress payloads get information about the email account, such as the contact list.
Collection
6 techniques
Collection
Hooks the input[name=_pass] field; if empty, attaches a change listener and waits for the victim to type. POSTs _user + _pass + parent .username to the C2.
SpyPress payloads try to steal webmail credentials by creating a hidden login form, to trick the browser and password managers into filling the credentials.
SpyPress payloads collect and exfiltrate emails, from the victim’s mailbox.
SpyPress.MDAEMON adds a Sieve rule to forward any incoming email to an attacker-controlled email address.
SpyPress payloads automatically collect credentials and email messages.
exfiltrates address books, contacts, login history, and email messages
Command and Control
3 techniques
Command and Control
all exfiltrating to the same C2 endpoint via HTTP POST
In case of email forwarding rules, the exfiltration is done via email.
Data is base64 encoded before being sent to the C&C server.
Exfiltration
2 techniques
Exfiltration
SpyPress payloads automatically exfiltrate credentials and email messages to the C&C server.
all exfiltrating to the same C2 endpoint via HTTP POST... Exfiltration primitive: fetch(C2, {method:'POST', body: <stolen data>})
Observables
29 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.