spackle

One finding, start to finish. SPK-8253B6AF, from a scan of the bundled demo app.

  1. Find it.

    SPK-8253B6AF [HIGH 8.7] Path traversal in parameter name of /file

    GET /file (parameter name) · CWE-22 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

  2. Prove it.

    Confidence: demonstrated · evidence/exchanges/X-0020.json

    GET /file with name set to ..\..\..\..\..\..\windows\win.ini returned status 200 with the content of a system file:

    ; for 16-bit app support [fonts] [extensions] [mci extensions] [files] [Mail] MAPI=1
  3. Explain it.

    The parameter is used as a file path without being confined to the intended directory, so any file the server process can read can be downloaded.

    Chains into: credential theft from configuration files and key material.

  4. Fix it.

    Resolve the requested name against a fixed base directory and refuse any result outside it, or map the parameter to an allowlist of files instead of using it as a path.

    Verification: unverified (this run had no model, so no patch was written)

Real output of spackle scan http://localhost:8081 --authorize scope.toml with no model configured. With a model and a container runtime, the last row is a patch that was checked in the sandbox.

Agentic security and debugging that finds real flaws, proves them, explains how they would be exploited, and fixes them.

Point it at your own code, your own running application, or your own infrastructure files. Built for developers, AppSec engineers and small security teams testing systems they own or are authorized to test.

Install with Go

go install github.com/TMHSDigital/spackle/cmd/spackle@latest

Quick start Release archives Source

It says how sure it is#

demonstrated
The flaw's effect was observed. A proof of concept ran in the sandbox and printed the marker Spackle gave it, or the behavior itself is in a recorded request and response.
high
Every step was read, nothing was run. An investigator traced the path from an attacker-reachable source to the sink, and a separate reviewer who saw only the claim could not refute it.
plausible
A lead that nothing has confirmed. Every lead from a source scan without a model stays here.

Each label comes with its reason. A model cannot award itself demonstrated: only a proof that ran, or a recorded exchange, can. What the reviewer refutes is listed with why. docs/findings.md has the rules.

Quick start#

Spackle is one static binary. The first run below needs no model, no key and no container runtime.

Show commands for

Windows (PowerShell)

go install github.com/TMHSDigital/spackle/cmd/spackle@latest
git clone https://github.com/TMHSDigital/Spackle.git
cd Spackle
spackle scan .\examples\demo-app

Linux and macOS

go install github.com/TMHSDigital/spackle/cmd/spackle@latest
git clone https://github.com/TMHSDigital/Spackle.git
cd Spackle
spackle scan ./examples/demo-app

No Go toolchain? Each release has archives with signed checksums, an SBOM and build provenance.

spackle in a terminal: a scan of the bundled demo app lists findings with their severity and confidence, then prints a one-line summary.

That scan is deterministic: built-in rules plus any scanners you have installed. Every finding it prints is labelled plausible, because nothing has confirmed it yet. To have Spackle investigate, prove and fix, give it a model and a container runtime:

With a model

spackle doctor                     # what is installed, what is missing
export ANTHROPIC_API_KEY=...       # your own key; Spackle ships none
spackle scan ./examples/demo-app --provider anthropic --model claude-opus-5-5

With a model, in Windows PowerShell

spackle doctor
$env:ANTHROPIC_API_KEY = "..."     # your own key; Spackle ships none
spackle scan .\examples\demo-app --provider anthropic --model claude-opus-5-5

Before a paid run Spackle prints an estimate and the hard caps, and waits for a yes.

How it works#

StageWhat it doesRuns with
Scope gateA live URL needs an authorized scope before a single request is sent. Local source does not.no model
MapperFinds languages, frameworks, entry points and trust boundaries.no model
SeedersProduce leads from built-in rules (Go, Python, JavaScript and TypeScript, secrets, Dockerfiles, Kubernetes, Terraform, GitHub workflows) and from Semgrep, gitleaks, osv-scanner, Trivy and hadolint when they are installed. Leads are hints, not verdicts.no model
PlannerTurns the map and the leads into a short list of questions worth answering.model
InvestigatorsAnswer one question each with read-only tools confined to the target. Every draft is checked before it counts: quoted lines must exist in the file they cite, and the CVSS 4.0 score is computed by Spackle from the vector.model
ReviewerSees only the claim, not the reasoning, and tries to refute it.model
ProverWrites a small proof of concept and runs it in a container with no network, no capabilities, a read-only root and a read-only copy of your source.model, sandbox
FixerReturns whole files; Spackle computes the patch, checks it in the sandbox, and commits accepted fixes to spackle/<run-id> in a separate worktree. Your working tree is never touched.model, sandbox

