live · scanning repos
Scanrepo
github.com / jackwener

jackwener/OpenCLI

JavaScript·2363 files·commit 9bc5f5c·scanned 7d ago·cached ✓
15/100
LOW RISK
Minor findings consistent with the project type. Nothing reachable from install hooks.

score capped at 15 — 31,149+ stars — findings likely false positives

scored by engine v10: rules have changed since, rescan for the current result

verdict accurate?
31,149 stars
Partial architecture graph
threat-state: lowlive

FINDINGS ░▒▓

criticalFunction() constructor detectednew Function() is equivalent to eval() and can execute arbitrary code strings.src/browser/article-extract.ts
    '  // guard (if typeof module === "object"), which is falsy here.',
    '  const libs = (new Function(',
    '    readabilitySrc + "\\n" + readerableSrc + "\\nreturn {" +',
    '    " Readability:...
+5
criticalFunction() constructor detectednew Function() is equivalent to eval() and can execute arbitrary code strings.src/browser/compound.test.ts
function runCompound(mockEl: unknown): CompoundInfo | null {
  const fn = new Function('el', `${COMPOUND_INFO_JS}\nreturn compoundInfoOf(el);`);
  return fn(mockEl) as CompoundInfo | null;
}
+5
criticaleval() usage detectedeval() executes arbitrary code and is commonly used in malware to run obfuscated payloads fetched from remote servers.src/browser/dom-helpers.test.ts
    // Should resolve without throwing
    await expect(eval(code)).resolves.not.toThrow();
    g.document = origDoc;
    delete g.window;
