Socket Finds Six Malicious Packagist Themes Bundling Trojanized JavaScript

· Original article ↗

Summary

Socket researchers identified six malicious ophimcms Composer themes on Packagist that bundle JavaScript for URL exfiltration, redirects, ad injection and click hijacking. One redirect chain uses infrastructure linked to FUNNULL.

Key points

  • The six malicious ophimcms themes distribute their payloads in bundled JavaScript, often disguised as jQuery; the article says the PHP code is not malicious.
  • One payload sends current page URLs to userstat[.]net; this chain has no geographic restriction, and the article says its attribution to FUNNULL is unconfirmed.
  • A separate payload in theme-dy loads a second stage from union[.]macoms[.]la and redirects qualifying mobile visitors, with checks including local time, referrer and administrator cookies.
  • Other analyzed behaviors include ad injection, click hijacking, full-screen ad overlays, unauthorized analytics and anti-debugging.
  • Socket links the union[.]macoms[.]la payload to FUNNULL using previously documented infrastructure indicators and reports it was updated on March 10, 2026.
  • The article reports approximately 2,750 total installs across the six packages and says Socket submitted takedown requests.
  • Recommended steps include removing affected themes, auditing bundled JavaScript and checking outbound requests for the identified infrastructure.

Article Details

Attack Vectors
  • Six malicious Composer packages under the ophimcms namespace on Packagist distribute trojanized JavaScript assets disguised as legitimate libraries.
  • The bundled JavaScript loads a second-stage payload from union[.]macoms[.]la, redirecting qualifying mobile visitors to gambling and adult content.
  • JavaScript in theme-dy, theme-mtyy, and theme-rrdyw sends the visitor's current page URL to userstat[.]net.
  • Other package payloads inject desktop or mobile ads, hijack clicks, and load third-party ad scripts.
  • The theme-motchill payload displays a full-screen ad overlay; theme-legend uses anti-debugging behavior and redirects when developer tools are detected.
Defensive Notes
  • Remove affected themes and audit bundled JavaScript, including code appended after a library's closing IIFE or injected into the Sizzle engine.
  • Audit outbound requests for userstat[.]net, union[.]macoms[.]la, 23[.]225[.]52[.]67:4466, and cre-ads[.]com.
  • Check localStorage for keys prefixed MPAd_ and notify users if an affected theme was deployed because their browsing activity may have been exfiltrated.
  • Flag Composer packages that bundle JavaScript vendor libraries without integrity verification, and monitor for the reported Caesar-cipher and custom Base64 obfuscation patterns.
  • Treat domains resolving through .nqsaaskw[.]com CNAMEs as FUNNULL infrastructure, as recommended by the article.

Indicators of compromise

TypeIndicatorContext
DOMAINcre-ads[.]comAd-network domain whose external script is loaded by the theme-pcc click-hijacking payload.
DOMAINdxtv1[.]comIdentified as a FUNNULL device-routing redirect hub.
DOMAINim[.]ue8im[.]comAd-image hosting domain used by the theme-rrdyw desktop ad-injection payload.
DOMAINunion[.]macoms[.]laFUNNULL-attributed second-stage payload and mobile redirect infrastructure.
DOMAINuserstat[.]netURL-exfiltration C2 domain receiving the current page URL from injected JavaScript.
EMAILdev@ophim[.]ccPackage-publisher email attributed in the article to packages carrying FUNNULL-linked payloads.
EMAILopdlnf01@gmail[.]comPackage-publisher email attributed in the article to packages carrying ad-injection, click-hijacking, and anti-debugging payloads.
HOSTNAMEb0ca39f0[.]nqsaaskw[.]comIntermediate hostname in the reported DNS route for union[.]macoms[.]la, associated with FUNNULL infrastructure.
HOSTNAMEg941875[.]cdn[.]nqsaaskw[.]comReported DNS destination in the routing chain for union[.]macoms[.]la, associated with FUNNULL CDN infrastructure.
HOSTNAMEoss-cn-guangzhou[.]ailyunoss[.]comAlibaba Cloud typosquat identified in the FUNNULL redirect chain.
SHA256fdfcbf04343f4eb89bab9eaf40fee178d9002a42c7949c9bbd24c0e8831a04b0SHA-256 hash identified for the malicious union[.]macoms[.]la/jquery.min-3.6.8.js payload.
URLhxxp[:]//23[.]225[.]52[.]67:4466/vip344[.]htmlHardcoded ad-injection C2 endpoint used by the injected desktop ad script.
URLhxxps[:]//cre-ads[.]com/G0bJZf9Uj1Specific external ad script loaded by the click-hijacking payload.
URLhxxps[:]//github[.]com/binhnguyen1998822GitHub account linked through commit history to creation of theme-dy, which contains malicious payloads.
URLhxxps[:]//github[.]com/ophimcmsGitHub organization through which the article reports the malicious packages were published.
URLhxxps[:]//github[.]com/phantom0803GitHub account linked through commit history to the package organization and malicious package operation.
URLhxxps[:]//union[.]macoms[.]la/jquery.min-3.6.8.jsSpecific URL from which the FUNNULL-linked second-stage JavaScript payload is fetched.

MITRE ATT&CK

Threat Actors

Vendors

Products

Countries

Related Articles