Evidence ledger Every stage from the mapper to the fixer writes to it, and reports are rebuilt from it alone.

Scope, budgets and tool permissions are enforced in code. Nothing in a target can change them, because no tool exists whose effect is to change them. docs/ARCHITECTURE.md has the detail.

Why Spackle#

The attacker's view
Each finding gives preconditions, the attack step by step, what it chains into and the blast radius, written for the person who has to decide what to fix first.
Fix and verify
The fixer writes the smallest patch. It is accepted only if the changed files still compile, the proof stops working, and a passing test suite still passes.
Runs offline
Ollama and any local OpenAI-compatible server are first-class. --offline refuses every connection that would leave the machine.
No listening ports
Spackle is a command, not a server. Nothing binds a port, there are no default credentials, and a test fails the build if that ever changes.
Evidence ledger
Every run writes an append-only ledger. Reports are rebuilt from it alone, so a report is the same bytes every time.
Your secrets stay put
Secret detection runs before anything reaches a model. Reports name the rule, the location and a short hash, never the value.

Anatomy of a finding#

Every finding has the same parts: identity, severity with its CVSS 4.0 vector, the flaw, the exploitation scenario, the proof, the blast radius, the remediation, and a confidence label with its reason. The finding at the top of this page is one of them, shortened. With a model, the exploitation scenario and remediation are written for the specific application instead of the class.

Reports render as terminal text, Markdown, HTML, JSON, SARIF and a GitLab SAST report. spackle report <run-id> --format html rebuilds any of them from the ledger. docs/findings.md documents every field, and the README prints this finding in full.

Running targets spackle scan <url>#

Point Spackle at an application you run. It crawls within scope, probes without changing state, and ties each finding to the stored request and response that show it.

# scope.toml
hosts = ["localhost:8081"]
statement = "My own dev server."
spackle scan http://localhost:8081 --authorize scope.toml
  • Without a scope file or a [scope] table, Spackle asks you to type the host to confirm, once per run. With --yes or in CI it refuses instead of asking.
  • Hosts match exactly. Redirects and links that leave scope are not followed. localhost and 127.0.0.1 are different hosts.
  • Only GET, HEAD and OPTIONS are sent unless the scope file sets allow_unsafe_methods = true.
  • With a model configured, an investigator assesses each observation and may send follow-up requests through the same scope and the same request cap.

Debug mode spackle debug#

Start from a failing test or an issue. Spackle reproduces it in the sandbox, finds the root cause, writes a fix and verifies it.

spackle debug . --test TestCheckoutTotal
spackle debug . --issue bug-report.md --good v1.4.0   # bisect from a known good revision

Debug mode needs a model and a container runtime. Without them it tells you what is missing and prints the reproduction command it would have run.

Verify a fix spackle verify#

A scan that writes a fix leaves the patch in findings/<id>/fix.patch and, in a git repository, on a spackle/<run-id> branch. Your code is not changed, so the finding has status patch-available. After you apply the patch or merge the branch, re-run the stored proofs against the code as it is now:

spackle verify latest

Each proof runs in the sandbox again. A proof that no longer succeeds marks its finding fixed; one that still succeeds keeps it open. The command exits 1 when any proof still succeeds or could not be run to an answer, and 0 when none does.

CI and pre-commit#

name: spackle
on: [pull_request]
permissions:
  contents: read
  security-events: write
jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - uses: TMHSDigital/Spackle@v0.2.2
        with:
          fail-on: high

The action installs a release, verifies its checksum and build provenance, runs the scan, and uploads SARIF so findings appear in GitHub code scanning. By default it runs the deterministic stages, which need no key and cost nothing; a spackle.toml committed with a [model] table changes that. docs/ci.md shows how to add a model and lists every input.

Three ways to put the gate on an existing codebase without failing on everything already in it:

