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:...+5criticalFunction() 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;
}+5criticaleval() 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;+8criticalFunction() 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;
}+5criticaleval() 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(+8criticalchild_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-...+8warningVM 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 });
}
+4warningVM 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 = () => {};
...+4criticalHTTP 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 })+10warningVM 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...+4infoBase64 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...+2infoBase64 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[...+2infoBase64 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...+2warningBrowser 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"+8infoSuspicious 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...+3warningUnvalidated 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.+3Scores 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.
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.
- https://raw.githubusercontent.com/fa0311/twitter-openapi/refs/heads/main/src/config/placeholder.jsonpaste hostnext to network callclis/twitter/list-tweets.js:149 +2 more
- https://www.zhihu.com/api/v3/feed/topstory/hot-lists/totalurlnext to network callautoresearch/save-adapters/zhihu-hot-detail.ts:21 +1 more
- https://www.zhihu.com/api/v4/questions/$urlnext to network callautoresearch/save-adapters/zhihu-hot-detail.ts:37 +5 more
- https://www.zhihu.com/api/v4/search_v3urlnext to network callautoresearch/save-adapters/zhihu-search-detail.ts:24 +3 more
- https://kyfw.12306.cn/otn/leftTicket/$urlnext to network callclis/12306/trains.js:69
- https://www.36kr.com/feedurlnext to network callclis/36kr/news.js:18
- https://feeds.bbci.co.uk/news/rss.xmlurlnext to network callclis/bbc/news.js:18
- https://api.bilibili.com/x/web-interface/popularurlnext to network callclis/bilibili/hot.js:15
- https://api.bilibili.com/x/web-interface/navurlnext to network callclis/bilibili/utils.js:196
- https://api.coingecko.com/api/v3/globalurlnext to network callclis/coingecko/global.js:25
- https://m.ctrip.com/restapi/soa2/15201/getMemberSummaryInfourlnext to network callclis/ctrip/auth.js:8 +2 more
- https://movie.douban.com/top250urlnext to network callclis/douban/top250.js:53 +1 more
- https://news.google.com/rssurlnext to network callclis/google/news.js:30
- https://suggestqueries.google.com/complete/searchurlnext to network callclis/google/suggest.js:22
- https://trends.google.com/trending/rssurlnext to network callclis/google/trends.js:23
- https://grok.comurlnext to network callclis/grok/image.js:191 +6 more
- https://www.instagram.com/api/v1/collections/create/urlnext to network callclis/instagram/collection-create.js:32
- https://www.instagram.com/api/v1/collections/list/urlnext to network callclis/instagram/collection-delete.js:34 +1 more
- https://www.instagram.com/api/v1/collections/urlnext to network callclis/instagram/collection-delete.js:70
- https://www.instagram.com/api/v1/web/comments/urlnext to network callclis/instagram/comment.js:58
- https://www.instagram.com/api/v1/discover/web/explore_grid/urlnext to network callclis/instagram/explore.js:17
- https://www.instagram.com/api/v1/friendships/create/urlnext to network callclis/instagram/follow.js:28
- https://www.instagram.com/api/v1/friendships/urlnext to network callclis/instagram/followers.js:26 +1 more
- https://www.instagram.com/api/v1/users/web_profile_info/urlnext to network callclis/instagram/profile.js:54 +1 more
- https://www.instagram.com/api/v1/feed/user/urlnext to network callclis/instagram/profile.js:72 +6 more
- https://www.instagram.com/api/v1/users/urlnext to network callclis/instagram/profile.js:77 +3 more
- https://www.instagram.com/api/v1/web/save/urlnext to network callclis/instagram/save.js:57 +1 more
- https://www.instagram.com/web/search/topsearch/urlnext to network callclis/instagram/search.js:23
- https://www.instagram.com/api/v1/friendships/destroy/urlnext to network callclis/instagram/unfollow.js:28
- https://api.m.jd.com/apiurlnext to network callclis/jd/cart.js:30
- https://p.3.cn/prices/mgetsurlnext to network callclis/jd/item.js:441
- https://api.ruguoapp.com/1.0/users/profileurlnext to network callclis/jike/utils.js:14
- https://maimai.cn/api/ent/discover/searchurlnext to network callclis/maimai/search-talents.js:100
- https://gw-c.nowcoder.com/api/sparta/user/profile/urlnext to network callclis/nowcoder/auth.js:23
- https://gw-c.nowcoder.com/api/sparta/message/pc/unread/detailurlnext to network callclis/nowcoder/notifications.js:14
- https://gw-c.nowcoder.com/api/sparta/company-question/get-paper-listurlnext to network callclis/nowcoder/papers.js:23
- https://gw-c.nowcoder.com/api/sparta/intelligent/…urlnext to network callclis/nowcoder/practice.js:19
- https://gw-c.nowcoder.com/api/sparta/home/tab/contenturlnext to network callclis/nowcoder/referral.js:19 +2 more
- https://gw-c.nowcoder.com/api/sparta/search/suggesturlnext to network callclis/nowcoder/suggest.js:17
- https://www.pixiv.net/ranking.phpurlnext to network callclis/pixiv/ranking.js:38
- https://www.producthunt.com/feedurlnext to network callclis/producthunt/utils.js:29 +1 more
- https://pan.quark.cn/account/infourlnext to network callclis/quark/auth.js:9
- https://app.cj.sina.com.cn/api/news/pcurlnext to network callclis/sinafinance/news.js:46 +1 more
- https://finance.sina.com.cnurlnext to network callclis/sinafinance/stock.js:14
- https://accounts.spotify.com/api/tokenurlnext to network callclis/spotify/spotify.js:46 +1 more
- https://api.spotify.com/v1$urlnext to network callclis/spotify/spotify.js:81
- https://clerk.suno.com/v1/clienturlnext to network callclis/suno/auth.js:20
- https://tieba.baidu.com/c/f/frs/page_pcurlnext to network callclis/tieba/posts.js:41
- https://www.tiktok.com/@urlnext to network callclis/tiktok/profile.js:30 +1 more
- https://stock.xueqiu.com/v5/stock/portfolio/stock/list.jsonurlnext to network callclis/xueqiu/auth.js:18 +1 more
architecture░▒▓
entry (2) flagged (46) pkg (27)
427 nodes · 919 edgesscroll to zoom · click node to jump to finding