•Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
dist/cli.js:
await ctx.fs.writeFile(path, body);
await ctx.fs.writeFile(path, current);
await ctx.fs.writeFile(p, content);
headers: { authorization: `Bearer ${opts.key}`, "content-type": "application/json" },
async writeFile(path, content) {
for (const [p, c] of this.st.writes) await this.base.writeFile(p, c);
await ctx.fs.writeFile(path, next);
return join2(repoRoot, ".claude", "worktrees");
HighCredential Redirect Persistence
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
dist/cli.jsView on unpkg •Manifest-reachable source resolves another installed package, overwrites its runtime code, and injects package-defined remote behavior.
dist/cli.js:
DEFAULT_SKIP_DIRS = ["node_modules", ".git", "dist", ".tmp"];
await ctx.fs.writeFile(path, body);
await ctx.fs.writeFile(path, current);
await ctx.fs.writeFile(p, content);
res = await doFetch(current, { signal: ctl.signal, redirect: "manual", headers: { "user-agent": "agentx (+https://github.com/Livshitz/agentx)" } });
const res = await opts.fetch("https://api.anthropic.com/v1/messages", {
const tavilyEndpoint = options.endpoint ?? "https://api.tavily.com/search";
const firecrawlEndpoint = options.firecrawlEndpoint ?? "https://api.firecrawl.dev/v1/search";
HighEntrypoint Foreign Package Code Overwrite
Manifest-reachable source overwrites another installed package with package-defined remote behavior.
dist/cli.jsView on unpkg 35Trigger-reachable persistence chain: manifest.bin -> dist/cli.js
L35: if (content == null || typeof content === "string") return false;
L36: return content.some((p) => p.type === "image_url" && (p.image_url?.url ?? "").startsWith("data:"));
L37: }
...
L156: try {
L157: return parseImageRef(JSON.parse(content).imageRef);
L158: } catch (e) {
...
L295: CONFIG_FILE_RE = /(^|\/)\.(agent|claude)\/(settings(\.[\w-]+)?\.json|config\.(json|js|mjs|cjs|ts))$/i;
L296: SECRET_PAIR = /((?:^|[\s,{[])(?:export\s+)?["']?[\w.\-]*(?:KEY|TOKEN|SECRET|PASSWORD|PASSWD|CREDENTIAL|PRIVATE_KEY|ACCESS_?KEY|AUTH(?:_?TOKEN)?|BEARER)[\w.\-]*["']?\s*[:=]\s*)(["']...
L297: SECRET_TOKEN = /\b(sk-ant-[\w-]{12,}|sk-[A-Za-z0-9]{20,}|ghp_[A-Za-z0-9]{20,}|gho_[A-Za-z0-9]{20,}|github_pat_[\w]{20,}|xox[baprs]-[\w-]{10,}|AKIA[0-
HighTrigger Reachable Persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
dist/cli.jsView on unpkg · L35 851try {
L852: _dnsLookup = (await import("dns/promises")).lookup;
L853: } catch {
MediumDynamic Require
Package source references dynamic require/import behavior.
dist/cli.jsView on unpkg · L851 35if (content == null || typeof content === "string") return false;
L36: return content.some((p) => p.type === "image_url" && (p.image_url?.url ?? "").startsWith("data:"));
L37: }
...
L156: try {
L157: return parseImageRef(JSON.parse(content).imageRef);
L158: } catch (e) {
...
L295: CONFIG_FILE_RE = /(^|\/)\.(agent|claude)\/(settings(\.[\w-]+)?\.json|config\.(json|js|mjs|cjs|ts))$/i;
L296: SECRET_PAIR = /((?:^|[\s,{[])(?:export\s+)?["']?[\w.\-]*(?:KEY|TOKEN|SECRET|PASSWORD|PASSWD|CREDENTIAL|PRIVATE_KEY|ACCESS_?KEY|AUTH(?:_?TOKEN)?|BEARER)[\w.\-]*["']?\s*[:=]\s*)(["']...
L297: SECRET_TOKEN = /\b(sk-ant-[\w-]{12,}|sk-[A-Za-z0-9]{20,}|ghp_[A-Za-z0-9]{20,}|gho_[A-Za-z0-9]{20,}|github_pat_[\w]{20,}|xox[baprs]-[\w-]{10,}|AKIA[0-9A-Z]{12,}|AIza[\w-]{20,}|eyJ[\...
...
L935: if (blocked) return
MediumInstall Persistence
Source writes installer persistence such as shell profile or service configuration.
dist/cli.jsView on unpkg · L35