Only the change
diff-base: ${{ github.event.pull_request.base.sha }} in the Action (with fetch-depth: 0 on the checkout), or --since <revision> on the command line, reports only on files the pull request added or changed. --changed does the same for work you have not committed yet.
Known findings
spackle baseline latest --out .spackle-baseline.json writes a baseline from a full scan. A scan with --baseline .spackle-baseline.json still reports those findings, as accepted, but does not fail on them; a finding whose code only moved stays accepted.
Before each commit
spackle scan . --staged reports only on files whose staged version differs from the last commit. The repository ships a hook for the pre-commit framework.
# .pre-commit-config.yaml
repos:
  - repo: https://github.com/TMHSDigital/Spackle
    rev: v0.2.2
    hooks:
      - id: spackle

docs/ci.md has the details of each.

MCP spackle mcp#

spackle mcp serves Spackle's tools to an MCP client over stdin and stdout. You set the limits on the command line and the model chooses only within them: it can scan directories under --root, list and compare stored runs, read reports and findings, and run doctor, and nothing else. It cannot pick a provider, raise a budget or reach a live target.

claude mcp add spackle -- spackle mcp --root /absolute/path/to/project

docs/mcp.md has the tool list and client configuration.

Configuration#

Spackle ships no model and no key. Configuration lives in spackle.toml; flags override it; API keys come only from environment variables. A spackle.toml found in the working directory, usually the project being scanned, is not trusted with endpoints, key variables, prices, scope, sandbox images or budget raises: pass your own with --config.

Anthropic
--provider anthropic, key in ANTHROPIC_API_KEY from the Anthropic console. A claude.ai subscription is not API access.
OpenAI
--provider openai, key in OPENAI_API_KEY.
OpenAI-compatible
--provider openai-compatible --base-url <url>, key in SPACKLE_API_KEY: OpenRouter, Azure OpenAI, Together, Groq, Fireworks.
Local
--provider ollama, or a localhost --base-url for llama.cpp, LM Studio and vLLM. Add --offline to guarantee nothing leaves the machine.
Budgets
Hard caps on tokens, spend, wall time, sandbox runs and findings. They cannot be turned off. When one is reached, the report lists what was skipped.

spackle doctor validates the configured provider with a free round-trip before you spend anything. docs/config.md has a copy-paste block for every provider.

Privacy#

ModeWhat leaves the machine
No model configuredNothing from Spackle beyond the target you name: a git URL is cloned, and a running target receives the scope-bound requests of the scan. Installed scanners may fetch their own vulnerability databases.
Hosted providerPrompts, plus redacted excerpts of the files the model asks to read, go to the provider you chose. Secret values are replaced before sending.
Local modelRequests go to localhost only.
--offlineAny non-loopback connection by Spackle is refused, and a remote provider is rejected before the run starts.

There is no telemetry and no update check. docs/PRIVACY.md has the full account.

Benchmark#

bench/corpus holds small fixture projects in Go, Python and TypeScript/JavaScript with planted, documented flaws, plus clean decoys that only look risky. make bench scores a run against the ground truth. This table is generated from the results files committed under bench/results and is never edited by hand.

DateVersionModelModePrecisionRecallVerified-fix rateCost per finding
2026-11-220.1.0nonedeterministic83.9%68.4%n/an/a

Only the deterministic run is committed so far. An agentic row needs a run with a capable hosted or local model; when one is committed it will name the model, the date and the version, like the row above.

Small synthetic fixtures are not your codebase, and these numbers will not transfer to it unchanged. docs/benchmark.md explains the scoring and how to run it with your own model.

Comparison#

Spackle is new. Semgrep, CodeQL, Snyk, nuclei and the others are established, and each does something better than Spackle does; Spackle uses several of them as lead sources. docs/comparison.md says what each does better, tool by tool.

Limits#

  • Proofs and fixes are run automatically for Go, Python and TypeScript/JavaScript. Other languages get findings and analysis only.
  • The sandbox has no network, so a proof can use the standard library and what is already in the repository, and nothing that would need installing.
  • Without Docker or Podman nothing is executed: findings are reasoned, not demonstrated, and no fix is verified.
  • This is agentic work. It needs a capable tool-calling model. Small local models produce malformed answers; Spackle rejects those and falls back to reporting leads, which is safe but not useful.
  • Running-target mode sends plain HTTP requests. It does not drive a browser or log in for you.
  • A model writes the proofs. demonstrated means the proof ran and printed an unguessable marker. Read the stored proof before you rely on it.
↑ Top