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

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

Flagrix 扫描 GitHub 仓库和用户资料中的恶意软件与诈骗信号,在克隆代码前为助手提供绑定到具体提交的风险判定。

可以做什么
按 URL 或 owner/repo 扫描 GitHub 仓库,可指定分支或提交,返回绑定到所扫描提交的风险判定,包括安全评分、扫描文件数、依赖和问题列表。为 GitHub 用户资料打诈骗信号评分。以 JSON 返回完整结构化结果,供助手解读。
适用场景
适合在助手被要求克隆、审查或运行陌生代码时使用,尤其是通过招聘邀约、编程作业或陌生链接发来的仓库,先做风险检查。也适合在信任某个 GitHub 账号的仓库之前先核查该账号。
运行要求
通过 npx 在本地运行,需要 Node.js。需要访问 GitHub 和 npm API 以及一个公开的检测规则仓库。可选的 GITHUB_TOKEN(或 FLAGRIX_GITHUB_TOKEN)可提高速率限制并支持扫描私有仓库;不设置时扫描共用 GitHub 未认证请求额度。
安装前请注意
判定结果是风险评估,并非确定的欺诈结论,应通过官方渠道核实。GITHUB_TOKEN 权限较大,应尽量缩小范围。扫描会通过 GitHub API 读取仓库内容,签名刷新会访问第三方规则仓库。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Flagrix,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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.

bash
npx flagrix scan https://github.com/some-org/coding-assignment
  some-org/coding-assignment @ 3f9c2a1  HIGH RISK — Do not clone  security score 12/100  3 files scanned · 10 dependencies · 2 issues
  CRITICAL Data exfiltration patterns detected: Keylogger Pattern    assignment.js:14      14  document.addEventListener("keydown", (e) => send(e.key))

Built after real fake-recruiter campaigns ("coding assignment" repos that steal wallets, SSH keys, and browser sessions) started targeting developers.

Commands

bash
flagrix scan <url | owner/repo>   # scan a repository (--ref <branch|sha>)flagrix scan-user <username>      # score a GitHub profile for scam signalsflagrix mcp                       # MCP server (stdio) for AI agents

Exit codes

codemeaning
0low risk
1scan failed
2medium risk — review before proceeding
3high risk — do not clone

--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

bash
claude mcp add flagrix -- npx -y flagrix mcp

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
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分