Skip to main content

vulkro inspect

Look for malicious-code patterns in a project you have not run yet, so a person can review them before running any of it.

git clone https://example.com/some/repo && cd repo
vulkro inspect .
vulkro inspect . --json > capabilities.json

scan asks "is this code vulnerable". inspect asks "what can this code do if I run it". It groups the mal-* detectors into capabilities and lists each site to review. Unlike scan, it shows every confidence level, so a Medium-confidence shape (such as a committed binary) is never hidden.

It never says code is safe. A static scan of code that has not run, possibly written to evade it, can only point at behaviour for a person to judge. A run with nothing found is not a pass.

What it looks for​

CapabilitySignal
Hidden or misleading source text (trojan source)mal-trojan-source
Reverse shell or instance-metadata grabmal-reverse-shell, mal-imds
Reads credentials, or reads and sends them outmal-cred-read, mal-cred-exfil
Runs code from an install or build hookmal-install-hook
Obfuscated or packed sourcemal-obfuscation
Runs only on a given environment, date or hostmal-env-gate
Copies or republishes itself (worm)mal-worm
Targets cryptocurrency walletsmal-wallet
Fetches and runs remote codemal-remote-load
Installs persistence (cron, launchd, systemd, shell rc)mal-persist
Committed binary the scanner cannot readmal-committed-binary
Lockfile or integrity-hash mismatchmal-dep-integrity
Prompt injection aimed at an AI coding agentmal-prompt-injection

Flags​

FlagDescription
[PATH]Project root. Default ..
--jsonPrint the CapabilityReport JSON (capabilities[] with hits[] of file, line, rule_id, message; total_findings; disclosure). There is no verdict field.
--aiAdd a plain-language note from your AI model on why each shape is suspicious. Advisory only. See vulkro ai.

Exit codes​

CodeMeaning
0Nothing known was found. Not a safety guarantee.
1Malicious-capability shapes found: review before you trust or run the code.
2Error (bad path, IO failure, internal crash).

Nothing leaves your machine. AI coding agents get the same result from the inspect_repo tool of vulkro mcp.

Command reference​

Generated from vulkro inspect --help (vulkro 0.41.0). Run scripts/gen-docs.sh in the product repository to refresh it; do not edit this section by hand.

Look for malicious-code patterns in source you have not run yet.

vulkro inspect [OPTIONS] [PATH]

Arguments​

ArgumentDescription
[PATH]Path to the project root to inspect (default: current directory) Default: ..

Options​

FlagDescription
--jsonEmit the machine-readable capability manifest (the CapabilityReport structure) as JSON instead of the text surface. Intended for an agent to consume before running code. The JSON always carries the non-guarantee disclosure and never a safe / clean / proceed verdict.
--offlineHard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set.
--ai[Advisory] Attach a local-model plain-language explanation to each surfaced capability: WHY the flagged shape is suspicious and what to check. ADDITIVE and OPT-IN: the deterministic detection is unchanged and remains the source of truth; the AI text is a labelled advisory overlay (advisory / non-deterministic / excluded-from-benchmark) and never changes what was surfaced or the exit code. Uses the AI layer resolved from flags / env / vulkro ai use (defaults to a local loopback model, which is allowed even under VULKRO_OFFLINE; a cloud endpoint is refused offline). If the model is unreachable the overlay is skipped with a stderr note and the deterministic report is unaffected.
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint help (see a summary with '-h')
Full vulkro inspect --help
Look for malicious-code patterns in source you have not run yet.

Vulkro Inspect: surface the malicious-capability shapes in a just-cloned project for human review (an "antivirus for source you have not run yet"). This is DEFENSIVE tooling.

It projects the shipped `mal_*` malware detectors into a grouped capability surface (credential exfiltration, install hooks, reverse shells, obfuscation, trojan-source text, and so on) and prints each site to review by hand. Unlike `scan`, Inspect uses the UNFILTERED findings: it deliberately ignores the vuln-scan precision floor so that Medium-confidence shapes (for example a committed opaque binary) are never hidden.

Inspect NEVER certifies code safe. There is no clean / safe / pass / proceed state and no zero-count reassurance: it is a static scan of code that has not run, over source an author may have crafted to evade it, so it can only surface behaviors for a person to judge.

Exit codes: `0` ran and surfaced no known malicious-capability shapes. This is NOT a pass and NOT a safety guarantee: static analysis over unrun, potentially adversarial source cannot see everything. `1` malicious-capability shapes were surfaced: human review is required before trusting or running this code. `2` error (bad path, IO failure, internal crash).

Usage: vulkro inspect [OPTIONS] [PATH]

Arguments:
[PATH]
Path to the project root to inspect (default: current directory)

[default: .]

Options:
--json
Emit the machine-readable capability manifest (the `CapabilityReport` structure) as JSON instead of the text surface. Intended for an agent to consume before running code. The JSON always carries the non-guarantee disclosure and never a safe / clean / proceed verdict

--offline
Hard-disable every outbound network call for this run (sets VULKRO_OFFLINE=1). Blocks the CVE feed, the license heartbeat, the update check, webhooks, and any cloud AI endpoint; a loopback model (http://127.0.0.1, http://localhost) is still allowed. Equivalent to exporting VULKRO_OFFLINE=1, and the flag wins when both are set

--ai
[Advisory] Attach a local-model plain-language explanation to each surfaced capability: WHY the flagged shape is suspicious and what to check. ADDITIVE and OPT-IN: the deterministic detection is unchanged and remains the source of truth; the AI text is a labelled advisory overlay (advisory / non-deterministic / excluded-from-benchmark) and never changes what was surfaced or the exit code. Uses the AI layer resolved from flags / env / `vulkro ai use` (defaults to a local loopback model, which is allowed even under `VULKRO_OFFLINE`; a cloud endpoint is refused offline). If the model is unreachable the overlay is skipped with a stderr note and the deterministic report is unaffected

-q, --quiet
Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged

--no-color
Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb

-h, --help
Print help (see a summary with '-h')