1Source sends the broad process environment to a literal external destination.
L1: #!/usr/bin/env node
L2: var JP="http://localhost:8787",pi="anyray-placeholder",lk=/^ark_[A-Za-z0-9_-]{20,512}$/,XP="ark_svc_",zP=/^ark_svc_[A-Za-z0-9_-]{20,512}$/,Pe=e=>{let t=e?.trim();return!!(t&&lk.tes...
L3: `,{mode:384})}catch(c){throw await La(e,{recursive:!0,force:!0}).catch(()=>{}),c}return async()=>{try{JSON.parse(await mi(o,"utf-8")).nonce===s&&await La(e,{recursive:!0,force:!0})...
L4: `,{mode:384}),await Pf(r,384);try{await ke(r,n)}catch(o){throw await La(r,{force:!0}).catch(()=>{}),o}},pe=async e=>{if(Ol.getStore()===!0){await _f(e);return}let t=await Lf();try{...
L5: `;if(a||n.tombstoneAbsent!==!1)try{await Pk(r,s)}catch(i){if(i.code!=="EEXIST")throw i}}let o=`${e}.anyray-tmp-${process.pid}-${Bk
CriticalHardcoded Runtime Data Exfiltration
Source sends credentials or rich application records to a package-controlled external receiver enabled by default.
dist/index.jsView on unpkg · L1 1#!/usr/bin/env node
L2: var JP="http://localhost:8787",pi="anyray-placeholder",lk=/^ark_[A-Za-z0-9_-]{20,512}$/,XP="ark_svc_",zP=/^ark_svc_[A-Za-z0-9_-]{20,512}$/,Pe=e=>{let t=e?.trim();return!!(t&&lk.tes...
L3: `,{mode:384})}catch(c){throw await La(e,{recursive:!0,force:!0}).catch(()=>{}),c}return async()=>{try{JSON.parse(await mi(o,"utf-8")).nonce===s&&await La(e,{recursive:!0,force:!0})...
HighChild Process
Package source references child process execution.
dist/index.jsView on unpkg · L1 116`).map(TF).join(" + [Environment]::NewLine + "),DF=(e={})=>{let t={..._F,...e},n=()=>t.platform()==="win32",r=async()=>{let i=(await Di(mt(),jn))?.find(c=>c.startsWith("export COPI...
L117: `)):G&&ae&&await tc(I,{force:!0}),await bd(c,K,jn)}catch(we){try{X!==void 0&&ae?await ve(I,X):ae&&await tc(I,{force:!0})}catch{throw new Error("Copilot CLI environment update faile...
L118: import { spawn } from "node:child_process"
1#!/usr/bin/env node
L2: var JP="http://localhost:8787",pi="anyray-placeholder",lk=/^ark_[A-Za-z0-9_-]{20,512}$/,XP="ark_svc_",zP=/^ark_svc_[A-Za-z0-9_-]{20,512}$/,Pe=e=>{let t=e?.trim();return!!(t&&lk.tes...
L3: `,{mode:384})}catch(c){throw await La(e,{recursive:!0,force:!0}).catch(()=>{}),c}return async()=>{try{JSON.parse(await mi(o,"utf-8")).nonce===s&&await La(e,{recursive:!0,force:!0})...
HighSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/index.jsView on unpkg · L1 •Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
dist/index.js:
var JP="http://localhost:8787",pi="anyray-placeholder",lk=/^ark_[A-Za-z0-9_-]{20,512}$/,XP="ark_svc_",zP=/^ark_svc_[A-Za-z0-9_-]{20,512}$/,Pe=e=>{let t=e?.trim();return!!(t&&lk.tes...
`,{mode:384}),await Pf(r,384);try{await ke(r,n)}catch(o){throw await La(r,{force:!0}).catch(()=>{}),o}},pe=async e=>{if(Ol.getStore()===!0){await _f(e);return}let t=await Lf();try{...
`)},Tn=(e,t={})=>{let n=e.byoUpstream,r=!n&&se(e,"anthropic"),o=be({...e.metadata,tool:e.metadata.tool??"claude-code"}),a=t.includeClientKey!==!1,s=t.includeAuthToken!==!1,{context...
`:"";return{text:a,outcome:a===e?"unchanged":"changed"}};import{readFile as
HighCredential Redirect Persistence
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
dist/index.jsView on unpkg 51WantedBy=timers.target
L52: `,WN=(e=od())=>[e.command,...e.args].map(t=>/\s/.test(t)?`"${t}"`:t).join(" "),vi=e=>["Auto-refresh scheduling is not wired for this OS. To keep your gateway","key from expiring mi...
L53: ${t.stderr??""}`}},XN=async e=>{try{return(await VN(e)).isDirectory()}catch{return!1}},zN=e=>{if(/^Signature=adhoc$/m.test(e))return;let n=/^TeamIdentifier=(.+)$/m.exec(e)?.[1]?.tr...
L54: `),o=jo(r),a=1;for(;a<r.length;){let s=o[a];if(s.kind==="table"||s.kind==="key"&&!iL(r[a],s.key))break;a+=1}for(;a>1&&r[a-1].trim()==="";)a-=1;return`${n.replace(/\n+$/,`
HighCommand Output Exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/index.jsView on unpkg · L51 1#!/usr/bin/env node
L2: var JP="http://localhost:8787",pi="anyray-placeholder",lk=/^ark_[A-Za-z0-9_-]{20,512}$/,XP="ark_svc_",zP=/^ark_svc_[A-Za-z0-9_-]{20,512}$/,Pe=e=>{let t=e?.trim();return!!(t&&lk.tes...
L3: `,{mode:384})}catch(c){throw await La(e,{recursive:!0,force:!0}).catch(()=>{}),c}return async()=>{try{JSON.parse(await mi(o,"utf-8")).nonce===s&&await La(e,{recursive:!0,force:!0})...
L4: `,{mode:384}),await Pf(r,384);try{await ke(r,n)}catch(o){throw await La(r,{force:!0}).catch(()=>{}),o}},pe=async e=>{if(Ol.getStore()===!0){await _f(e);return}let t=await Lf();try{...
L5: `;if(a||n.tombstoneAbsent!==!1)try{await Pk(r,s)}catch(i){if(i.code!=="EEXIST")throw i}}let o=`${e}.anyray-tmp-${process.pid}-${Bk()}`;try{if(await Pk(o,`${JSON.stringify(t,null,2)...
...
L51: WantedBy=timers
HighCloud Metadata Access
Source reaches cloud instance metadata or link-local credential endpoints.
dist/index.jsView on unpkg · L1 51Trigger-reachable command-output exfiltration chain: scripts.start -> dist/index.js
L51: WantedBy=timers.target
L52: `,WN=(e=od())=>[e.command,...e.args].map(t=>/\s/.test(t)?`"${t}"`:t).join(" "),vi=e=>["Auto-refresh scheduling is not wired for this OS. To keep your gateway","key from expiring mi...
L53: ${t.stderr??""}`}},XN=async e=>{try{return(await VN(e)).isDirectory()}catch{return!1}},zN=e=>{if(/^Signature=adhoc$/m.test(e))return;let n=/^TeamIdentifier=(.+)$/m.exec(e)?.[1]?.tr...
L54: `),o=jo(r),a=1;for(;a<r.length;){let s=o[a];if(s.kind==="table"||s.kind==="key"&&!iL(r[a],s.key))break;a+=1}for(;a>1&&r[a-1].trim()==="";)a-=1;return`${n.replace(/\n+$/,`
HighTrigger Reachable Command Output Exfiltration
A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.
dist/index.jsView on unpkg · L51 1#!/usr/bin/env node
L2: var JP="http://localhost:8787",pi="anyray-placeholder",lk=/^ark_[A-Za-z0-9_-]{20,512}$/,XP="ark_svc_",zP=/^ark_svc_[A-Za-z0-9_-]{20,512}$/,Pe=e=>{let t=e?.trim();return!!(t&&lk.tes...
L3: `,{mode:384})}catch(c){throw await La(e,{recursive:!0,force:!0}).catch(()=>{}),c}return async()=>{try{JSON.parse(await mi(o,"utf-8")).nonce===s&&await La(e,{recursive:!0,force:!0})...
L4: `,{mode:384}),await Pf(r,384);try{await ke(r,n)}catch(o){throw await La(r,{force:!0}).catch(()=>{}),o}},pe=async e=>{if(Ol.getStore()===!0){await _f(e);return}let t=await Lf();try{...
L5: `;if(a||n.tombstoneAbsent!==!1)try{await Pk(r,s)}catch(i){if(i.code!=="EEXIST")throw i}}let o=`${e}.anyray-tmp-${process.pid}-${Bk()}`;try{if(await Pk(o,`${JSON.stringify(t,null,2)...
...
L51: WantedBy=timers
HighBase64 Obscured Url
Source decodes a Base64-obscured HTTP endpoint at runtime.
dist/index.jsView on unpkg · L1