Сканирует репозитории и профили GitHub на наличие признаков вредоносного ПО и мошенничества, предоставляя вердикты о рисках для ИИ-агентов и разработчиков.
Также известен как flagrix-io/flagrix-cli, flagrix-cli
- Звёзды
- 2
- Инструменты
- —
- Загрузки, 30 дней
- —
- Последняя версия
- 0.5.1
- Последний коммит
- 10 нояб. 2026 г.
- Лицензия
- MIT
Что такое flagrix MCP?
flagrix — это MCP server. Сканирует репозитории и профили GitHub на наличие признаков вредоносного ПО и мошенничества, предоставляя вердикты о рисках для ИИ-агентов и разработчиков.
Сводка сгенерирована из README проекта
О flagrix MCP server
Flagrix предоставляет уровень сканирования безопасности для разработчиков и ИИ-агентов, позволяя выявлять признаки вредоносного ПО и мошенничества в репозиториях и профилях пользователей GitHub. Инструмент работает локально: его можно запускать через терминал, интегрировать в CI-пайплайны или подключать к ИИ-клиентам через MCP stdio протокол. Благодаря анализу конкретных коммитов система гарантирует, что вердикт о рисках привязан к точному состоянию кода, что предотвращает аннулирование результатов сканирования из-за скрытых изменений.
Пользователи могут выполнять сканирование репозиториев с помощью команды scan или проверку профилей через scan-user. Инструмент работает с лимитами GitHub по умолчанию, но использование GITHUB_TOKEN увеличивает пропускную способность с 60 до 5 000 запросов в час и позволяет сканировать приватные репозитории. Вся логика сканирования и проверка зависимостей по фиду вредоносных пакетов OSV происходят локально для обеспечения конфиденциальности, так как никакая телеметрия или данные не отправляются на центральный бэкенд Flagrix.
Что вы можете с ним делать
- 1Проверка безопасности репозитория перед клонированиемИИ-агент может использовать инструмент scan_github_repo, чтобы проверить репозиторий на наличие паттернов утечки данных перед загрузкой кода.
- 2Оценка рисков профиля GitHubРазработчик может проверить, не проявляет ли профиль пользователя GitHub признаки мошенника или фейкового рекрутера.
- 3Автоматизация проверок безопасности в CIИнтегрируйте сканер в конвейер непрерывной интеграции, чтобы автоматически останавливать сборки при обнаружении высокорискового кода.
Взято из README проекта. Каждый вариант использования проверен на соответствие цитате из него.
Как установить flagrix MCP
Форматы проверены 10 ноя 2026Добавить в CursorДобавить в GooseУстановка flagrix MCP в Claude Code
$ claude mcp add --env 'GITHUB_TOKEN=<YOUR_GITHUB_TOKEN>' flagrix-cli -- npx -y flagrixУстановка flagrix MCP в Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"flagrix-cli": {
"command": "npx",
"args": [
"-y",
"flagrix"
],
"env": {
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>"
}
}
}
}Установка flagrix MCP в VS Code
.vscode/mcp.json
{
"servers": {
"flagrix-cli": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"flagrix"
],
"env": {
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>"
}
}
}
}Установка flagrix MCP в VS Code CLI
$ code --add-mcp '{"name":"flagrix-cli","type":"stdio","command":"npx","args":["-y","flagrix"],"env":{"GITHUB_TOKEN":"<YOUR_GITHUB_TOKEN>"}}'Установка flagrix MCP в Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"flagrix-cli": {
"command": "npx",
"args": [
"-y",
"flagrix"
],
"env": {
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>"
}
}
}
}Установка flagrix MCP в Codex
$ codex mcp add flagrix-cli --env 'GITHUB_TOKEN=<YOUR_GITHUB_TOKEN>' -- npx -y flagrixУстановка flagrix MCP в Codex config.toml
~/.codex/config.toml
[mcp_servers.flagrix-cli] command = "npx" args = ["-y", "flagrix"] [mcp_servers.flagrix-cli.env] GITHUB_TOKEN = "<YOUR_GITHUB_TOKEN>"
Установка flagrix MCP в Gemini CLI
$ gemini mcp add -s user -e 'GITHUB_TOKEN=<YOUR_GITHUB_TOKEN>' flagrix-cli npx -- -y flagrixУстановка flagrix MCP в Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"flagrix-cli": {
"command": "npx",
"args": [
"-y",
"flagrix"
],
"env": {
"GITHUB_TOKEN": "<YOUR_GITHUB_TOKEN>"
}
}
}
}Конфигурация
GITHUB_TOKENСекретOptional GitHub token — raises API rate limits and enables private-repo scans
| Название | Описание | Тип |
|---|---|---|
| GITHUB_TOKEN | Optional GitHub token — raises API rate limits and enables private-repo scans | Секрет |
Автоматические проверки
Запущено 13 нояб. 2026 г.Полный отчёт →Прошло наши автоматизированные проверки. Это не аудит безопасности: изучите код и предоставьте серверу минимально необходимый доступ. Как работают проверки
- Связанный и доступный исходный репозиторийflagrix-io/flagrix-cli is public and reachablegithub.com/flagrix-io/flagrix-cli ↗Пройдено
- Пакет указывает этот репозиторий как источникflagrix names flagrix-io/flagrix-cli as sourcenpmjs.com/package/flagrix ↗Пройдено
- Происхождение сборки (аттестация Sigstore)Sigstore attestation for flagrixnpmjs.com/package/flagrix/v/0.5.1#provenance ↗Пройдено
- Open source лицензия (OSI)MITspdx.org/licenses/MIT.html ↗Пройдено
- Коммит или релиз за последний годLast commit or release 2026-11-10github.com/flagrix-io/flagrix-cli ↗Пройдено
- OpenSSF ScorecardНе проверялось
- Имя пакета не похоже на популярный пакетNo popular package one edit away from flagrixПройдено
- Нет критических предупреждений в пакете или его зависимостях99 resolved dependencies checked; no critical advisoryosv.dev ↗Пройдено
- Нет скрытых инструкций для модели0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersПройдено
- Деструктивные инструменты помеченыНе проверялось
- Удалённая конечная точка отвечает на рукопожатие MCPНе проверялось
README
Открыть на GitHubflagrix
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.
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
flagrix scan <url | owner/repo> # scan a repository (--ref <branch|sha>)
flagrix scan-user <username> # score a GitHub profile for scam signals
flagrix mcp # MCP server (stdio) for AI agents
Exit codes
| code | meaning |
|---|---|
| 0 | low risk |
| 1 | scan failed |
| 2 | medium risk — review before proceeding |
| 3 | high risk — do not clone |
| 4 | scan incomplete — not enough of the repository was read to give a verdict |
--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.
Incomplete scans (exit 4)
A repository scan is one tree request plus up to ~200 file reads, and GitHub allows 60 requests an hour without a token. When the budget runs out part way through, the rest of the repository is never looked at — so a "low risk, no findings" result over 30 of 180 files is the absence of looking, not a clean bill of health.
The result says so (scanSummary.complete: false, with
scanSummary.incompleteReason of "rate-limit" or "fetch-errors"), the
human output withholds the verdict and the score, and the exit code is 4
instead of 0. In CI the exit code is the decision and nobody reads stdout, so
a gate on flagrix scan stops here as it does on any non-zero code. Findings
are the other way round: evidence found is evidence however little else was
read, so a medium or high verdict keeps its own code and the coverage note
reads "there may be more".
In --json output, read verdict and coverage rather than riskLevel:
{
"verdict": "incomplete",
"coverage": {
"complete": false,
"unreliableClear": true,
"filesRead": 30,
"filesUnread": 150,
"reason": "rate-limit"
},
"riskLevel": "low",
"safeToClone": false,
...
}
verdictis"low","medium","high", or"incomplete"when a low result rests on files that were never read. It matches the exit code (0 / 2 / 3 / 4).coverage.unreliableClearis true exactly whenverdictis"incomplete";coverage.completeis false on any partial scan, including a medium or high one.reasonis present only when coverage is incomplete.riskLevel,riskScoreand the rest of the engine's result are unchanged, so existing consumers keep working — butriskLevelis the engine's reading of the files it did see, so on an incomplete scan it can still say"low".safeToCloneis kept for compatibility and is nowfalsewheneververdictis"incomplete"(in 0.4.0 and earlier it could betruethere). Gate onverdictor the exit code instead.
The MCP tool's JSON block carries the same fields.
Set a token to make this rare: GITHUB_TOKEN raises the budget to 5,000/h.
AI agents
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 ~200). Set GITHUB_TOKEN (or FLAGRIX_GITHUB_TOKEN, or
--token) to raise it to 5,000/h and to scan private repositories. A scan that
runs out of budget reports partial coverage and exits 4 — see
Incomplete scans.
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.
Вопросы о flagrix MCP
Как добавить flagrix MCP в Claude Code?
Выполните claude mcp add --env 'GITHUB_TOKEN=<YOUR_GITHUB_TOKEN>' flagrix-cli -- npx -y flagrix в терминале. Добавьте --scope user, чтобы сервер был доступен во всех проектах.
Как добавить flagrix MCP в Cursor?
Откройте ~/.cursor/mcp.json и добавьте сервер в mcpServers, используя конфигурацию Cursor из раздела установки выше.
Являются ли мои данные приватными при использовании flagrix?
Да, инструмент работает полностью локально, без телеметрии или бэкенда Flagrix; сетевые запросы отправляются только к API GitHub/npm и в репозиторий с правилами обнаружения.
Что означает код выхода 4?
Код выхода 4 указывает на неполное сканирование, когда репозитория было прочитано недостаточно для вынесения полного вердикта, что часто происходит из-за ограничений частоты запросов (rate limiting).