1168var EventEmitter = __require("node:events").EventEmitter;
L1169: var childProcess = __require("node:child_process");
L1170: var path2 = __require("node:path");
2008}
L2009: const execArgv = process2.execArgv ?? [];
L2010: if (execArgv.includes("-e") || execArgv.includes("--eval") || execArgv.includes("-p") || execArgv.includes("--print")) {
•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-main.mjs:
baseURL: "https://codero.sohailsyed.com/api",
baseURL: "https://api.mistral.ai/v1",
baseURL: "https://api.deepseek.com",
baseURL: "https://openrouter.ai/api/v1",
baseURL: "https://9router.com/v1",
function isSameOrigin(url2, baseUrl) {
return new URL(url2).origin === new URL(baseUrl).origin;
message: `${description} API key must be a string.`
HighCredential Redirect Persistence
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
dist/cli-main.mjsView on unpkg •Manifest-reachable source resolves another installed package, overwrites its runtime code, and injects package-defined remote behavior.
dist/cli-main.mjs:
// node_modules/commander/lib/error.js
"node_modules/commander/lib/error.js"(exports) {
// node_modules/commander/lib/argument.js
"node_modules/commander/lib/argument.js"(exports) {
// node_modules/commander/lib/help.js
"node_modules/commander/lib/help.js"(exports) {
* Detect manually wrapped and indented strings by checking for line break followed by whitespace.
* Format the "item", which consists of a term and description. Pad the term and wrap the description, indenting the following lines.
HighEntrypoint Foreign Package Code Overwrite
Manifest-reachable source overwrites another installed package with package-defined remote behavior.
dist/cli-main.mjsView on unpkg 58* Constructs the CommanderError class
L59: * @param {number} exitCode suggested exit code which could be used with process.exit
L60: * @param {string} code an id string representing the error
...
L1168: var EventEmitter = __require("node:events").EventEmitter;
L1169: var childProcess = __require("node:child_process");
L1170: var path2 = __require("node:path");
...
L1218: this._outputConfiguration = {
L1219: writeOut: (str) => process2.stdout.write(str),
L1220: writeErr: (str) => process2.stderr.write(str),
...
L1257: * @returns {Command[]}
L1258: * @private
L1259: */
HighCloud Metadata Access
Source reaches cloud instance metadata or link-local credential endpoints.
dist/cli-main.mjsView on unpkg · L58 1168var EventEmitter = __require("node:events").EventEmitter;
L1169: var childProcess = __require("node:child_process");
L1170: var path2 = __require("node:path");
...
L3892: name: "BraveCode AI",
L3893: baseURL: "https://codero.sohailsyed.com/api",
L3894: envKey: "BRAVECODE_API_KEY",
...
L19895: }
L19896: const content = fs.readFileSync(authPath, "utf8");
L19897: if (!content) {
...
L30990: availableTools = void 0,
L30991: message = `Model tried to call unavailable tool '${toolName}'. ${availableTools === void 0 ? "No tools are available." : `Available tools: ${availableTools.join(", ")}.`}`
L30992: }) {
HighRemote Agent Bridge
Source exposes local file and command tools to a remote model endpoint.
dist/cli-main.mjsView on unpkg · L1168 •Runtime or CLI code links a write operation to an explicit external AI-agent control path:
.log(`
opened ${url2} in browser
`);
} catch (error40) {
console.log(`
could not open browser automatically.`);
console.log(`please open this url manually: ${url2}
`);
}
});
program2.command("fetch <url>").description("fetch content from a url").option("-m, --method <method>", "http method", "get").option("-d, --data <data>", "request body for post/put").action(async (url2, options2) => {
const method = options2.method || "get";
console.log(`
fetching ${url2} (${method})...
`);
try {
const response = await fetch(url2, {
method,
headers: {
"user-agent": "bravecode-ai/1.0"
},
body: options2
HighExternal Ai Agent Control Surface Mutation
Runtime or CLI source writes behavior-bearing configuration into a user or project AI-agent control surface.
dist/cli-main.mjsView on unpkg •matchType = normalized_sha256
matchedPackage = bravecode-cli@0.1.43
matchedPath = dist/cli-main.mjs
matchedIdentity = npm:YnJhdmVjb2RlLWNsaQ:0.1.43
similarity = 1.000
summary = normalized source hash matched finalized malicious source
HighKnown Malware Source Similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/cli-main.mjsView on unpkg 12import { createRequire as __braveCreateRequire } from 'module';
L13: const require = __braveCreateRequire(import.meta.url);
L14: var __create = Object.create;
MediumDynamic Require
Package source references dynamic require/import behavior.
dist/cli-main.mjsView on unpkg · L12