Free plan available. Set up in minutes with the collectors you already use. Start free
Logthread

Guide

Send scan results to Logthread

New to this? See Code and app security: what you get.

Your code scanners already run in CI. Logthread is where their results land, next to the runtime logs, detections and incidents of the same services. Every scanner's findings go into one view (Code security → Findings) with the same triage: status, assignee, notes and history. Findings are deduplicated across runs and close themselves when a full scan stops reporting them. Logthread does not scan your code; your scanners do, in your pipeline.

The quickest start is the guided setup in the app: Code security → Code scans in CI. Pick your CI system and scanners, create a key with the scans scope, and copy the generated pipeline file. The page waits for the first upload and shows its findings.

What Logthread reads#

Kind (kind)Scanners testedFormat
Code, SAST (sast)Bandit 1.9, gosec 2.22, Semgrep-engine scanners such as Opengrep (tested with Semgrep CE 1.184 and local rules), Security Code Scan (.NET), SpotBugs with FindSecBugs, ESLint security pluginsSARIF 2.1.0
Libraries you use, SCA (sca)OSV-Scanner 2.0, Trivy 0.70 (fs), GrypeSARIF 2.1.0
SBOM (sca)Syft 1.55, Trivy 0.70CycloneDX JSON
Secrets (secrets)Gitleaks 8.24, TrivySARIF 2.1.0
Cloud config, IaC (iac)Checkov 3.2, KICS, Trivy 0.70 (config)SARIF 2.1.0
Container images (image)Trivy, GrypeSARIF 2.1.0
Your running website and API, DAST (dast)OWASP ZAP 2.16 baseline, full and API scans; Nuclei 3.4ZAP JSON report (-J); Nuclei JSONL (-jsonl) or JSON export
Mobile apps (mobile)mobsfscan 1.1 (app source: Android, iOS, Flutter, React Native); MobSF 4.5 (APK, AAB or IPA binary analysis)SARIF 2.1.0 (mobsfscan --sarif); MobSF JSON report (/api/v1/report_json)

Logthread detects the format from the content. Any other tool that writes SARIF 2.1.0 works too. Each scanner is open source and runs from its own project's image; Logthread ships none of their code or rules.

Upload a report#

One report per request, as the raw body, gzip or not, up to 20 MB as sent:

curl -sS --fail-with-body -X POST "https://logthread.com/api/scans" \
  --url-query "service=checkout-api" --url-query "kind=sast" --url-query "tool=Bandit" \
  --url-query "branch=$BRANCH" --url-query "commit=$COMMIT" \
  --url-query "repository=https://github.com/acme/checkout" \
  -H "Authorization: Bearer $LOGTHREAD_API_KEY" \
  -H "Content-Type: application/octet-stream" \
  --data-binary @bandit.sarif

The guided setup fills in the address.

The key needs the Upload scan results (scans) scope. Create it under Settings, API keys (admins), and store it as a CI secret, never in the pipeline file. Every API key also has the read scope, so this key can read the workspace's data, but it cannot triage findings or change anything other than uploading reports: triage is for people signed in to the app, and an API key sent to it gets 401. People can also upload a file from the browser: Code security → Findings → Upload a report (members and above).

With the Logthread SDKs#

The Node.js, Python and .NET SDKs upload a report in one call, gzip it, and take the branch, commit, repository and pipeline from GitHub Actions, Azure DevOps, GitLab CI or Jenkins on their own. The Node.js and Python SDKs also give a command for a pipeline step. It exits 1 when the gate fails and 2 on an error:

logthread scan upload bandit.sarif --service checkout-api --fail-on high          # Node.js SDK
python3 -m logthread scan upload bandit.sarif --service checkout-api --fail-on high  # Python SDK

In code: uploadScan({ service, file }) (Node.js), logthread.upload_scan(service, file=...) (Python) and LogthreadScans.UploadFileAsync(service, path) (.NET). Each returns the counts and the gate (gate.failed, GateFailed in .NET). The guided setup writes pipelines that use the command when you choose Upload with: Node.js SDK or Python SDK.

Parameters#

