Skip to content
Art Template Npm Supply Chain Compromise

Art Template Npm Supply Chain Compromise

safedep.io • October 29, 2026

Update 3 July, 2026 The attackers published version 4.13.7 on June 27, 2026, using a new throwaway account ( npmpacketmaintainmember8 , Proton Mail). They unpublished versions 4.13.5 and 4.13.6 from npm and rotated out the old publisher account. The injection technique has changed. Instead of appending a loadScript() function after the browser bundle, the malicious code is now embedded inside a webpack module within the minified template-web.js , making it harder to spot. It uses string splitting ( "sc"+"ript" ) and atob() base64 encoding to evade static scanning. The target URL is still v3.jiathis[.]com . The Coruna exploit kit infrastructure documented below is offline. Both utaq.cfww[.]shop and l1ewsu3yjkqeroy[.]xyz have no DNS records. The jia.js payload on v3.jiathis[.]com now redirects victims to test.airsplu[.]cn , a Chinese gambling and adult content portal, instead of delivering the iOS exploit chain. The redirect is time-gated to Beijing evening hours (7 PM to 6 AM CST, 100% probability) with 30% probability during daytime, and uses a 12-hour cookie to avoid repeated redirects. Infrastructure analysis revealed that jiathis.com and mki.mom (the gambling portal backend) the same Cloudflare nameserver pair, indicating they are managed under the same Cloudflare account. The hijacked JiaThis domain is itself a supply chain weapon: any website that still loads the old JiaThis social sharing widget gets the gambling redirect injected. The original author’s blog post reveals the takeover mechanism. In November 2024, the author received an acquisition proposal from KILLER WHAL AI SDN BHD (Malaysian company, registration 202001036306). The author performed due diligence through the Malaysian Companies Commission, found the company appeared legitimate, and voluntarily transferred ownership of the npm package and GitHub repository. This was not credential theft. It was social engineering through acquisition fraud.

The attackers published version 4.13.7 on June 27, 2026, using a new throwaway account ( npmpacketmaintainmember8 , Proton Mail). They unpublished versions 4.13.5 and 4.13.6 from npm and rotated out the old publisher account.

The injection technique has changed. Instead of appending a loadScript() function after the browser bundle, the malicious code is now embedded inside a webpack module within the minified template-web.js , making it harder to spot. It uses string splitting ( "sc"+"ript" ) and atob() base64 encoding to evade static scanning. The target URL is still v3.jiathis[.]com .

The Coruna exploit kit infrastructure documented below is offline. Both utaq.cfww[.]shop and l1ewsu3yjkqeroy[.]xyz have no DNS records. The jia.js payload on v3.jiathis[.]com now redirects victims to test.airsplu[.]cn , a Chinese gambling and adult content portal, instead of delivering the iOS exploit chain. The redirect is time-gated to Beijing evening hours (7 PM to 6 AM CST, 100% probability) with 30% probability during daytime, and uses a 12-hour cookie to avoid repeated redirects.

Infrastructure analysis revealed that jiathis.com and mki.mom (the gambling portal backend) the same Cloudflare nameserver pair, indicating they are managed under the same Cloudflare account. The hijacked JiaThis domain is itself a supply chain weapon: any website that still loads the old JiaThis social sharing widget gets the gambling redirect injected.

The original author’s blog post reveals the takeover mechanism. In November 2024, the author received an acquisition proposal from KILLER WHAL AI SDN BHD (Malaysian company, registration 202001036306). The author performed due diligence through the Malaysian Companies Commission, found the company appeared legitimate, and voluntarily transferred ownership of the npm package and GitHub repository. This was not credential theft. It was social engineering through acquisition fraud.

Update 21 May, 2026 Attackers still control the project. The original codeowner, who transferred ownership to the new maintainers and first reported the attack in this GitHub issue , has published a blog post documenting multiple attempts to publish malicious versions, including this one. The current maintainers have since deleted the security issue from the repository.

