
Flagrix
io.github.flagrix-io由 GitHub 账号 flagrix-io 发布v0.1.0更新于 Oct 24, 2026
Scan GitHub repos and profiles for malware before cloning — commit-pinned risk verdicts for agents
概览
Flagrix 扫描 GitHub 仓库和用户资料中的恶意软件与诈骗信号,在克隆代码前为助手提供绑定到具体提交的风险判定。
- 可以做什么
- 按 URL 或 owner/repo 扫描 GitHub 仓库,可指定分支或提交,返回绑定到所扫描提交的风险判定,包括安全评分、扫描文件数、依赖和问题列表。为 GitHub 用户资料打诈骗信号评分。以 JSON 返回完整结构化结果,供助手解读。
- 适用场景
- 适合在助手被要求克隆、审查或运行陌生代码时使用,尤其是通过招聘邀约、编程作业或陌生链接发来的仓库,先做风险检查。也适合在信任某个 GitHub 账号的仓库之前先核查该账号。
- 运行要求
- 通过 npx 在本地运行,需要 Node.js。需要访问 GitHub 和 npm API 以及一个公开的检测规则仓库。可选的 GITHUB_TOKEN(或 FLAGRIX_GITHUB_TOKEN)可提高速率限制并支持扫描私有仓库;不设置时扫描共用 GitHub 未认证请求额度。
安装
在 SourceWeft 中
- 打开 控制台中的 Flagrix,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
flagrix
Scan GitHub repositories and profiles for malware before you clone — from the terminal, CI, or an AI agent. The same commit-pinned verdict as the Flagrix browser extension, made callable.
Built after real fake-recruiter campaigns ("coding assignment" repos that steal wallets, SSH keys, and browser sessions) started targeting developers.
Commands
Exit codes
--json (automatic when stdout is piped) emits the full result. The verdict is
pinned to the scanned commit (commitSha in the JSON): every file is read at
that SHA, so a push mid-scan or after the verdict can't silently invalidate it.
AI agents
Tools: scan_github_repo, scan_github_user. A Claude Code hook that gates every
git clone on a scan ships in hooks/ — see
docs/agent-gating.md.
Tokens & rate limits
Unauthenticated scans use GitHub's 60 req/h budget (a scan issues one request per
scanned file, up to ~50). Set GITHUB_TOKEN (or FLAGRIX_GITHUB_TOKEN, or
--token) to raise it to 5,000/h and to scan private repositories.
Privacy
Fully local. No telemetry, no accounts, no Flagrix backend — the only network calls go to the GitHub/npm APIs and the public detection-rules repository (signature refresh, cached 6 h, with a bundled offline snapshot).
Dependencies are also checked against the OSV malicious-package feed
(osv-malicious.json from the same repository: every npm/PyPI package the
OpenSSF malicious-packages project has confirmed malicious). The feed is
downloaded and matched locally, so dependency names never leave your machine.
It is cached 6 h and revalidated with its ETag. Set FLAGRIX_OSV_FEED=0 to
skip it (the curated list in the signatures still applies).
How it works
Scanning logic lives in @flagrix/scanner-core (MIT), signatures in flagrix-detection-rules (MIT) — the same engine and rules the browser extension uses. Verdicts are risk assessments, not definitive fraud determinations; always verify through official channels.
AI Disclosure
This project leverages Claude AI for boilerplate generation, test-suite expansion, and optimization. All AI-generated code is strictly reviewed, refactored, and verified by human maintainers before merging.
License
MIT — see LICENSE.
来源:README.md,提交 79c5ed1
工具
0版本历史
1- v0.1.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分