Agentic security and debugging that finds real flaws, proves them, explains how they would be exploited, and fixes them.
Website · Quick start · How it works · Findings · Running targets · CI and pre-commit · MCP · Configuration · Changelog
Point it at your own code, your own running application, or your own infrastructure files. It reports what is wrong, shows the evidence, says how sure it is, and hands you a checked patch. Built for developers, AppSec engineers and small security teams testing systems they own or are authorized to test.
Important
Authorized use only. Point Spackle at systems you own or have explicit written permission to test. Testing someone else's system without consent is not security work and may be a crime. You are responsible for complying with the laws that apply to you.
This is SPK-8253B6AF, real output from a running-target scan of the bundled demo app on localhost with no model configured. The same finding in full is further down.
| Step | What Spackle reported |
|---|---|
| Find it | [HIGH 8.7] Path traversal in parameter name of /file. GET /file (parameter name), CWE-22. |
| Prove it | Confidence demonstrated. GET /file with name set to ..\..\..\..\..\..\windows\win.ini returned status 200 with the content of a system file. The exchange is stored in evidence/exchanges/X-0020.json. |
| 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. |
| Fix it | Resolve the requested name against a fixed base directory and refuse any result outside it. Verification: unverified, because this run had no model and wrote no patch. With a model and a container runtime, this row is a patch that was checked in the sandbox. |
Spackle is one static binary. The first run below needs no model, no key and no container runtime.
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-appLinux 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-appRelease archive
Download an archive for your platform from Releases. Each release has signed checksums, an SBOM and build provenance, and the release notes show how to verify them. A container image is published at ghcr.io/tmhsdigital/spackle; it holds only the binary, so use the archive for scans that run proofs in a sandbox.
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:
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-5In Windows PowerShell, set the key with $env:ANTHROPIC_API_KEY = "..." instead of export.
Before a paid run Spackle prints an estimate and the hard caps, and waits for a yes. Configuration covers OpenRouter, other OpenAI-compatible endpoints and fully local models.
| Property | In practice |
|---|---|
| Proof, not a hunch | A finding is demonstrated only by a proof of concept run in a sandbox, or by the recorded request and response for a running target. Otherwise it is high or plausible, with the reason, and a separate reviewer tries to refute it first. |
| 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. |
flowchart LR
T[Target] --> G{Scope gate}
G --> M[Mapper]
M --> S[Seeders]
S --> P[Planner]
P --> I[Investigators]
I --> R[Reviewer]
R --> X[Prover]
X --> F[Fixer]
F --> O[Reports]
M & S & P & I & R & X & F -.-> L[(Evidence ledger)]
L --> O
- Scope gate. A live URL needs an authorized scope before a single request is sent. Local source does not.
- Mapper and seeders use no model. The mapper finds languages, frameworks, entry points and trust boundaries. Seeders produce 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.
- Planner turns the map and the leads into a short list of questions worth answering.
- Investigators answer 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.
- Reviewer sees only the claim, not the reasoning, and tries to refute it.
- Prover writes 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.
- Fixer returns 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.
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.
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 one below is the finding from the top of this page, complete. With a model, the exploitation scenario and remediation are written for the specific application instead of the class.
A finding in full
Severity: HIGH 8.7. Confidence: demonstrated. Status: open.
- Id:
SPK-8253B6AF - Title: Path traversal in parameter name of /file
- Location:
GET /file (parameter name) - Class: path-traversal
- Surface: running-target
- CWE: CWE-22
- OWASP: A01:2021 Broken Access Control
- Status: open
- Label: high
- Score: 8.7 (CVSS 4.0)
- Vector:
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
Reasoning
Default CVSS 4.0 vector for this class, assuming the flaw is reachable as it typically is. Not refined by investigation.
GET /file with name set to ..\..\..\..\..\..\windows\win.ini returned status 200 with the content of a system file. 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.
Preconditions
- A file path is built from attacker-controlled input without being confined to a base directory
- The attacker can reach the feature that reads or writes the file
Steps
- Submit a file name containing parent-directory sequences or an absolute path (these steps are typical for this class of flaw; they were not confirmed for this code)
- Read files outside the intended directory, such as configuration files or keys
- Overwrite files where the same flaw exists on a write path
Chains into
- Credential theft from configuration files and key material
- Remote code execution when an executable or configuration file can be overwritten
- Status: demonstrated (the flaw's effect was observed: a proof of concept ran in the sandbox, or a recorded exchange shows it)
- Kind: http-sequence
Summary
The behavior was observed in the recorded exchange(s) X-0020.
Captured result
; for 16-bit app support [fonts] [extensions] [mci extensions] [files] [Mail] MAPI=1
Artifacts
evidence/exchanges/X-0020.json
What the attacker gains
- Read access to any file the application process can read
- Source code, configuration, and secrets stored on the server
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
- Level: demonstrated (the flaw's effect was observed, by a sandboxed proof or a recorded exchange)
- Reason: Observed directly: the recorded request and response show it. Impact beyond what the exchange shows was not exercised.
- Found by: dast-baseline:path-traversal
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.
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 latestEach 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. Run it from the scanned directory; it needs a container runtime and works for runs of a local directory only. The outcomes are added to the stored run and its reports are rewritten. See docs/findings.md.
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--yesor in CI it refuses instead of asking. - Hosts match exactly. Redirects and links that leave scope are not followed.
localhostand127.0.0.1are different hosts. - Only GET, HEAD and OPTIONS are sent unless the scope file sets
allow_unsafe_methods = true. - An API that links to nothing can be crawled from its source:
--routes-from <directory>adds the plain GET routes found in the application's code, within the same scope. See docs/config.md. - With a model configured, an investigator assesses each observation and may send follow-up requests through the same scope and the same request cap.
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 revisionDebug 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.
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: highThe 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 (withfetch-depth: 0on the checkout), or--since <revision>on the command line, reports only on files the pull request added or changed.--changeddoes the same for work you have not committed yet. - Known findings.
spackle baseline latest --out .spackle-baseline.json --reason "existing before adoption"writes a baseline from a full scan. A scan with--baseline .spackle-baseline.jsonstill reports those findings, asaccepted, but does not fail on them; a finding whose code only moved stays accepted. - Before each commit.
spackle scan . --stagedreports only on files whose staged version differs from the last commit. The repository ships a hook for the pre-commit framework:
repos:
- repo: https://github.com/TMHSDigital/Spackle
rev: v0.2.2
hooks:
- id: spackledocs/ci.md has the details of each.
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/projectdocs/mcp.md has the tool list and client 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 that Spackle finds in the working directory, usually the project being scanned, is not trusted with endpoints, key variables, prices, scope, sandbox images or budget raises; keep a file like the one below outside the project and pass it with --config.
[model]
provider = "openai-compatible"
base_url = "https://openrouter.ai/api/v1"
api_key_env = "OPENROUTER_API_KEY"
model = "anthropic/claude-opus-5-5"
[stages.mechanical] # cheap stages can use a cheaper or local model
provider = "ollama"
model = "your-local-model"
[budget]
usd = 5
tokens = 2000000
wall_time = "30m"| Setting | How |
|---|---|
| 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.
| Mode | What leaves the machine |
|---|---|
| No model configured | Nothing 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 provider | Prompts, plus redacted excerpts of the files the model asks to read, go to the provider you chose. Secret values are replaced before sending. |
| Local model | Requests go to localhost only. |
--offline |
Any 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.
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.
| Date | Version | Model | Mode | Precision | Recall | Verified-fix rate | Cost per finding |
|---|---|---|---|---|---|---|---|
| 2026-11-22 | 0.1.0 | none | deterministic | 83.9% | 68.4% | n/a | n/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.
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.
- 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.
demonstratedmeans the proof ran and printed an unguessable marker. Read the stored proof before you rely on it.
Report vulnerabilities in Spackle through private vulnerability reporting, not a public issue. SECURITY.md lists what counts, and docs/THREAT_MODEL.md is the threat model of Spackle itself, residual risks included.
CONTRIBUTING.md covers setup on Windows and Unix, the checks CI runs, the benchmark, and DCO sign-off. Wrong or missed findings have their own issue form.
ARTEX (by Autumn-27, AGPL-3.0) showed that a planner, workers and evidence-bound findings make a capable security agent. Spackle is the defender's take on that idea, written from scratch: no ARTEX code, prompts or assets are used.
Spackle runs these scanners when you have them, and is better for it: Semgrep, gitleaks, osv-scanner, Trivy and hadolint. CVSS 4.0 scoring uses go-cvss.