1Source sends the broad process environment to a literal external destination.
L1: #!/usr/bin/env node
L2: var NR="http://localhost:8787",as="anyray-placeholder",Ie=e=>{let t=e?.trim();return!!(t&&/^ark_[A-Za-z0-9_-]{20,512}$/.test(t))},Je=e=>{let t=e.trim().replace(/\/+$/,"");return t=...
L3: `;if(a||n.tombstoneAbsent!==!1)try{await vg(r,s)}catch(i){if(i.code!=="EEXIST")throw i}}let o=`${e}.anyray-tmp-${process.pid}-${Rg()}`;try{await vg(o,`${JSON.stringify(t,null,2)}
...
L5: `,{mode:384})}catch(a){throw await Wr(e,{recursive:!0,force:!0}).catch(()=>{}),a}return async()=>{try{JSON.parse(await cs(t,"utf-8")).nonce===r&&await Wr(e,{recursive:!0,force:!0})...
L6: `,{mode:384}),await Uu(r,384);try{await he(r,n)}catch(o){throw await Wr(r,{force:!0}).catch(()=>{}),o}},oe=async e=>{let t=await Bg
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 NR="http://localhost:8787",as="anyray-placeholder",Ie=e=>{let t=e?.trim();return!!(t&&/^ark_[A-Za-z0-9_-]{20,512}$/.test(t))},Je=e=>{let t=e.trim().replace(/\/+$/,"");return t=...
L3: `;if(a||n.tombstoneAbsent!==!1)try{await vg(r,s)}catch(i){if(i.code!=="EEXIST")throw i}}let o=`${e}.anyray-tmp-${process.pid}-${Rg()}`;try{await vg(o,`${JSON.stringify(t,null,2)}
HighChild Process
Package source references child process execution.
dist/index.jsView on unpkg · L1 119`).map(RD).join(" + [Environment]::NewLine + "),_D=(e={})=>{let t={...xD,...e},n=()=>t.platform()==="win32",r=async()=>{let i=(await ol(vt(),An))?.find(c=>c.startsWith("export COPI...
L120: `)):Z&&q&&await ei($,{force:!0}),await rl(c,Y,An)}catch(Le){try{W!==void 0&&q?await pe($,W):q&&await ei($,{force:!0})}catch{throw new Error("Copilot CLI environment update failed a...
L121: import { spawn } from "node:child_process"
1#!/usr/bin/env node
L2: var NR="http://localhost:8787",as="anyray-placeholder",Ie=e=>{let t=e?.trim();return!!(t&&/^ark_[A-Za-z0-9_-]{20,512}$/.test(t))},Je=e=>{let t=e.trim().replace(/\/+$/,"");return t=...
L3: `;if(a||n.tombstoneAbsent!==!1)try{await vg(r,s)}catch(i){if(i.code!=="EEXIST")throw i}}let o=`${e}.anyray-tmp-${process.pid}-${Rg()}`;try{await vg(o,`${JSON.stringify(t,null,2)}
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 NR="http://localhost:8787",as="anyray-placeholder",Ie=e=>{let t=e?.trim();return!!(t&&/^ark_[A-Za-z0-9_-]{20,512}$/.test(t))},Je=e=>{let t=e.trim().replace(/\/+$/,"");return t=...
`),await he(o,e),await HR(e,384),await jR(e)}finally{await zt(o,{force:!0}).catch(()=>{})}},_g=1,Sg=3e4,YR=5e3,ZR=/^[a-f0-9]{64}$/,Pg=e=>`${e}.pending`,JR=e=>`${e}.lock`,Lu=e=>{if(...
`)},fn=(e,t={})=>{let n=e.byoUpstream,r=!n&&X(e,"anthropic"),o=de({...e.metadata,tool:e.metadata.tool??"claude-code"}),a=t.includeClientKey!==!1&&!((r||n)&&e.viaLocalProxy),s=t.inc...
`)){let u=d.indexOf(":");if(u>0&&d.slice(0,u).trim().toLowerCase()===l)retur
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 97`),!0):!1};var Mt=e=>{if(e.length<=4)return"\u2026";let t=/^([a-z0-9]{2,6}_)/i.exec(e)?.[1]??"";return e.length>t.length+4?`${t}\u2026${e.slice(-4)}`:`\u2026${e.slice(-4)}`};var ve...
L98: `)):w&&y&&await Fp(d,{force:!0}),await rl(n,f)}catch(b){try{g!==void 0&&y?await pe(d,g):y&&await Fp(d,{force:!0})}catch{throw new Error("shell environment update failed and credent...
L99: `)?a.slice(0,-2):a.endsWith(`
...
L104: `);il("sqlite3",[e],{input:o,encoding:"utf-8",maxBuffer:Kp,stdio:["pipe","ignore","pipe"]})}finally{try{lP(n,{recursive:!0,force:!0})}catch{}}},gP={kind:"sqlite3-cli",readItem:(e,t...
L105: `,{mode:384}),await he(n,t)},TP=(e,t)=>e.generation||t.generation?!!(e.generation&&e.generation===t.generation):e.op===t.op&&e.requestedAt===t.requestedAt&&e.watcherPid===t.watcher...
L10
HighCommand Output Exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/index.jsView on unpkg · L97 97Trigger-reachable command-output exfiltration chain: scripts.start -> dist/index.js
L97: `),!0):!1};var Mt=e=>{if(e.length<=4)return"\u2026";let t=/^([a-z0-9]{2,6}_)/i.exec(e)?.[1]??"";return e.length>t.length+4?`${t}\u2026${e.slice(-4)}`:`\u2026${e.slice(-4)}`};var ve...
L98: `)):w&&y&&await Fp(d,{force:!0}),await rl(n,f)}catch(b){try{g!==void 0&&y?await pe(d,g):y&&await Fp(d,{force:!0})}catch{throw new Error("shell environment update failed and credent...
L99: `)?a.slice(0,-2):a.endsWith(`
...
L104: `);il("sqlite3",[e],{input:o,encoding:"utf-8",maxBuffer:Kp,stdio:["pipe","ignore","pipe"]})}finally{try{lP(n,{recursive:!0,force:!0})}catch{}}},gP={kind:"sqlite3-cli",readItem:(e,t...
L105: `,{mode:384}),await he(n,t)},TP=(e,t)=>e.generation||t.generation?!!(e.generation&&e.generation===t.gen
HighTrigger Reachable Command Output Exfiltration
A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.
dist/index.jsView on unpkg · L97 1Trigger-reachable persistence chain: scripts.start -> dist/index.js
L1: #!/usr/bin/env node
L2: var NR="http://localhost:8787",as="anyray-placeholder",Ie=e=>{let t=e?.trim();return!!(t&&/^ark_[A-Za-z0-9_-]{20,512}$/.test(t))},Je=e=>{let t=e.trim().replace(/\/+$/,"");return t=...
L3: `;if(a||n.tombstoneAbsent!==!1)try{await vg(r,s)}catch(i){if(i.code!=="EEXIST")throw i}}let o=`${e}.anyray-tmp-${process.pid}-${Rg()}`;try{await vg(o,`${JSON.stringify(t,null,2)}
...
L5: `,{mode:384})}catch(a){throw await Wr(e,{recursive:!0,force:!0}).catch(()=>{}),a}return async()=>{try{JSON.parse(await cs(t,"utf-8")).nonce===r&&await Wr(e,{recursive:!0,force:!0})...
L6: `,{mode:384}),await Uu(r,384);try{await he(r,n)}catch(o){throw await Wr(r,{force:!0}).catch(()=>{}),o}},oe=async e=>{let t=await Bg();try{awa
HighTrigger Reachable Persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
dist/index.jsView on unpkg · L1 1#!/usr/bin/env node
L2: var NR="http://localhost:8787",as="anyray-placeholder",Ie=e=>{let t=e?.trim();return!!(t&&/^ark_[A-Za-z0-9_-]{20,512}$/.test(t))},Je=e=>{let t=e.trim().replace(/\/+$/,"");return t=...
L3: `;if(a||n.tombstoneAbsent!==!1)try{await vg(r,s)}catch(i){if(i.code!=="EEXIST")throw i}}let o=`${e}.anyray-tmp-${process.pid}-${Rg()}`;try{await vg(o,`${JSON.stringify(t,null,2)}
...
L5: `,{mode:384})}catch(a){throw await Wr(e,{recursive:!0,force:!0}).catch(()=>{}),a}return async()=>{try{JSON.parse(await cs(t,"utf-8")).nonce===r&&await Wr(e,{recursive:!0,force:!0})...
L6: `,{mode:384}),await Uu(r,384);try{await he(r,n)}catch(o){throw await Wr(r,{force:!0}).catch(()=>{}),o}},oe=async e=>{let t=await Bg();try{await Fg(e)}finally{await t()}},Ug=async e...
L7: `)},fn=(e,t={})=>{let
HighBase64 Obscured Url
Source decodes a Base64-obscured HTTP endpoint at runtime.
dist/index.jsView on unpkg · L1 1#!/usr/bin/env node
L2: var NR="http://localhost:8787",as="anyray-placeholder",Ie=e=>{let t=e?.trim();return!!(t&&/^ark_[A-Za-z0-9_-]{20,512}$/.test(t))},Je=e=>{let t=e.trim().replace(/\/+$/,"");return t=...
L3: `;if(a||n.tombstoneAbsent!==!1)try{await vg(r,s)}catch(i){if(i.code!=="EEXIST")throw i}}let o=`${e}.anyray-tmp-${process.pid}-${Rg()}`;try{await vg(o,`${JSON.stringify(t,null,2)}
...
L5: `,{mode:384})}catch(a){throw await Wr(e,{recursive:!0,force:!0}).catch(()=>{}),a}return async()=>{try{JSON.parse(await cs(t,"utf-8")).nonce===r&&await Wr(e,{recursive:!0,force:!0})...
L6: `,{mode:384}),await Uu(r,384);try{await he(r,n)}catch(o){throw await Wr(r,{force:!0}).catch(()=>{}),o}},oe=async e=>{let t=await Bg();try{await Fg(e)}finally{await t()}},Ug=async e...
L7: `)},fn=(e,t={})=>{let
MediumInstall Persistence
Source writes installer persistence such as shell profile or service configuration.
dist/index.jsView on unpkg · L1