Repository scanner
Catch the attack in the pull request that adds it, before it reaches a laptop or a coding agent.
Shipped, preview GitHub Marketplace planned for 2027 Q3
What it looks for
- Install scripts in
package.jsonandsetup.pythat fetch code and pipe it to a shell, decode hidden code, read credentials, or start an AI command-line tool with its permission checks turned off. - MCP configuration that launches a server from an unpinned package or through a shell, or stores a secret in plain text.
- Instruction files for AI agents that hide text with invisible Unicode, or ask the agent to send data out, skip security checks, or run fetched code.
- GitHub Actions workflows that check out pull request code under
pull_request_target, or use third-party actions not pinned to a commit. - Known malware in any file, through the same hash and PE checks the endpoint uses, plus Capsule rules when you give a rules directory.
How it runs
The scanner reads a checked-out repository. It never runs anything from it and uploads nothing. It writes SARIF 2.1.0, so findings show up in GitHub code scanning on the pull request.
malcap-repo scan . --sarif malcap-repo.sarif --fail-on high
The GitHub Action wraps the same command and can upload the SARIF report. A .malcap-repo.toml file can exclude test data. Every excluded path is listed in the report, so an exclusion cannot hide a tree in silence.
Status
The scanner and the Action exist in preview with 19 checks. Source opens early 2027. Publication on GitHub Marketplace is planned for 2027 Q3.