1import{a as Ks,b as kt,g as Vs}from"./chunk-G57RZCXM.js";import{b as qs}from"./chunk-TRJTTBE2.js";import{a as Ao,b as Fs,f as bt,j as Ys}from"./chunk-LNXCJWOU.js";import{a as zs,c ...
L2: `)){let n=t.trim();if(!n||n.startsWith("#"))continue;let s=n.indexOf("=");if(s<0)continue;let i=n.slice(0,s).trim();if(!i||process.env[i]!==void 0)continue;let r=n.slice(s+1).trim(...
L3: `));try{let s=await fetch(n);if(!s.ok||!s.body){console.log(j.red(` Failed: ${s.status}`));return}let i=s.body.getReader(),r=new TextDecoder,a="";for(;;){let{done:c,value:d}=await...
CriticalSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution with blocking evidence.
dist/chunk-KUCCW2VG.jsView on unpkg · L1 204message: "coder-agent is not permitted to run commands against production."
L205: `,ci=[{relPath:"policy.yaml",content:ma},{relPath:"environments/production.yaml",content:pa},{relPath:"agents/coder-agent.yaml",content:ua}];var Ze=new fa().name("guard").descripti...
L206: `)),{path:t,changed:d,events:a,guardInstalled:c}}function fi(e={}){let o=e.path??et();if(!At(o))return{path:o,changed:!1,events:[],guardInstalled:!1};let t;try{t=JSON.parse(Ot(o,"u...
L207: `),{path:o,changed:r,events:i,guardInstalled:!1}}function Ct(e=et()){if(!At(e))return!1;try{return!!JSON.parse(Ot(e,"utf-8"))?.hooks?.Stop?.some?.(t=>It(t,wn))}catch{return!1}}var ...
L208: ${i} registered session(s) with no binding.`)),console.log()}catch(t){console.error(C.red(`Could not read attach state: ${xn(t)}`)),process.ex
CriticalCommand Output Exfiltration
Source executes local commands and sends command output to an external endpoint.
dist/chunk-KUCCW2VG.jsView on unpkg · L204 1Trigger-reachable chain: manifest.bin -> dist/cli.js -> dist/chunk-KUCCW2VG.js
L1: import{a as Ks,b as kt,g as Vs}from"./chunk-G57RZCXM.js";import{b as qs}from"./chunk-TRJTTBE2.js";import{a as Ao,b as Fs,f as bt,j as Ys}from"./chunk-LNXCJWOU.js";import{a as zs,c ...
L2: `)){let n=t.trim();if(!n||n.startsWith("#"))continue;let s=n.indexOf("=");if(s<0)continue;let i=n.slice(0,s).trim();if(!i||process.env[i]!==void 0)continue;let r=n.slice(s+1).trim(...
L3: `));try{let s=await fetch(n);if(!s.ok||!s.body){console.log(j.red(` Failed: ${s.status}`));return}let i=s.body.getReader(),r=new TextDecoder,a="";for(;;){let{done:c,value:d}=await...
L4: `);a=g.pop()||"";for(let l of g)if(l.startsWith("data: "))try{let u=JSON.parse(l.slice(6)),m=new Date(u.time).toLocaleTimeString(),f=u.message?.replace(/
CriticalTrigger Reachable Dangerous Capability
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/chunk-KUCCW2VG.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/chunk-KUCCW2VG.js:
import{a as Ks,b as kt,g as Vs}from"./chunk-G57RZCXM.js";import{b as qs}from"./chunk-TRJTTBE2.js";import{a as Ao,b as Fs,f as bt,j as Ys}from"./chunk-LNXCJWOU.js";import{a as zs,c ...
(${(l.duration/1e3).toFixed(1)}s)`)))}catch(s){console.log(j.red(` Failed: ${s.message}`)),console.log(j.dim(" Is the daemon running? Try: agentx daemon status"))}});De.command("...
`)),console.log(Ce.green(" \u2713 Created .env template"))),Ko(s)||(Xs(s,{recursive:!0}),console.log(Ce.green(" \u2713 Created .agentx/sessions/")));let a=Oo(o,".claude");Ko(a)||...
`))}catch(o){console.log(ge.red(` ${o.message}`)),process.exit(1)}
HighCredential Redirect Persistence
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
dist/chunk-KUCCW2VG.jsView on unpkg •Runtime or CLI code links a write operation to an explicit external AI-agent control path:
on reloaded (${e.url})`)):console.log(ee.yellow(` daemon reachable but returned ${o.status}`))}catch(o){console.log(ee.dim(` daemon not reachable (${o.message}). policy files are still read live on each check.`))}});ze.command("policy").description("print the resolved (merged) policy for an agent").option("--agent <id>","agent id").option("--root <dir>","agentx install root").action(e=>{let o=ds(jt(e),e.agent);console.log(json.stringify(o,null,2))});import{command as ea}from"commander";import c from"chalk";import{existssync as at,mkdirsync as ka,readfilesync as ot,writefilesync as gi}from"fs";import{homedir as va}from"os";import{dirname as xa,resolve as yn}from"path";var wn="/attach/",mi="/guard/ch
HighExternal Ai Agent Control Surface Mutation
Runtime or CLI source writes behavior-bearing configuration into a user or project AI-agent control surface.
dist/chunk-KUCCW2VG.jsView on unpkg