DevGuard
Scan a repository for malware before you open it in your IDE, install its dependencies, or run it.
Malicious repositories (fake job-interview tasks, poisoned forks, hijacked packages) rarely wait for you to run
main.py. They run automatically: a VS Code task on folder open, an npm postinstall script, a git hook, an AI
assistant hook, a loader hidden in tailwind.config.js. DevGuard finds those triggers, follows them to the code
they run, and tells you whether it is safe to proceed. It reads files as data and never executes anything.
Install
pipx install devguard-scanner # or: uv tool install devguard-scanner
Use
devguard scan path/to/repo
DevGuard scan complete
Target: interview-task
Verdict: BLOCK | Do not open, install, or run this project. Strong indicators of malicious behavior were found.
Findings: 5 (1 critical, 2 high, 1 medium, 1 low)
- [critical] Automatic trigger reaches dangerous code (package.json:5)
- [high] Browser profile data targeted (lib/collect.js:7)
- [high] Cryptocurrency wallet data targeted (lib/collect.js:10)
Report (md): ~/devguard-scanner/reports/interview-task-1a2b3c4d/latest/report.md
| Verdict | Meaning |
|---|---|
block |
Do not open, install, or run it. |
review |
Read the report first. |
indicators |
Weak signals only, often benign. |
no-indicators |
Nothing found by the enabled checks (not a guarantee). |
Exit code 1 means findings at or above --fail-on (default high), so it works as a CI gate.
Check whether others flagged it
devguard check # this checkout, by its GitHub remote; or: devguard check owner/repo
devguard flag --note "..." # report it; the server re-scans and accepts only a `block` verdict
devguard scan shares its verdict and the repository or folder name (never code; private repositories without
their owner) to count usage and warn others; turn it off with --no-share or DEVGUARD_SHARE=0. See
community features.
Scan a GitHub repository without cloning it
devguard scan https://github.com/octocat/Hello-World # add --ref BRANCH|TAG|SHA
The repository is downloaded into a temporary directory, scanned, and deleted. git is never run, so clone-time
exploits and hooks cannot trigger, and the files never sit in a folder your IDE could open. Private repositories
work with your own token (GH_TOKEN, GITHUB_TOKEN, or DEVGUARD_GITHUB_TOKEN).
No install: hosted API or Docker
# hosted API (public repositories), Swagger UI at https://devguard-scanner.vercel.app/docs
curl -s 'https://devguard-scanner.vercel.app/v1/scans/github/octocat/Hello-World?format=md'
# one-off scan in a throwaway container
docker run --rm ghcr.io/yilmazhasan/devguard-scanner scan https://github.com/octocat/Hello-World --stdout md
# self-hosted API, plus local scans of anything you copy into ~/devguard-scanner-data (mounted read-only)
docker compose up -d
See the API guide and the Docker guide. Optional AI explanations work with your own provider key; the server never stores it.
More
- Getting started: options, reports, exit codes
- AI investigation: optional explanations from Claude, OpenAI, Gemini, or a local model
- Provider plugins: connect any LLM with a small Python file
- MCP server: let Claude Code, Cursor, or Copilot check a repo before acting on it
- HTTP API · Docker: scan without installing, or self-host
- CI and pre-commit · Configuration · How it works
- Contributing · Security policy
Licensed under Apache-2.0.
Metadata
Release files for devguard-scanner 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| devguard_scanner-0.4.2.tar.gz | 214.2 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| devguard_scanner-0.4.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 431.6 kB
Release files / devguard_scanner-0.4.2.tar.gz
| Download URL | devguard_scanner-0.4.2.tar.gz |
|---|---|
| Size | 214.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0aef837f3a8e7c9c0c3d8dc21142cc2b588af9e83fe13b9c58050a9c3da5368
|
|
BLAKE2b-256 checksum How to use checksums |
da247e5371cd83960c095e7def4bb25eb4cbe9aa62f3b54686b41aaecbb8aa71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / devguard_scanner-0.4.2-py3-none-any.whl
| Download URL | devguard_scanner-0.4.2-py3-none-any.whl |
|---|---|
| Size | 217.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9531382b089994c937d3d7a48aa7bae66b72e14e0d2df85cd1e0f19d191b77f9
|
|
BLAKE2b-256 checksum How to use checksums |
72f54aca3b0a2c4a490db00aacc2b5453e57732955dc6118dc9ea32cf4e3d3f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logSecurity for devguard-scanner 0.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for devguard_scanner-0.4.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.