Install the GitHub Action
Preferred path for repositories on GitHub. Marketplace listing: lacan-scan. Coding agents: follow install-action.md and write the file below to .github/workflows/lacan.yml without inventing another Action name.
- Create
.github/workflows/lacan.yml. - Paste the workflow from workflows/lacan.yml (shown below).
- Commit and merge. Keep
permissions.security-events: writeso SARIF can upload. - Confirm the run under Actions, then Security → Code scanning (category
lacan).
- uses: jose-compu/lacan-scan@v7
with:
path: .
fail-on: HIGH
output: sarif,cli
sarif-file: lacan.sarif
version: "7"
changed-only: ${{ github.event_name == 'pull_request' }}
changed-base: ${{ github.event.pull_request.base.sha }}
- uses: github/codeql-action/upload-sarif@v4
if: always() && hashFiles('lacan.sarif') != ''
with:
sarif_file: lacan.sarif
category: lacan
Full workflow (including on:, permissions, and checkout with fetch-depth: 0): workflows/lacan.yml. Pin Action @v7 and binary version: "7" (or "7.6.0" for a fixed artifact). Earlier rule lines remain on @v1–@v6. Skip a false positive with .lacan.toml or # lacan:skip=AIS008:reason. Experimental rules report and never fail the job.
Install the CLI
Package name on crates.io is lacan-scan. The binary is lacan.
cargo install lacan-scan --locked
lacan --version
lacan scan . --fail-on HIGH
Or download lacan-<triple>.tar.gz from Releases, verify the .sha256, and put lacan on your PATH. Source builds need Crisp 1.11.1+.
CLI usage
lacan scan . --fail-on HIGH --output cli,sarif
lacan scan . --changed-only origin/main --fail-on HIGH
lacan scan . --skip-rules AIS102
Optional hook: scripts/pre-commit-lacan.sh (requires lacan on PATH). Drop .lacan.toml in the repo to skip rules or paths.
Measured performance
The GitHub Action downloads a checksum-verified release binary. It does not compile on the runner. The figures are a scan of this repository on 13 November 2026, lacan 7.2.1, zero findings. The scan itself took 0.13 s on ubuntu-latest (run 43451601929). The whole job took 13 s. Most of that is checkout and the SARIF upload. Downloading the binary took 0.7 s. A local release binary on Apple silicon took 0.18 s, the median of three runs. Checks are from CI run 43450353100: 159 Crisp tests, 35 Rust shim tests, 61 fixture directories.
Hand-scored noise and large-repo timing for issue #4 are in the README precision baseline (14 November 2026) in release v7.2.2. v7.6.0 adds experimental AIS006 (MCP unpinned or remote launch in mcp.json and related configs; never fails the job). v7.5.0 adds experimental AIS009 (committed authorized_keys, shell startup files, and crontabs; never fails the job). v7.4.0 adds experimental AIS004 (npm install hooks and setup.py cmdclass; never fails the job). v7.3.0 adds experimental AIS003 (VS Code folderOpen tasks; never fails the job). v7.2.3 narrows AIS102: no bare system prompt: label; HIGH only on the matched line inside an HTML comment or alt= attribute.
v7 detectors
| Rule | Severity | Detects |
|---|---|---|
AIS301 | HIGH | Same Python or TypeScript function: an LLM value reaches eval, exec, or a shell. Parsing is this check only. |
AIS002 | CRITICAL, experimental | Untrusted CI input reaches an AI step in a job with secrets or write permissions (never fails the job) |
AIS104 | MEDIUM, experimental | Retrieved or user data reaches a system prompt in the same function (never fails the job) |
AIS003 | HIGH, experimental | .vscode/tasks.json task with runOn set to folderOpen (never fails the job) |
AIS004 | MEDIUM, experimental | package.json npm lifecycle scripts preinstall, install, or postinstall; setup.py cmdclass (never fails the job) |
AIS006 | MEDIUM, experimental | mcp.json, .mcp.json, or claude_desktop_config.json unpinned npx/uvx/pipx or remote MCP launch (never fails the job) |
AIS009 | MEDIUM, experimental | Committed authorized_keys, shell startup dotfiles, or crontab paths (cron.d and related); never fails the job) |
v6 detectors
| Rule | Severity | Detects |
|---|---|---|
AIS208 | MEDIUM, experimental | Backdoor n-gram triggers in labelled datasets (never fails the job) |
AIS209 | LOW, experimental | Safety-stripping / obedience fine-tune phrasing (never fails the job) |
AIS210 | MEDIUM | Scripts that harvest model outputs at scale (distillation / logits) |
AIS304 | MEDIUM | Logprobs/logits exposed without an obvious rate limit |
AIS107 | HIGH, experimental | Content-dependent chat template (fuel-capped render) |
AIS110 | MEDIUM, experimental | RAG corpus text addressed to the model |
AIS205 | HIGH, experimental | Malformed safetensors header |
AIS206 | MEDIUM, experimental | Broken GGUF header; embedded chat template checked as AIS106 |
AIS207 | HIGH, experimental | NumPy object arrays, joblib, Keras Lambda |
AIS211 | MEDIUM, experimental | Localized safetensors tensor change |
Release lines
| Major | Action | Highlights |
|---|---|---|
| v7 | @v7 | 7.6.0 experimental AIS006; 7.5.0 experimental AIS009; 7.4.0 experimental AIS004; 7.3.0 experimental AIS003; 7.2.3 AIS102 patch; 7.2.2 precision baseline; 7.2.1 fixture patch; 7.2.0 experimental AIS104; 7.1.0 experimental AIS002; 7.0.0 AIS301 flow |
| v6 | @v6 | 6.1.0 adds experimental AIS107, AIS110, AIS205–207, AIS211; 6.0.0 shipped AIS208–210, AIS304 |
| v5 | @v5 | AIS106 / AIS108 / AIS109; crates.io lacan-scan |
| v4 | @v4 | .lacan.toml and inline skip comments |
| v3 | @v3 | Changed-only PR scans, pre-commit helper |
| v2 | @v2 | AIS105, AIS204, AIS401, AIS504 |
| v1 | @v1 | Core detectors, SARIF Action |