Attackers still control the project. The original codeowner, who transferred ownership to the new maintainers and first reported the attack in this GitHub issue , has published a blog post documenting multiple attempts to publish malicious versions, including this one. The current maintainers have since deleted the security issue from the repository.

The npm package art-template , a JavaScript template engine with ~33,600 weekly downloads, has been compromised through an acquisition fraud that gave attackers control of the npm and GitHub accounts. Versions 4.13.3 through 4.13.7 contain unauthorized code in the browser bundle ( template-web.js ) that loads external JavaScript from third-party domains. The original project author confirmed the compromise on May 20, 2026.

Unauthorized code in template-web.js injects external tags into any page using the browser bundle

The external domain ( v3.jiathis[.]com ) serves a multi-stage payload when the request includes a Referer header (as browser tags do)

The payload injects Baidu Analytics tracking on all visitors and targets iPhone users with a hidden iframe chain leading to an obfuscated JavaScript payload

The final payload is the Coruna exploit kit (606KB across 14 remote modules), an iOS browser exploit framework exploiting CVE-2024-23222 (JSC type confusion, CVSS 8.8) among 23 vulnerabilities across iOS 13.0 through 17.2.1. It chains WebAssembly type confusion through JIT heap spray, ASLR bypass via dyld shared cache parsing, to ARM64 native shellcode (31KB, 80 functions, 26 syscalls). The final-stage implant (PLASMAGRID) targets cryptocurrency wallets

The exploit kit fingerprints the victim’s browser (WebRTC, MathML, touch, Safari), classifies devices into five categories, and serves device-specific exploit chains targeting arm64e

IP/OS telemetry syncs to a C2 at l1ewsu3yjkqeroy[.]xyz (Cloudflare-fronted) every 10 seconds

Four different npm accounts published these versions across three attack waves, none of them the original author ( aui )

The original author’s GitHub account ( aui ) was renamed to goofychris in late November 2024

The takeover originated from an acquisition fraud: a Malaysian company (KILLER WHAL AI SDN BHD) approached the original author, who voluntarily transferred ownership after due diligence

What we cannot verify:

Whether any end user was impacted by the iOS exploit kit or the gambling redirects

Indicators of Compromise (IoC):

[email protected] (SHA256: e27a0e28da18a7978dd0139bccf48ec5c39454fda6384c95fc0fb004b3b502a2 )

[email protected] (SHA256: 273206e2973df6ba7474aa66693797c98dcf26b794da4c3e863ab8d8c694868d )

[email protected] (SHA256: 5b5fe5d92808a732d0d44246cd706295cc739ed7f4dcae19112df666bc5d4f7d , unpublished from npm)

[email protected] (SHA256: 101afde88ff8b5c02fd341eda55022a39203088c2ff11dcb73214911cf5afb77 , unpublished from npm)

Stage-2 payload (current): v3.jiathis[.]com/code/jia.js (SHA256: 7c59001d7bdd0dfb04b89d2de3d71b18975b20f22b2af880911413fb29cfdff0 , gambling redirect)

Stage-2 payload (original): v3.jiathis[.]com/code/jia.js / v3.jiathis[.]com/code/art.js (SHA256: d8e3973a0b3c5359d1f53a22491b56bdd31dee13a51c01c7126bc6694584512f , iOS exploit kit, no longer served)

Stage-4 loader (offline): 49554fde7424c31c.js (SHA256: f31bdd069fe7966ae11be1f78ee5dd44445938856dd1df12379e0e84a6851f5c )

