1099async function bootstrapCodexModelCache(codexHome, cachePath) {
L1100: const child = spawn(process.execPath, [codexCliScriptPath(), "app-server", "--stdio"], {
L1101: env: { ...process.env, CODEX_HOME: codexHome },
L1102: stdio: ["pipe", "pipe", "pipe"]
L1103: });
L1104: await new Promise((resolve4, reject) => {
L1105: let settled = false;
HighSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/mcp-factories.jsView on unpkg · L1099 •Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
dist/mcp-factories.js:
writeFileSync
writeFileSync(secretFile, `${envValue}
writeFileSync(secretFile, `${secret}
return process.env.NEGOTIUM_CODEX_AUTH_FILE || join(process.env.CODEX_HOME || join(homedir(), ".codex"), "auth.json");
writeFileSync as writeFileSync3
writeFileSync3(fd, payload);
import { existsSync as existsSync4, readFileSync as readFileSync5, writeFileSync as writeFileSync4 } from "fs";
const projectsDir = join3(homedir2(), ".claude", "projects", encodeClaudeCwd(opts.cwd));
HighCredential Redirect Persistence
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
dist/mcp-factories.jsView on unpkg •Manifest-reachable source resolves another installed package, overwrites its runtime code, and injects package-defined remote behavior.
dist/mcp-factories.js:
writeFileSync
const candidate = resolve(dir, "node_modules", ".bin", name);
writeFileSync(secretFile, `${envValue}
writeFileSync(secretFile, `${secret}
writeFileSync as writeFileSync3
writeFileSync3(fd, payload);
import { existsSync as existsSync4, readFileSync as readFileSync5, writeFileSync as writeFileSync4 } from "fs";
copyFileSync,
HighEntrypoint Foreign Package Code Overwrite
Manifest-reachable source overwrites another installed package with package-defined remote behavior.
dist/mcp-factories.jsView on unpkg 1099async function bootstrapCodexModelCache(codexHome, cachePath) {
L1100: const child = spawn(process.execPath, [codexCliScriptPath(), "app-server", "--stdio"], {
L1101: env: { ...process.env, CODEX_HOME: codexHome },
...
L1103: });
L1104: await new Promise((resolve4, reject) => {
L1105: let settled = false;
L1106: let stdoutBuffer = "";
L1107: let stderr = "";
...
L1114: try {
L1115: child.stdin.end();
L1116: child.kill();
HighCommand Output Exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/mcp-factories.jsView on unpkg · L1099 1099Trigger-reachable command-output exfiltration chain: manifest.exports -> dist/mcp-factories.js
L1099: async function bootstrapCodexModelCache(codexHome, cachePath) {
L1100: const child = spawn(process.execPath, [codexCliScriptPath(), "app-server", "--stdio"], {
L1101: env: { ...process.env, CODEX_HOME: codexHome },
...
L1103: });
L1104: await new Promise((resolve4, reject) => {
L1105: let settled = false;
L1106: let stdoutBuffer = "";
L1107: let stderr = "";
...
L1114: try {
L1115: child.stdin.end();
L1116: child.kill();
HighTrigger Reachable Command Output Exfiltration
A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.
dist/mcp-factories.jsView on unpkg · L1099