Skip to main content
Glama

Draugr

Know which security findings to fix first, across the scanners you already run. SAST, SCA, secrets, IaC and containers, every finding ranked by exposure, criticality, exploitability and, for Go, reachability.

CI OpenSSF Scorecard OpenSSF Best Practices Latest release License

Describe your app in one file, and Draugr hands back the findings in the order to fix them.

Every application carries problems nobody put there on purpose: a library that turned out to have a hole in it, a password committed by accident, a server setting that leaves a door open. Draugr finds them, works out which ones actually matter for your app, and answers the question you are really asking before a release, is this safe to ship?

It runs the established open-source scanners for you, Trivy, Semgrep, Gitleaks and others, so there is nothing to choose between, wire up, or read five of. You describe what you built, once, in one file: where the repositories are, what images it builds, what it exposes, what infrastructure it runs on. Draugr picks the checks that apply, runs the right tool for each, and produces evidence you can hand to somebody else. Bring the scanners you already pay for, or use the open-source defaults.

Findings are ranked, not listed. A scanner's "critical" describes a flaw in the abstract, how bad it could be at its worst, anywhere. The same flaw is act-now in the service strangers can reach and backlog in the internal tool three people use, and no scanner can tell those apart because the difference is in the file you wrote, not in the code. And draugr diff gates a pull request on new findings only, so inheriting two hundred existing ones does not block every change.

Quickstart · See it in action · What it checks · In your pipeline · Documentation · What Draugr doesn't promise · Security

See it in action

Priority (P1–P4) is not severity. Severity says how bad a flaw is at its worst, anywhere. Priority weighs that against how exposed and how important the part of your app it sits in is, which no scanner can work out, because it is not in the code.

draugr-dev/draugr-demo is a deliberately vulnerable app wired to Draugr: every control lights up, findings land in the repo's Security → Code scanning tab, and its example pull requests show the new-vs-fixed diff.

Related MCP server: GitHub MCP Server

Quickstart

curl -fsSL https://draugr.dev/install.sh | sh

Installs to ~/.local/bin, no sudo, and installs nothing if the archive fails verification. The script is readable in the repo; a download by hand, the GitHub CLI and go install are in the install guide.

draugr tools install   # fetch the scanners a scan here runs, pinned and verified
draugr scan .          # scan this repository, no descriptor needed

tools install reads the tree as draugr init does, or the descriptor beside it, so a small service gets the few scanners it runs rather than every one Draugr can provision. --all when you are preparing a machine for several projects.

Then describe what you actually ship, with draugr init writing a first draft:

project: my-app
release:
  version: "1.0"
config:
  controls:
    images:
      enabled: true
components:
  - name: web
    images:
      - image: alpine:3.19
draugr scan draugr.saga.yaml            # console summary; exits non-zero on fail
draugr scan draugr.saga.yaml -o out/    # also writes report.json + results.sarif
draugr scan draugr.saga.yaml --format markdown   # or html, junit, json, sarif

Your editor already knows this file. Draugr's JSON Schema is registered with SchemaStore, so any *.saga.yaml gets completion, hover docs and typo warnings on open with nothing to configure.

Or let discovery write the descriptor for you:

draugr survey github repos --org my-org -o draugr.saga.yaml
draugr survey k8s images --namespace prod -o draugr.saga.yaml

Full walkthrough: quickstart.

Want Draugr set up on your open-source project? Ask in the pinned discussion with the repository's link. We'll open a pull request that adds a descriptor tuned to the project and a workflow, and says what's worth fixing and what was set aside.

What it checks

Each control is backed by a tool Draugr executes rather than bundles, so every scanner stays under its own license, and you can swap it.

Control

Looks for

By default

sca

known flaws in the libraries you depend on

Trivy, Grype, OSV-Scanner and Mend opt-in

secrets

passwords and keys committed by accident

Gitleaks

sast

patterns in the code you wrote that let somebody in

Semgrep, gosec opt-in for Go

iac

settings that leave a door open, in Terraform, Kubernetes and Dockerfiles

