1Source sends the broad process environment to a literal external destination.
L1: #!/usr/bin/env node
L2: var oR="http://localhost:8787",Fa="anyray-placeholder",xe=e=>{let t=e?.trim();return!!(t&&/^ark_[A-Za-z0-9_-]{20,512}$/.test(t))},Mt=e=>{let t=e.trim().replace(/\/+$/,"");return t=...
L3: `;if(a||n.tombstoneAbsent!==!1)try{await Zy(r,s)}catch(i){if(i.code!=="EEXIST")throw i}}let o=`${e}.anyray-tmp-${process.pid}-${qy()}`;try{await Zy(o,`${JSON.stringify(t,null,2)}
...
L5: `,{mode:384})}catch(a){throw await Co(e,{recursive:!0,force:!0}).catch(()=>{}),a}return async()=>{try{JSON.parse(await Ha(t,"utf-8")).nonce===r&&await Co(e,{recursive:!0,force:!0})...
L6: `,{mode:384}),await gu(r,384);try{await me(r,n)}catch(o){throw await Co(r,{force:!0}).catch(()=>{}),o}},se=async e=>{if(mu.getStore
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 oR="http://localhost:8787",Fa="anyray-placeholder",xe=e=>{let t=e?.trim();return!!(t&&/^ark_[A-Za-z0-9_-]{20,512}$/.test(t))},Mt=e=>{let t=e.trim().replace(/\/+$/,"");return t=...
L3: `;if(a||n.tombstoneAbsent!==!1)try{await Zy(r,s)}catch(i){if(i.code!=="EEXIST")throw i}}let o=`${e}.anyray-tmp-${process.pid}-${qy()}`;try{await Zy(o,`${JSON.stringify(t,null,2)}
HighChild Process
Package source references child process execution.
dist/index.jsView on unpkg · L1 110`).map(iD).join(" + [Environment]::NewLine + "),lD=(e={})=>{let t={...sD,...e},n=()=>t.platform()==="win32",r=async()=>{let i=(await Ec(ft(),ln))?.find(c=>c.startsWith("export COPI...
L111: `)):q&&ae&&await xs(W,{force:!0}),await Ic(c,oe,ln)}catch(Q){try{j!==void 0&&ae?await ye(W,j):ae&&await xs(W,{force:!0})}catch{throw new Error("Copilot CLI environment update faile...
L112: import { spawn } from "node:child_process"
1#!/usr/bin/env node
L2: var oR="http://localhost:8787",Fa="anyray-placeholder",xe=e=>{let t=e?.trim();return!!(t&&/^ark_[A-Za-z0-9_-]{20,512}$/.test(t))},Mt=e=>{let t=e.trim().replace(/\/+$/,"");return t=...
L3: `;if(a||n.tombstoneAbsent!==!1)try{await Zy(r,s)}catch(i){if(i.code!=="EEXIST")throw i}}let o=`${e}.anyray-tmp-${process.pid}-${qy()}`;try{await Zy(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 oR="http://localhost:8787",Fa="anyray-placeholder",xe=e=>{let t=e?.trim();return!!(t&&/^ark_[A-Za-z0-9_-]{20,512}$/.test(t))},Mt=e=>{let t=e.trim().replace(/\/+$/,"");return t=...
`),await me(o,e),await uR(e,384),await mR(e)}finally{await Bt(o,{force:!0}).catch(()=>{})}},eg=1,Yy=3e4,yR=5e3,gR=/^[a-f0-9]{64}$/,tg=e=>`${e}.pending`,wR=e=>`${e}.lock`,lu=e=>{if(...
`)},zt=(e,t={})=>{let n=e.byoUpstream,r=!n&&z(e,"anthropic"),o=ue({...e.metadata,tool:e.metadata.tool??"claude-code"}),a=t.includeClientKey!==!1,s=t.includeAuthToken!==!1,{contextW...
`)){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 94`).trim().split(/\r?\n/).at(-1),o=/^([01])\|(-?\d+)\|(-?\d+)$/.exec(r??"");Ew(o?.slice(1).map(Number))},$T=(e,t)=>{let n=RT(Iw(PT(),"anyray-cursor-"));try{let o=[".bail on",".timeo...
L95: `);_c("sqlite3",[e],{input:o,encoding:"utf-8",maxBuffer:dp,stdio:["pipe","ignore","pipe"]})}finally{try{OT(n,{recursive:!0,force:!0})}catch{}}},MT={kind:"sqlite3-cli",readItem:(e,t...
L96: `,{mode:384}),await me(n,t)},qT=(e,t)=>e.generation||t.generation?!!(e.generation&&e.generation===t.generation):e.op===t.op&&e.requestedAt===t.requestedAt&&e.watcherPid===t.watcher...
L97: `),A_=e=>{let t=y_(e);for(;;){if(Ie(Po(t,".git")))return t;let n=ob(t);if(n===t)return null;t=n}},C_=e=>e.authMode!=="placeholder",en=()=>Po(rb(),".cursor","hooks.json"),tn=()=>Po(...
...
L106: `,{mode:384}),await kP(a.home,s.sl
HighCommand Output Exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/index.jsView on unpkg · L94 94Trigger-reachable command-output exfiltration chain: scripts.start -> dist/index.js
L94: `).trim().split(/\r?\n/).at(-1),o=/^([01])\|(-?\d+)\|(-?\d+)$/.exec(r??"");Ew(o?.slice(1).map(Number))},$T=(e,t)=>{let n=RT(Iw(PT(),"anyray-cursor-"));try{let o=[".bail on",".timeo...
L95: `);_c("sqlite3",[e],{input:o,encoding:"utf-8",maxBuffer:dp,stdio:["pipe","ignore","pipe"]})}finally{try{OT(n,{recursive:!0,force:!0})}catch{}}},MT={kind:"sqlite3-cli",readItem:(e,t...
L96: `,{mode:384}),await me(n,t)},qT=(e,t)=>e.generation||t.generation?!!(e.generation&&e.generation===t.generation):e.op===t.op&&e.requestedAt===t.requestedAt&&e.watcherPid===t.watcher...
L97: `),A_=e=>{let t=y_(e);for(;;){if(Ie(Po(t,".git")))return t;let n=ob(t);if(n===t)return null;t=n}},C_=e=>e.authMode!=="placeholder",en=()=>Po(rb(
HighTrigger Reachable Command Output Exfiltration
A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.
dist/index.jsView on unpkg · L94 1#!/usr/bin/env node
L2: var oR="http://localhost:8787",Fa="anyray-placeholder",xe=e=>{let t=e?.trim();return!!(t&&/^ark_[A-Za-z0-9_-]{20,512}$/.test(t))},Mt=e=>{let t=e.trim().replace(/\/+$/,"");return t=...
L3: `;if(a||n.tombstoneAbsent!==!1)try{await Zy(r,s)}catch(i){if(i.code!=="EEXIST")throw i}}let o=`${e}.anyray-tmp-${process.pid}-${qy()}`;try{await Zy(o,`${JSON.stringify(t,null,2)}
...
L5: `,{mode:384})}catch(a){throw await Co(e,{recursive:!0,force:!0}).catch(()=>{}),a}return async()=>{try{JSON.parse(await Ha(t,"utf-8")).nonce===r&&await Co(e,{recursive:!0,force:!0})...
L6: `,{mode:384}),await gu(r,384);try{await me(r,n)}catch(o){throw await Co(r,{force:!0}).catch(()=>{}),o}},se=async e=>{if(mu.getStore()===!0){await ag(e);return}let t=await dg();try{...
L7: `)},zt=(e,t={})=>{let
HighBase64 Obscured Url
Source decodes a Base64-obscured HTTP endpoint at runtime.
dist/index.jsView on unpkg · L1