npm flagrixstdioMITupdated 1mo ago
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.
What can you do with flagrix?
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.
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 |
--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
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).
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.
Install
Add flagrix to your client. Pick the one you use.
claude mcp add flagrix -- npx -y flagrixcodex mcp add flagrix -- npx -y flagrixamp mcp add flagrix -- npx -y flagrix{
"mcpServers": {
"flagrix": {
"command": "npx",
"args": [
"-y",
"flagrix"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"flagrix": {
"command": "npx",
"args": [
"-y",
"flagrix"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"flagrix","command":"npx","args":["-y","flagrix"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"flagrix": {
"command": "npx",
"args": [
"-y",
"flagrix"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"flagrix": {
"command": "npx",
"args": [
"-y",
"flagrix"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"flagrix": {
"command": "npx",
"args": [
"-y",
"flagrix"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"flagrix": {
"type": "local",
"command": "npx",
"args": [
"-y",
"flagrix"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"flagrix": {
"command": {
"path": "npx",
"args": [
"-y",
"flagrix"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y flagrixRun `goose configure`, choose **Add Extension โ Command-line Extension**, and paste this command.
Score
39 / 100
Incomplete
- Documentation17/25
- Maintenance16/25
- Trust16/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 49 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint โ no local install
Version history
| Versions | Published |
|---|---|
| 0.1.0Latest | Jul 8, 2026 |