Category: DisclosureGoApache-2.0v0.1.0

reportlint

reportlint checks a security disclosure report before you send it. Point it at a Markdown file and it reports a file link that points at a branch, a missing proof of concept, a CVSS score that does not match the vector, or a token or a local path that slipped into the proof of concept.

git clone https://github.com/ucsurf/reportlintcd reportlintgo build -mod=vendor -trimpath -o reportlint ./cmd/reportlint

View on GitHubRelease v0.1.0

What it does

reportlint checks a Markdown security report before it is sent. The README says it runs offline: it never opens a network connection, and a test checks that the program does not link any package that could. It reads the Markdown files you name, plus an optional config file, and nothing else. It is a single Go binary and also a GitHub Action.

The rules named in the README, with their default severity:

  • Errors: permalink, required-sections, cvss, leak-secret, signature, support-link, credit.
  • Warnings: leak-path, leak-host, length, overclaim.

permalink requires a GitHub or GitLab file link that has a line reference to use a full 40-character commit sha. required-sections looks for headings about the affected version or commit, the proof of concept or reproduction steps, and the impact. cvss checks that a 3.0, 3.1 or 4.0 vector is valid. For 3.x it computes the base score and compares it with a score or a severity word written near the vector. For 4.0 it checks the vector and does not compute the score. leak-secret looks for tokens, private keys and long high-entropy strings. leak-path and leak-host flag local paths and private addresses or internal hostnames. signature, support-link and credit check for the configured signature, support URL and credit line. length defaults to 60 lines and 3000 characters. overclaim flags phrases that say work was done when no code block is nearby.

The defaults are ucsurf’s house style. The README says to change them if you are not ucsurf. Exit 0 means nothing at error level. 1 means at least one error, or a warning when --strict is set. 2 is bad usage, an unreadable file or a bad config.

To build from source the README says Go 1.27 or newer. The dependency gopkg.in/yaml.v3 is vendored, so that build needs no network. Tag v0.1.0 also has archives for linux, darwin and windows (amd64 and arm64), with SHA256SUMS. The license is Apache-2.0.

Limits

The README says CVSS 4.0 vectors are checked for syntax only, because the 4.0 score comes from a lookup table the program does not include. For CVSS 3.x only the base score is computed. Temporal and environmental metrics are accepted and ignored.

The secret check is pattern and entropy based. It will miss some secrets and flag some harmless strings. The overclaim check looks at phrases and at how close a code block is. It does not understand sentences.

At most 200 matches of one pattern are examined per line, and one rule lists at most 500 findings per file. Markdown is read line by line. Headings, fenced code blocks and **Bold:** labels are understood. Indented code blocks and HTML are not.

The signature and credit defaults are for ucsurf. Replace them in the config.

Usage

  1. Check a file or a directory

    The README says a directory means every *.md under it. Flags can come before or after the files.

    reportlint report.mdreportlint reports/
  2. SARIF, strict, fix, and stdin

    The README says --strict makes warnings exit 1. --fix rewrites branch links to permalinks when you give it the commit sha. It does not look the sha up. Exit 0 means nothing at error level, 1 means at least one error (or a warning with --strict), and 2 is bad usage, an unreadable file or a bad config. Reports over 1 MiB are refused.

    reportlint --format sarif -o out.sarif report.mdreportlint --strict report.mdreportlint --fix --sha <full-sha> report.mdcat report.md | reportlint -
  3. GitHub Action

    The README says the action builds the program from its own checkout, with the vendored dependency and no download, then runs it. Pin the action to a commit sha for the strictest setup.

    name: lint reports
    on: [pull_request]
    permissions:
      contents: read
    jobs:
      reportlint:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v5
          - uses: ucsurf/reportlint@v0.1.0
            with:
              paths: reports/
              strict: "true"

Machine-readable: JSON · Markdown · ID reportlint

More tools

  • aftermath

    Local, read-only Go tool that lists things on a developer machine that would run again or grant access after a supply-chain incident: SSH keys, cron, systemd, LaunchAgents, Windows autorun entries, shell rc files, git and package-manager config, and Claude, Cursor and VS Code autorun settings.

    ucsurf/aftermath
  • lockreview

    Reviews GitHub Actions lockfile (actions.lock) diffs and flags repository identity changes, impostor commits, ref rollbacks, new transitive actions, and runs/dist changes.

    ucsurf/lockreview
  • hookjack

    Static scanner for commands that AI assistants and IDEs run on their own when you open a repository.

    ucsurf/hookjack
  • disclose

    Finds where to report a vulnerability.

    ucsurf/disclose
  • repojack

    Finds dependencies that point at a deleted or renamed GitHub account, so someone else could register the name and serve that code.

    ucsurf/repojack
  • vuln-patterns

    Semgrep rules taken from vulnerabilities that are already public.

    ucsurf/vuln-patterns
  • pwnreq

    Finds GitHub Actions workflows where someone without write access can run code that sees repository secrets: pwn requests and script injection.

    ucsurf/pwnreq

If this work is useful to you, you can support it on Buy Me a Coffee.