+8
criticalFunction() constructor detectednew Function() is equivalent to eval() and can execute arbitrary code strings.src/browser/html-tree.test.ts
    };
    const fn = new Function('document', `return ${js};`);
    return fn(fakeDocument) as HtmlTreeResult;
}
+5
criticaleval() usage detectedeval() executes arbitrary code and is commonly used in malware to run obfuscated payloads fetched from remote servers.src/browser/stealth.test.ts
    expect(r.run(`new Function('x', 'debugger; return x + 1')(4)`)).toBe(5);
    expect(r.run(`eval('debugger; 6')`)).toBe(6);
    expect(r.run(`Function('return "use debugger mode"')()`)).toBe('use d...
+8
criticaleval() usage detectedeval() executes arbitrary code and is commonly used in malware to run obfuscated payloads fetched from remote servers.src/weixin-download.test.ts

    const extractInPage = eval(mod.buildExtractWechatPublishTimeJs()) as (publishTimeText: string, htmlStr: string) => string;

    expect(extractInPage(
+8
criticalchild_process / exec usageExecuting shell commands can be used to download and run malware, exfiltrate data, or modify system files.autoresearch/eval-skill.ts
  try {
    const output = execSync(
      `claude -p --dangerously-skip-permissions --allowedTools "Bash(opencli:*)" --system-prompt ${JSON.stringify(skillContent)} --output-format json --no-session-...
+8
warningVM code executionvm.runInNewContext or similar can execute arbitrary code in a sandboxed context that may be escaped.clis/douban/utils.test.js

    return vm.runInNewContext(script, { document, URL });
}
+4
warningVM code executionvm.runInNewContext or similar can execute arbitrary code in a sandboxed context that may be escaped.clis/xiaohongshu/comment-script.test.js
    const axios = { post: async () => { writes++; return response; } };
    const wrapper = vm.runInNewContext(`() => axios.post(${JSON.stringify(endpoint)})`, { axios });
    const req = () => {};
  ...
+4
criticalHTTP response executed as codeThe body of an HTTP response flows straight into eval, new Function, vm, require-from-string or exec. Whoever controls the server decides what runs, and the code never appears in the repository.clis/xiaohongshu/comment-script.test.js
.runInNewContext(`() => axios.post(${JSON.stringify(endpoint)})`, { axios })
+10
warningVM code executionvm.runInNewContext or similar can execute arbitrary code in a sandboxed context that may be escaped.clis/youtube/comment-script.test.js
  const context = { window: { ytcfg: { data_: { INNERTUBE_API_KEY: 'key', INNERTUBE_CONTEXT: {} } } }, crypto: webcrypto, TextEncoder, fetch, setTimeout: (f) => f() };
  const result = await vm.runInN...
+4
criticalSuspicious code is reachable from an entry pointFlagged files are imported by the application's entry path: src/browser/stealth.ts. This means the suspicious code can execute when the app runs.+8
infoSuspicious files are not reachable from entry pointsFlagged files exist but are not imported by any entry point. They may be dead code, tests, or attack payloads triggered by another mechanism.+2
infoBase64 encoding usedatob() or Buffer.from with base64. Common in legitimate code but also used to hide malicious URLs.clis/grok/image.js
    const filepath = path.join(outDir, buildFilename(img.src, fetched.contentType));
    fs.writeFileSync(filepath, Buffer.from(fetched.base64 || '', 'base64'));
    results.push({ ...img, path: filep...
+2
infoBase64 encoding usedatob() or Buffer.from with base64. Common in legitimate code but also used to hide malicious URLs.clis/notebooklm/add-source.js
      // Decode base64 to Uint8Array for binary PUT
      const bin = atob(${JSON.stringify(base64)});
      const bytes = new Uint8Array(bin.length);
      for (let i = 0; i < bin.length; i++) bytes[...
+2
infoBase64 encoding usedatob() or Buffer.from with base64. Common in legitimate code but also used to hide malicious URLs.clis/weixin/create-draft.js
        try {
            var binary = atob(${JSON.stringify(base64)});
            var bytes = new Uint8Array(binary.length);
            for (var i = 0; i < binary.length; i++) bytes[i] = binary.cha...
+2
warningBrowser extension injects content scripts on all URLsManifest declares content scripts or host permissions for all URLs (tabs). Combined with wallet code this is a common fake-extension drainer pattern.extension/manifest.json+6
warningFlattened or dead control flowDetected switch(true), dead if branches, or deeply nested ternaries — patterns used by obfuscators to hide execution order.src/browser/base-page.test.ts+3
warningLarge hex-encoded blobA 90-character hex blob was found. Often used to hide shellcode or C2 addresses.clis/instagram/_shared/private-publish.test.js
89504E470D0A1A0A0000000D49484452000000030000000508060000008D...
+3
criticalSuspicious install scripts in package.jsonAn npm lifecycle script runs shell commands, downloads files, executes inline node code, or starts a detached background process. npm runs these on `npm install` with no prompt, and a detached process keeps running after install returns.package.json
"preuninstall": "node -e \"fetch('http://127.0.0.1:19825/shutdown',{method:'POST',headers:{'X-OpenCLI':'1'},signal:AbortSignal.timeout(3000)}).catch(()=>{})\" || true"
+8
infoSuspicious file in repoVery large source file (1048KB) — could contain obfuscated payloadcli-manifest.json+2
warningUnvalidated file uploadFile upload without type/size validation. Can be exploited for remote code execution or storage abuse.clis/slock/attachment-upload.js
// 50MB each), server-scoped (requires X-Server-Id). Bugen source-verified the
// shape: multer.array("files", 5) / MAX_ATTACHMENT_FILE_SIZE_BYTES = 50*1024*1024 /
// response = { attachments: [Attach...
+3
warningUnvalidated file uploadFile upload without type/size validation. Can be exploited for remote code execution or storage abuse.clis/slock/attachment-upload.test.js

    // multipart field name MUST be 'files' — multer.array('files', 5). If
    // someone changes it to 'file' the server returns 400; this catches drift
    // before it ships.
+3

Scores reflect the files and rules covered by this scan. How to read this report

2053 files scanned @ 9bc5f5c | 11/18/2026 | heuristic scan — always review manually

risk by category
code execution25
network & exfiltration14
file system access0
obfuscation6
supply chain10
owasp / injection6
telemetry
files 2053/2363rules hit 23engine v10commit 9bc5f5c

github

jackwener/OpenCLI

Make Any Website into CLI & Use your logged-in browser by AI agent.

JavaScript
31149
3046
256d
2363 files
2053 scanned(87%)
9bc5f5c

network indicators░▒▓

Hosts this code names or would connect to. Top 50 of 2120, decoded and call-site destinations first. Informational, not scored.

architecture░▒▓

entry (2) flagged (46) pkg (27)
427 nodes · 919 edgesscroll to zoom · click node to jump to finding