Trivy, KICS opt-in

images

what is baked into your container images

Trivy, Grype opt-in

licenses

terms attached to code you did not write

Trivy

dast

problems only visible from outside a running app

Nuclei, authenticated, and from an OpenAPI spec

headers

how your site answers a browser

native

tls

certificates and encryption

native

kubernetes

your Kubernetes cluster, against the CIS benchmarks

native, kube-bench opt-in

cloud

your cloud account as it is, against the CIS benchmarks

Prowler

threats

whether anything you talk to is on a public blocklist

abuse.ch URLhaus

provenance

whether an image is signed by the builder you expect

Sigstore cosign

Every scanner, what it sends and whose terms it carries: integrations catalog.

Alongside them: content-hash caching, an SBOM per repository and image, KEV/EPSS enrichment, per-control gate thresholds, and suppressions that stay in the report with the reason someone gave rather than disappearing.

In your pipeline

The first-party GitHub Action installs Draugr, and with tools: true the scanners the descriptor needs. On a pull request it compares the head with the base, posts the findings the change adds and fixes as one comment, and fails on a new P1 finding. On a push to main it runs the full scan, fails on any P1 finding, and sends every finding to the Security tab as one Draugr tool.

name: Security
on:
  push:
    branches: [main]
  pull_request:
permissions:
  contents: read
  pull-requests: write          # the pull-request comment
  security-events: write        # the Security tab, on a push
jobs:
  draugr:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0          # the comparison needs the base commit
      - id: draugr
        uses: draugr-dev/draugr@v0   # pin @vX.Y.Z for reproducible CI
        with:
          saga: draugr.saga.yaml
          tools: true             # provision the scanners the controls need
          fail-on-new: P1         # fail a pull request on a new P1 finding
      - if: always() && github.event_name == 'push'   # even when the gate fails
        uses: github/codeql-action/upload-sarif@v3
        with:
          sarif_file: ${{ steps.draugr.outputs.sarif }}

Save it as .github/workflows/draugr.yml and commit it with the draugr.saga.yaml that draugr init wrote. The upload needs code scanning, which public repositories have and private ones get with GitHub Advanced Security; without it, delete the last step. To block a merge on a failing run, make the draugr check a required status check in the branch's protection rule or ruleset.

GitHub Actions · Code scanning: findings in the Security tab · GitLab: an include, GitLab's own report formats, a sticky merge-request comment · Azure Pipelines: a step template · pre-commit: a hook that fails a commit adding a finding

From an AI coding assistant. Ask one to check a change and it will, using whatever scanner it finds over a scope it chose. draugr mcp serves Draugr over the Model Context Protocol so it reads your committed descriptor instead. A scan that does more than read the checkout, such as probing a live host or sending data to a third party, asks you first.

claude mcp add draugr -- draugr mcp

See use Draugr from an AI coding assistant.

Glama score for the Draugr MCP server

Documentation

Documentation index →

What Draugr doesn't promise

A passing verdict means the controls you configured found nothing they were looking for. It is not a statement that your software is secure. It is silent about anything your descriptor does not declare, controls you did not enable, and whatever the underlying scanners miss. License findings are information, not legal advice. Draugr is provided under Apache-2.0 without warranty.

The details, including whose terms the scanners carry and your responsibility for authorization when scanning live endpoints: scope and disclaimer.

Security & supply chain

A security tool should hold itself to what it checks. Draugr does:

  • Standard output. Every finding is normalized to SARIF 2.1.0 (OASIS), so results flow into GitHub / GitLab / Azure DevOps code scanning and any SARIF-aware tool.

  • Signed releases and provenance. Release archives' checksums.txt is keyless-signed with cosign (Sigstore) into a checksums.txt.sigstore.json bundle, and each release publishes SLSA build-provenance attestations (gh attestation verify …); verify before installing (recipe).

  • SBOMs. A Syft SBOM is published for every release archive.

  • Verified tooling. draugr tools install fetches scanners pinned by SHA-256 and, where the upstream signs them, verifies the cosign signature too, and cosign itself is installable, so verification is self-sufficient.

  • We scan ourselves. Draugr runs its own scan on every pull request to this repository, static analysis included (Semgrep and gosec through the sast control, and gosec again in golangci-lint), and the findings are in the repository's Security tab. Supply-chain posture is tracked on the OpenSSF Scorecard.

  • Report a vulnerability. See SECURITY.md.