ParameterRequiredMeaning
serviceyesThe service the code runs as, as it appears in your logs. Findings, the alert rule and the Services page use it.
kindwhen the tool does not saysast, sca, secrets, iac, image, dast or mobile. Bandit, gosec, Semgrep, Security Code Scan, Gitleaks, Checkov, KICS, OSV-Scanner, Grype and mobsfscan are recognised; Trivy covers several kinds, so name it. ZAP and Nuclei are always dast, an SBOM is always sca, a MobSF report is always mobile.
toolnoThe scanner's name. Default: the name in the report. Use the same name every run: results are compared per tool.
branchnoThe branch scanned. Empty for DAST.
commit, repositorynoWith a web URL of the repository (GitHub, GitLab, Bitbucket or Azure DevOps), each finding links to its file and line at that commit.
pipeline_urlnoShown in the finding's history.
partialnotrue for a diff scan of changed files only. A partial scan never resolves anything and never becomes a baseline.
base_branchnoWhat a branch with no full scan yet is compared with. Default: main, then master.
fail_on, gatenoThe build gate: see Gate builds on new findings.

The answer#

{
  "scan_id": "scan_01JC...",
  "service": "checkout-api", "branch": "main", "kind": "sast", "tool": "Bandit", "format": "sarif",
  "findings": 10,
  "by_severity": {"info": 0, "low": 3, "medium": 4, "high": 3, "critical": 0},
  "new_findings": {"info": 0, "low": 0, "medium": 0, "high": 1, "critical": 0, "total": 1},
  "resolved": 2,
  "baseline": {"scan_id": "scan_01JB...", "branch": "main", "at": "2026-11-09T10:12:00Z"},
  "gate": {"fail_on": "critical", "failed": false, "count": 0, "reason": "No new finding at critical or above."},
  "url": "/security/code/findings?scan=scan_01JC..."
}

Errors answer with code and message: invalid_report (not a format Logthread reads), kind_required, invalid_kind, too_large (413), too_many_findings and scan_quota (429).

Limits#

PlanUploads per 24 hoursFindings per reportFindings kept in the workspace
Free502,00020,000
Starter30010,000100,000
Growth2,00020,000300,000
Enterprise10,00050,0001,000,000

A report with more findings than the plan takes is refused whole, never cut, so a cut report can never resolve findings it left out. Every plan also takes at most 30 uploads a minute and 2 at the same time per workspace (429 with Retry-After). A report is at most 20 MB as sent and 64 MB once expanded.

How uploads are metered#

Each accepted upload counts once as a scan report upload, whether it came from CI with an API key, an SDK, an AI agent over MCP or the browser. An upload that fails the CI gate (409) was stored, so it counts. A retry is not counted again: the same report (compared after decompression) for the same service, kind and tool within 10 minutes of an upload that counted is stored and answered as usual, and the Usage page counts it once. A refused upload never counts: an invalid or unrecognised report, a report over the size or findings limit, an upload over a quota or the rate limit, or one outside your access. Reports from managed scans are not uploads.

Administration → Usage shows this month's count under Scans, split into CI, SDK and MCP uploads and browser uploads. From 1 November 2026 uploads are charged by usage at the standard scan prices (the first 100 each month are free, then ₹40 or $0.50 each), unless your billing account has its own agreed rate; the limits above still apply. Before billing is set up for your workspace, the usage is recorded and may be charged on your first statement.