Exploit modules (offline): utaq.cfww[.]shop/gooll/*.js (14 modules, 606KB total)

C2 infrastructure (offline): utaq.cfww[.]shop ( 180.178.50.158 , AS45753 Netsec Limited, Hong Kong)

C2 sync endpoint (offline): l1ewsu3yjkqeroy[.]xyz/api/ip-sync/sync (Cloudflare-fronted: 172.67.141.14 , 104.21.40.254 )

Gambling redirect: test.airsplu[.]cn ( 45.197.102.29 , Huawei CDN)

Gambling portal: s5gw.mki[.]mom (Azure, via 500info[.]win CNAME), s5dh[.]club (Azure)

Baidu Analytics trackers: 7d86eb847ecfd3c972fa457a6abaa0da (injected payload), a29b02d841cccc4c4b32f9c5dbebb0b0 (gambling pages)

External script domains: v3.jiathis[.]com , git.youzzjizz[.]com (offline)

npm publishers: v4v5qc ( eb8org@gmail[.]com ), npmpacketmaintainmember7 ( npmpacketmaintainmember7@proton[.]me ), npmpacketmaintainmember8 ( npmpacketmaintainmember8@proton[.]me )

npm maintainer: daughtrymom ( goofychris69@gmail[.]com ), persistent across all phases

Social engineering entity: KILLER WHAL AI SDN BHD (Malaysia, registration 202001036306)

Last known clean version: 4.13.2 (published November 13, 2018 by aui )

Package Overview and Account History

art-template is a JavaScript template engine popular in the Chinese developer community. The original author, tangbin (GitHub: aui , npm: aui ), published the last legitimate version, 4.13.2, in November 2018.

Someone renamed the GitHub account aui to goofychris in late November 2024. GitHub’s API shows the goofychris user “created” on November 27, 2024, but the repository goofychris/art-template retains its original creation date of June 3, 2012. This confirms an account rename, not a new fork. The old aui URLs redirect.

Two README commits followed on December 7, 2024, authored by goofychris (not the original 糖饼 display name), updating URLs from aui to goofychris . We do not know if the original author renamed the account themselves or if someone compromised it. Either way, the rename preceded the npm compromise by three months.

On npm, the picture is different. The original aui account is no longer a maintainer of art-template or any of its companion packages ( express-art-template , art-template-loader , koa-art-template ). Someone replaced it with daughtrymom ( [email protected] ) across all four packages. The art-template package also lists npmpacketmaintainmember7 ( [email protected] ).

Neither daughtrymom nor npmpacketmaintainmember7 has any history with the art-template project before 2025.

The npm _npmUser field records who actually ran npm publish for each version. Four different accounts published the five unauthorized versions:

The v4v5qc account is no longer a maintainer and has no other packages on npm. It published the March 2025 versions using Node 18.19.0 and npm 9.2.0. The npmpacketmaintainmember7 and npmpacketmaintainmember8 accounts published the 2026 versions using Node 24.15.0 and npm 11.12.1. All are throwaway accounts. Each wave of publishes uses a fresh account, and the old account is removed from the maintainers list after rotation.

Timeline of Unauthorized Versions

Three phases over sixteen months. v4v5qc handled the first; npmpacketmaintainmember7 handled the second; npmpacketmaintainmember8 handled the third. Versions 4.13.5 and 4.13.6 were unpublished from npm after 4.13.7 was released.

The injected code targets only the browser bundle ( lib/template-web.js ). The Node.js entry point ( index.js ) loads lib/index.js , which does not import template-web.js . The browser bundle is a self-contained UMD module used when art-template is loaded via a tag or bundled for client-side rendering.

The package.json has no install hooks ( preinstall , postinstall ). The scripts field is unchanged from 4.13.2. The injection affects browser-side consumers only, not server-side Node.js usage.

Differential Analysis

Comparing 4.13.5 against the last clean version (4.13.2):

File-level diff shows modifications only in:

lib/template-web.js : script injection appended

lib/compile/runtime.js : GitHub URL updated from aui to goofychris , minor code change

lib/compile/adapter/rule.native.js : one-line code change ( escaping), trailing newline

package.json : version bump and URL changes

README.md : all aui GitHub URLs changed to goofychris

The non- template-web.js changes are cosmetic, reflecting the GitHub account rename.

Injected Code: Versions 4.13.5 and 4.13.6

Both versions append a loadScript function after the legitimate template-web.js bundle:

Version 4.13.6 is identical except for the URL:

The code creates a element and appends it to document.head , loading JavaScript from v3.jiathis[.]com . The uid=artemplate parameter in 4.13.5 ties the request to this specific compromised package.

JiaThis was a legitimate Chinese social sharing widget service founded in 2009 in Beijing. The original domain registration (through Alibaba Cloud) expired around April 2025. The domain is now registered through GoDaddy with Domains By Proxy privacy and routed through Cloudflare. The homepage shows a generic Cloudflare maintenance page with a placeholder footer (

The external scripts on v3.jiathis[.]com use server-side filtering: a bare curl request returns a single whitespace byte, but adding a Referer header (as a browser tag sends automatically) returns a 3,906-byte JavaScript payload. Both jia.js and art.js serve identical content.

The art.js variant pads the response with ~3,500 bytes of blank lines before the code, pushing the payload off-screen in browser dev tools.

Stage 2: Tracking and iPhone targeting. The payload has two components:

The first component loads Baidu Analytics ( hm.baidu[.]com ) with tracker ID 7d86eb847ecfd3c972fa457a6abaa0da on every visitor, regardless of device. This gives the attacker traffic analytics across all compromised sites.

The second component runs only on iPhones. It base64-decodes hxxps://utaq.cfww[.]shop/ , creates a zero-pixel iframe, and hides it inside a closed Shadow DOM root. The closed shadow root prevents document.querySelector from finding the iframe, and the display: none parent div hides it from visual inspection.

Stage 3: Nested iframe chain. The iframe destination ( utaq.cfww[.]shop , IP 180.178.50.158 , AS45753 Netsec Limited, Hong Kong) serves a landing page that nests another hidden iframe:

That page loads a 50KB obfuscated JavaScript file ( 49554fde7424c31c.js ).

Stage 4: Modular malware loader. The 50KB script ( 49554fde7424c31c.js , SHA256: f31bdd069fe7966ae11be1f78ee5dd44445938856dd1df12379e0e84a6851f5c ) is a malware framework with three components: a custom module system, a device fingerprinting engine, and a C2 sync loop.

Module system. The script registers a global object ( obChTK ) that acts as a module loader. It bundles two pre-loaded modules as base64-encoded code blocks in a dictionary keyed by SHA1 hashes:

57620206d62079baad0e57e6d9ec93120c0f5247 : a BigInt/byte-manipulation runtime library (8,309 bytes decoded)

14669ca3b1519ba2a8f40be287f646d4d7593eb0 : the device fingerprinting engine (12,475 bytes decoded)

The loader also has a remote fetch capability ( ZKvD0e ). For modules not bundled locally, it generates a URL by computing SHA256("cecd08aa6ff548c2" + moduleKey) (truncated to 40 chars), appends .js , and fetches it from the server. The downloaded code is executed via new Function() . This design means the final payloads exist only on the attacker’s server and cannot be extracted through static analysis.

Device fingerprinting. The second pre-bundled module runs browser fingerprinting before any payload is delivered:

navigator.platform check for MacIntel

TouchEvent support detection (distinguishes mobile from desktop)

WebRTC capability probing: mozRTCPeerConnection , RTCPeerConnection , webkitRTCPeerConnection , RTCIceGatherer

MathML rendering test: creates a hidden element with mathcolor="blue" and checks computed style for rgb(0, 0, 255) . Headless browsers and analysis sandboxes often fail this check

Safari-specific detection and MobileStore/1.0 User-Agent matching

Based on these signals, the engine classifies the victim into one of five device categories (stored as boolean flags: wF8NpI , LJ1EuL , CpDW_T , IqxL92 , or a fallback). Each category triggers a different remote module fetch. The script references 14 unique SHA1 module hashes across these branches:

The framework also enforces a threshold gate: a counter value ( xn ) must exceed 130,000 before any payload executes. At 160,000+, an additional function ( Hn ) runs. This delay-based gating helps evade short-lived analysis sandboxes.

C2 sync loop. After fingerprinting, the payload enters a persistent reporting loop:

The C2 domain l1ewsu3yjkqeroy[.]xyz resolves to Cloudflare IPs ( 172.67.141.14 , 104.21.40.254 ), a different infrastructure provider than the iframe host utaq.cfww[.]shop ( 180.178.50.158 , AS45753 Hong Kong). The Cloudflare fronting makes the C2 traffic blend with legitimate HTTPS requests.

Stage 5: iOS browser exploit kit (Coruna). The 14 remote modules are still live on utaq.cfww[.]shop/gooll/ at time of writing. We downloaded and analyzed all of them (606KB total). They form a complete exploit kit targeting Safari on iPhone and iPad (arm64e).

The architecture matches the Coruna exploit kit documented by Google Threat Intelligence Group in 2025. Coruna contains 5 full iOS exploit chains covering iOS 13.0 through 17.2.1, using 23 total exploits. The primary WebKit RCE for the most recent chain (codename “cassowary”, targeting iOS 16.6 through 17.2.1) is CVE-2024-23222 , a type confusion in JavaScriptCore (CVSS 8.8, patched in iOS 17.3). Apple confirmed it was exploited in the wild . CISA added it to the Known Exploited Vulnerabilities catalog .

The fingerprints that identify this as Coruna:

Module URL derivation via SHA256(cookie + ID)[:40] with .min.js extension (our instance uses password cecd08aa6ff548c2 )

XOR-encoded string literals using [].map(x => String.fromCharCode(x ^ key)).join("") with per-string keys

XOR-encoded integer constants ( (1111970405 ^ 1111966034) )

5 device-specific exploit chains with browser fingerprinting

Hidden iframe injection as delivery mechanism

Binary payloads masquerading as .min.js files

Google TAG attributed Coruna’s use to three groups: a commercial surveillance vendor, Russian espionage group UNC6353, and Chinese financially-motivated threat actor UNC6691. The Baidu Analytics tracking, JiaThis domain, and Chinese-language infrastructure in this instance are consistent with UNC6691’s profile. Coruna’s final-stage implant (PLASMAGRID) targets cryptocurrency wallets including MetaMask, Trust Wallet, Phantom, and Exodus.

XOR-decoded string literals inside each module confirm the exploit stages:

Vulnerability trigger and JIT exploitation:

ea3da0cf (18KB): Instantiates malformed WebAssembly modules with externref type confusion. The Wasm bytecode is embedded as base64 (magic bytes \x00asm confirmed). This triggers a bug in JavaScriptCore

57cb8c64 (24KB): Sprays the JIT heap with new Uint32Array(10000000) , exploits NaN-boxing confusion ( (() => {return -NaN})() ), and corrupts array bounds to create out-of-bounds read/write. Contains a crafted function that manipulates array elements with specific double-precision floats to overflow bounds checks

e3b6ba10 (24KB): Builds addrof / fakeobj primitives using BigUint64Array for 64-bit address read/write

d11d34e4 (42KB): Leaks JSC internal pointers using tagged values ( 0xfffe000000022334 , 0xfffe000000055432 , etc.) and SVG feConvolveMatrix filter elements for WebKit heap layout manipulation. References HeaderSeed , EncryptedBlocks , HeaderKey , and CPUType fields from a custom binary format

ba712ef6 (9KB): Parses the dyld shared cache (string literal dyld_v1 arm64e confirms the target architecture). Reads __TEXT , __LINKEDIT , and __AUTH_CONST segment offsets to resolve framework base addresses

Native code execution (5 device-specific chains):

477db22c (28KB): Used in branches 1 and 2. References JavaScriptCore.framework , _jitCagePtr , __ZN3JSC10LinkBuffer8linkCodeERNS_14MacroAssemblerENS_20JITCompilationEffortE (JSC JIT compilation), _malloc , __platform_memmove , UIKitCore.framework . This module bypasses the JIT cage and injects executable code

171a7da1 (37KB): Branch 3. References CoreFoundation.framework , CFRunLoopObserverCreateWithHandler , ActionKit.framework

91b278dd (37KB): Branch 4. References IOKit.framework , mprotect , dlsym , libSystem.B.dylib

b586c882 (36KB): Branch 5 (fallback). References WebCore.framework , xsltFreeTransformContext , libReverseProxyDevice.dylib

Post-exploitation payload:

7f809f32 (137KB) and c03c6f66 (164KB): Two payload variants. Both embed 31KB of compiled ARM64 machine code (confirmed by instruction decoding: 80 function prologues, 100 RET instructions). The shellcode makes 26 direct syscalls via SVC #0x80 :

The shellcode also references Apple frameworks including SpringBoard.framework , PassKitCore.framework , HomeSharing.framework , and CoreML.framework . The ptrace(PT_DENY_ATTACH) call prevents runtime debugging, and the csops call interacts with code signing enforcement.

Two additional helper modules ( 29b874a9 , 20KB and 9db8a84a , 15KB) contain WasmJitCageCallPrimitive and CFRunLoopObserverCreateWithHandler references, providing variant-specific exploit gadgets for the different branches.

Injected Code: Version 4.13.3

The earliest unauthorized version used String.fromCharCode to obfuscate the target URL:

The char codes decode to hxxps://git.youzzjizz[.]com/git.js . The initBaiduShare callback mimics the API of Baidu , another Chinese social sharing service, making the injected code look like a legitimate integration on casual inspection. The use of String.fromCharCode hides the URL from simple string-based scanning.

The publisher botched this version. The package contained only 6 files, missing most of the lib/ directory. The index.js entry point requires lib/index.js and lib/extension.js , neither of which exists. Any Node.js consumer would hit a MODULE_NOT_FOUND error. Only the browser bundle ( template-web.js ) would function if loaded directly via a tag.

The daughtrymom account is now the sole maintainer of three companion packages:

express-art-template (last published by aui in 2018, ~5K weekly downloads)

art-template-loader (last published by aui in 2017)

koa-art-template (last published by aui in 2017)

None have received new versions, but maintainer control has changed. The original aui npm account no longer appears on any of them. Anyone who controls the daughtrymom account can publish new versions of all three at any time.

Pin art-template to version 4.13.2 or earlier. If your application uses the browser bundle, audit whether any version from 4.13.3 onward reached production. Check CDN caches and build artifacts for references to v3.jiathis[.]com or git.youzzjizz[.]com .

This is not a tracking pixel or ad injection. The compromised package delivers the Coruna exploit kit , an iOS browser exploit framework with 5 chains and 23 exploits covering iOS 13.0 through 17.2.1, including CVE-2024-23222 (JavaScriptCore type confusion, CVSS 8.8). Any iPhone user visiting a page that loads the compromised browser bundle can be targeted with native code execution, no interaction required. The final-stage implant (PLASMAGRID) targets cryptocurrency wallets. The exploit infrastructure (14 remote modules on utaq.cfww[.]shop , C2 at l1ewsu3yjkqeroy[.]xyz ) was still live at time of analysis.

The root cause: someone gained control of the original author’s GitHub and npm accounts, renamed the GitHub user, swapped out the npm maintainers, and used throwaway accounts to publish. The exact mechanism (credential compromise, social engineering, account recovery abuse) is not public.

GitHub Issue #665: Security Incident Report

art-template GitHub Repository

Google TAG: Coruna iOS Exploit Kit Analysis

CVE-2024-23222: JavaScriptCore Type Confusion (NVD)

CISA Known Exploited Vulnerabilities Catalog

The Latest from SafeDep blogs

Follow for the latest updates and insights on open source security & engineering

Anyone can compute eight eMudhra intermediate CA private keys from public certificates. Browsers block the compromised intermediates, but CI runners, containers, JVMs and Go binaries can still trust...

Every wheel of LiteLLM 1.107.0 on PyPI installs a credential stealer and a remote code execution backdoor. Both run each time Python starts. The code is not in the upstream GitHub source.

19 npm packages carry a Miasma-family worm that steals credentials, spreads to other packages and installs a wiper. The newest builds start the worm when an application loads the package.

An attacker pushed forged commits to the default branches of hugo-paper and mevn-cli. Running npm install or bun install in either repository downloads and runs a second-stage script from...

Start free with open source tools on your machine. Scale to a unified platform for your organization.