Development

Requires Go 1.26+. make build builds ./bin/draugr; make gate runs the full local gate (fmt, vet, lint, race tests with coverage and govulncheck). See CONTRIBUTING.md.

License

Draugr is licensed under the Apache License 2.0.

Available Tools

13 tools
check_toolsA

Report which external scanners Draugr can find on this machine, and what to run if any are missing. Pass the path of the Saga descriptor to check only the tools a scan of it runs, the ones draugr doctor requires; without a path, every tool Draugr knows about is checked. Call this when a scan fails or before suggesting one: a control whose scanner is absent cannot run, and Draugr reports that as a failure rather than a pass. This only looks, it will not install anything.

Inputs: path. Returns: note, ready, tools, remedy, +1 more

diff_reportsA

Compare two scans and report what a change introduced and what it resolved. Ask this rather than summarize_report when the question is whether a change made things worse: a project with inherited findings answers 'what is wrong' the same way before and after, which says nothing about the change. Give failOnNew to learn whether a pull request gate would fail. A severity in failOnNew is compared with each new finding's rankedSeverity, not its severity.

Inputs: basePath (required), headPath (required), limit, failOnNew. Returns: new, note, fixed, newCount, +6 more

explain_ruleA

Explain what a finding means and how to fix it, from the scan's own report. Returns the check in full and the remediation the scanner published. Prefer this over fetching a rule's help URI: the answer is already on disk, and for a benchmark that URI is often a registration form in front of a PDF.

Inputs: path (required), ruleId (required). Returns: note, ruleId, foundIn, helpUri, +2 more

feeds_statusA

Report whether each dataset a scan reads from the local feed cache (CISA's KEV catalog, FIRST's EPSS scores, the Go vulnerability database) is cached, when it was fetched, and whether it is stale. Call this when a report marks a feed stale, when govulncheck fails offline, or before relying on exploitability ranking. It only reads, and when a feed is missing or stale it returns the draugr feeds update command for the user to run.

Returns: dir, next, note, feeds, +3 more

fix_listA

Turn a report into the things to do about it, one list per kind of work (bump a dependency, change the code, change the infrastructure, rotate a credential, wait for a release, decide), each most urgent first, each action saying how many findings it clears and what it ranks by. Every action is returned unless limit is set. Name the head of each list that applies: the lists are in a fixed order of kind, only priority compares an action in one list with an action in another, and which list to work from is the reader's choice. Name every action tied with the head of a list, not only the first. Actions tie when they have the same priority, exploitation, severity and number of findings cleared, and their order among themselves carries no meaning. Ask this rather than summarize_report when the question is what to change: one upgrade usually clears many findings, and an image somebody else publishes is one action however many packages are wrong inside it.

Inputs: path (required), kind, limit. Returns: note, lists, clears, totalClears, +1 more

get_saga_schemaA

Return the JSON Schema for the Saga descriptor (*.saga.yaml) that this build of Draugr enforces. Use it to write or correct a descriptor rather than guessing at field names, the schema is the authority, and it rejects unknown keys.

Returns: hint, schema, draugrVersion

list_controlsA

List the security controls Draugr can run: what each one checks, which scanner backs it, and whether it applies per component or to the whole project. Call this before writing or editing a Saga descriptor, so the controls you enable are ones that exist.

Returns: hint, controls

list_surveyorsA

Name the surveyors this build has and what each discovers. Call it before survey, so the surveyor you ask for is one that exists.

Returns: hint, surveyors

propose_sagaA

Return the Saga descriptor draugr init would write for a directory, as YAML, with the controls its dependency files, infrastructure code and Dockerfiles call for. Call this when a project has no descriptor, before writing one from get_saga_schema. It writes nothing; show the proposal to the user, who decides whether and where to save it.