What is kept, and for how long#

  • A pull request branch (any branch other than the service's default branch) with no scan in 30 days is removed with its findings. A service keeps its 20 most recently scanned pull request branches.
  • Scans are kept for 400 days, except the ones a baseline still uses. The list of findings in each scan is kept for 90 days; its counts stay on the scan.
  • Fixed findings are kept for 400 days after they were fixed.

How findings are kept#

  • One finding per issue. A finding's identity is the SARIF partialFingerprints when the tool gives them. Otherwise it is the tool, the rule, the file and the code snippet. For DAST it is the URL (without parameter values) and the parameter; for dependencies, the package. Line numbers take no part, so moving code does not open a new finding. The same issue on two branches is two findings, one per branch.
  • Resolved by full scans. When a full scan of the same service, branch, kind and tool no longer reports a finding, the finding is marked fixed. If it comes back, it reopens and counts as new. Another tool's scan never resolves it.
  • DAST crawls vary. A ZAP or Nuclei run reaches somewhat different pages each time, so a finding on a page this crawl did not reach is marked fixed and comes back when a later crawl reaches it. Point full scans at a stable test site, and judge DAST by the latest scan's findings rather than by its resolved count.
  • Severity comes from the tool: SARIF security-severity (CVSS: 9 and above critical, 7 high, 4 medium, else low), then the tool's own rating, then the SARIF level (error high, warning medium, note low). ZAP risk High, Medium, Low and Informational map to high, medium, low and info. A leaked secret is at least high.
  • Secrets are never stored. For a secrets finding, Logthread keeps the rule, the file and line, and a keyed hash of the value (HMAC-SHA256 under a random key of your workspace, sealed with Logthread's key-encryption key), so two leaks can be told apart. The hash is useless outside Logthread and different in every workspace. The matched value, the snippet and the message are dropped before anything is saved, and the uploaded file itself is never kept. The same applies to code findings about a credential (CWE-798, 259, 321, 312 and 532, and rules named hardcoded-*), which keep the tool's own severity. Rotate the credential, then remove it from the history.
  • Credentials in other findings are masked. Snippets, messages, evidence and DAST URLs are scanned before they are stored. Passwords and tokens in URLs (scheme://user:password@), Cookie and Set-Cookie values, Authorization headers, session ids and key, secret, token, password and credential values are replaced with [REDACTED:…], as are well-known token formats (GitHub, Slack, Stripe, AWS, Google, GitLab, npm, JWTs and private keys).
  • The default branch. Counts, the Services page and the alert rule follow each service's default branch (and DAST). The first full scan of a service sets it; main or master take over when they are first scanned, unless a person chose one. Change it in Code security → Findings: choose the service, then Default branch. Every other branch is a pull request branch: choose it under Branch to see its findings.
  • SBOMs (CycloneDX) are matched by Logthread against the OSV.dev advisories of each package's ecosystem: npm, PyPI, Maven, NuGet, Go, crates.io, RubyGems and Packagist. This is the same matching that host inventory uses. Each match is a finding with its fixed version. Advisories without a fixed version are not matched (there is nothing to upgrade to); the scanner's own SARIF still reports them. The first SBOM of a new ecosystem waits a few minutes while its advisories download. New advisories re-match the latest SBOM within the hour, and the history says so.

Mobile apps#

  • Source: run mobsfscan on the app's source (mobsfscan --sarif -o mobsfscan.sarif .). Its results carry CWE ids and the OWASP Mobile and MASVS references.
  • Binaries: scan the built APK, AAB or IPA with MobSF and upload its JSON report. Logthread keeps one finding per code rule and file, and per manifest, certificate, network and binary finding. MobSF's "good" and "secure" results, binary protections that are in place and privacy trackers are not weaknesses, and are left out.
  • Secrets: each possible secret MobSF lists is kept as a finding with only a keyed hash of its value, never the value.
  • Out of scope: mobile DAST (testing the running app on a device).

OWASP Top Ten and CWE Top 25#

Every finding shows its OWASP Top Ten 2021 category and, when it has one, its rank in the 2025 CWE Top 25 Most Dangerous Software Weaknesses. Both come from each finding's CWE ids, using MITRE's published data:

  • view CWE-1344 "Weaknesses in OWASP Top Ten (2021)";
  • view CWE-1435 "Weaknesses in the 2025 CWE Top 25".

One rule is added: a known-vulnerable package, in dependencies or in a container image, is A06 "Vulnerable and Outdated Components", the category OWASP defines for it. A finding with no CWE in the view is counted as having no category, and is never guessed. Filter by category or Top 25 in Findings, the API (owasp=A03, owasp=unmapped, top25=true) and the list_code_findings MCP tool. The application security report summarises them over a period.

Triage#

Open a finding to see where it is, the rule and its help, how to fix it, and every scan that reported it. Set the status and assignee, and add notes. These changes are recorded in the audit log.

StatusMeaning
Open, InvestigatingBeing looked at.
Accepted risk, False positiveNot counted as open work, never fails a build, never fires an alert. The same finding on a new branch keeps this status. A reason is required when you set it (reason in the API): it is kept with the change and shown, with who set it, in the application security report.
ClosedDone by hand. A closed finding that a later scan reports again reopens.

Alerts, Services and AI agents#

  • Alert rule. Alerts, Rules, New rule, Code and app security findings opens one incident per service with open findings at or above a severity (accepted risks and false positives excluded). The incident lists the worst findings and links to them. Alert on findings on the Findings page fills the rule in.
  • Services. The Services page shows each scanned service's open critical and high findings and when it was last scanned.
  • AI agents (MCP). list_code_findings lists and filters findings. upload_scan uploads a report and returns the gate, with a key that has the scans scope.

Who sees what#

Viewers read findings; members upload reports from the browser and triage. A person whose data scope is by service sees and uploads only those services; a scope by any other field has no access to code findings. Every upload is in the audit log, with its counts.

Supported CI systems#

The guided setup (see Scan your code in CI) writes a ready file for GitHub Actions, GitLab CI, Azure DevOps and Jenkins. Each one runs the chosen scanners from their pinned images, uploads each report, and fails the build at the end if any upload reports new findings at your severity. See Gate builds on new findings.