Inputs: path, perDirectory. Returns: note, path, saga, warning, +3 more

scanA

Run a scan for a Saga descriptor and return the verdict with findings ranked by priority. This is expensive and has side effects: it clones repositories, executes external scanners and reaches the network. Prefer summarize_report when a recent report already exists. A severity gate in the verdict judges each finding's rankedSeverity, not its severity. The scan merges draugr.config.yaml from the server's working directory, as draugr scan does. This tool has no flags: set scan.jobs, scan.limitToolThreads or scan.shareWorkers in that file instead.

Scope: this runs the controls the descriptor declares over the components it declares, and nothing else. It is a reproducible floor, not a substitute for reading the code. It does not reason about trust boundaries, whether a build context carries secrets into an image, how credentials are passed to subprocesses, protocol assumptions, or anything a control was not enabled for. If the question was whether a repository is safe to ship rather than whether it passes this gate, keep looking after this returns, the findings here are the part that can be checked the same way every time, not the whole answer. A scan whose scanners do more than read, such as probing a live host or sending data to a third party, or whose results are delivered off this machine, asks the user to approve it first.

Inputs: path (required), limit, minPriority. Returns: next, note, feeds, total, +11 more

summarize_reportA

Read the results.sarif an earlier draugr scan wrote and return its findings ranked by priority, deduplicated, with the rule documentation link for each. Answers 'what should I fix first?' from a scan that already ran, without starting a new one. A severity gate such as --fail-on high judges each finding's rankedSeverity, not its severity, which is the scanner's rating. A finding the project accepted comes back in accepted, with why, until when and the file and line that record the decision; report it as a decision and do not propose fixing it. The git history of a descriptor rule's line records who wrote it, and report.json carries that history in descriptor.exclusions[].gitHistory. It covers the controls that scan ran and nothing else, so treat it as a floor to build on rather than a complete account of a codebase's security. Given a report.json, read the results.sarif in the same directory, since report.json holds the verdict and the fix list and names each finding only by its fingerprint.

Inputs: path (required), limit, minPriority. Returns: next, note, feeds, total, +5 more

surveyA

Discover what an application is made of, the images running in a Kubernetes namespace, the repositories in an organization, and return a Saga descriptor for it. Prefer this over writing a descriptor from the schema: which namespaces exist and which images are actually running, at which digest, is not something to guess at. It reads a live system with credentials this machine already has, and returns YAML rather than writing a file.

Inputs: surveys (required), name, version. Returns: note, saga, warning, controls, +1 more

validate_sagaA

Check a Saga descriptor against the schema and report what's wrong. Give either a path on disk or the YAML content directly. Validating is free and has no side effects, so prefer it over assuming an edit was correct.

Inputs: path, content. Returns: error, valid, controls, components

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 13 tools

    Disambiguation5/5

    The tools map to clearly distinct stages: discovery, descriptor authoring, validation, environment checks, scanning, and report analysis. Close neighbors such as summarize_report versus fix_list and survey versus propose_saga are explicitly separated by use case in their descriptions, so an agent can reliably choose between them.

    Naming Consistency4/5

    All tools use snake_case and most follow a verb_noun pattern such as list_controls, validate_saga, and summarize_report. The main deviations are the bare verbs scan and survey plus the noun-first feeds_status, but these remain readable and predictable.

    Tool Count5/5

    The 13 tools are well-scoped for a security-scanning workflow: discovery, descriptor generation and validation, preflight checks, scanning, and report interpretation all have coverage. There is no obvious redundant surface, and the count sits comfortably in the appropriate 3–15 range.

    Completeness4/5

    The core lifecycle from discovery through scanning to analysis, remediation guidance, and report diffing is well covered. Minor gaps exist around environment mutation—there is no tool to update feeds, install missing scanners, or record finding acceptances—but these are intentionally delegated to user-run commands or existing report fields.

    Maintenance

    ActivityActive
    ResponsivenessMixed handling

    Related MCP Connectors

    Related MCP Servers