A group has the title of its rule's single findings, so the title
fallback of the issue search found one of their issues (being closed as
grouped) and no issue was opened for the group. The refreshed places of
a stored group also set updated_at.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
More than five low or info findings of one scanner's rule in one
repository are now one finding that lists every place (file:line), so
38 identical logging findings in an Android app are one finding and one
tracker issue. Its fingerprint comes from (repository, scanner, rule),
not from a place, so triage and status stay with it from scan to scan;
a later scan updates its list of places.
Findings stored one per place before are closed with the new scan change
"grouped" (not "no longer found"), with a comment on their issues that
says so; a person's decision on one of them stays.
Configurable: FINDING_GROUP_THRESHOLD (default 5, or off),
FINDING_GROUP_SCANNERS (per scanner, e.g. mobsfscan=3,gitleaks=off),
FINDING_GROUP_SEVERITIES (default low,info); checked at startup.
gitleaks' generic-api-key no longer reports the hex ids in Eclipse
*.launch debugger configurations; every such hit in the pilot firmware
repositories was one. Its other rules still apply there.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
Syft names a DLL without a .deps.json by its version resource: product
name and file version. As a purl that is no NuGet package, so OSV
matched nothing: pkg:nuget/DotNetZip%20Library@1.9.1.5 has no advisory,
pkg:nuget/DotNetZip@1.9.1.5 has GHSA-7378-6268-4278.
Syft's dotnet-portable-executable-entry components are now mapped, in
this order:
- a DLL inside packages/<Id>.<Version>/ is that package
- a curated alias table, by assembly name (file name) and then product
name (DotNetZip Library -> DotNetZip, Json.NET -> Newtonsoft.Json,
Apache log4net -> log4net, Xceed Toolkit for WPF ->
Extended.Wpf.Toolkit, empira MigraDoc -> PDFsharp-MigraDoc), with how
the package's file versions relate to its versions (Newtonsoft.Json:
first three parts; EntityFramework: unrelated, so the DLL only
confirms a manifest entry)
- the assembly name, when it is a valid NuGet id and not one of the
tree's own projects (project name or <AssemblyName>), whose names are
not sent to OSV or nuget.org
- otherwise no purl, and the scan records the assembly as not matched
against OSV
Alias before file name: DotNetZip ships Ionic.Zip.dll, and Ionic.Zip is
a different package. Versions go through nuget_license's
normalise_version (4.1.0.0 -> 4.1.0, +build dropped); a non-zero fourth
part stays (1.9.1.5 is a real NuGet version).
One package found in several DLLs, or in a DLL and a manifest, is one
entry: SbomEntry gains `evidence` (the manifests and DLLs it was read
from), and merge_nuget compares normalised versions and merges the
evidence instead of dropping it. Native pe-binary components are left
as they are.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
The per-id retries of #472 ask about a finding up to three times, the
critical/high ones on their own. A model that accepts requests and never
answers would hold each call for the client's 300 s timeout: up to 720
calls instead of 60. When every call in flight fails at once, the model
is taken as down; what it answered so far is kept, the rest is recorded
as "skipped: no answer". An unreadable answer still counts as an answer
and is asked about again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
The LLM triage of the first pilot scans left 74 of 75 findings without a
triage_action. Three causes:
- Partial answers: 30 findings per call with a 4096-token budget that a
reasoning model spends on thinking and the answer together. The answer
was cut off after a few verdicts; #457 only retries an empty answer.
Verdicts were also matched by position and the echoed id was ignored,
so a finding the model left out shifted every later verdict.
- Not persisted: write_back stored triage fields only on rows this run
inserted. A rescan (or a scan restarted after stages 1-4 had saved its
findings) triaged them, then dropped the result.
- Unanswered findings were marked "triaged" and counted as "passed".
Now:
- 10 findings per call with a 12k budget (below #457's retry budget);
verdicts matched by id (the finding's number in the chunk, or its
fingerprint), by position only when the answer carries no ids
- findings without a verdict are asked again by id in chunks half the
size, then each critical/high one on its own
- one call per fingerprint: copies (gitleaks reports a secret once per
commit) share the verdict
- low/info findings are not sent; recorded as triage_action "skipped",
rationale "skipped: low"; likewise "skipped: over cap" and "skipped:
no answer". Skipped findings keep their status (open).
- write_back stores triage on rows an earlier run stored while nobody
has decided about them (open/triaged/needs_review); a skip never
replaces an earlier verdict; status still only onto open rows
- one summary line per scan replaces "N findings passed confidence
threshold": triaged by outcome, skipped by reason, LLM calls
- dismissed and low-confidence findings stay as needs_review (#367):
nothing is dropped
Tests drive the triage with a fake model: partial answer then retry by
id, malformed chunks, model down, threshold, lows and copies, and the
stored updates for new and earlier rows.
Closes#462
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
GET /api/v1/platform/version reported the crate version (0.4.4) and no
commit, so the portal's staff dashboard showed Prüfwerk without one. The
agent now reads PRUEFWERK_VERSION and PRUEFWERK_COMMIT at compile time;
the deploy-agent job passes the latest v* tag (without its v) and the
commit as Docker build args, like the tenant-registry's GET /version.
Locally, or with empty args, it falls back to the crate version and
"unknown".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
NuGet SBOM entries carried no license: none of the files they come from
names one. Fill it in after the NuGet components are merged (#467):
- local first: the .nuspec of a restored package; <license
type="expression"> as SPDX, type="file" as LicenseRef-file, an old
<licenseUrl> mapped to SPDX for well-known license pages, else kept
- then nuget.org: registration leaf (gzip) -> catalogEntry (inline or
linked on api.nuget.org) -> licenseExpression / licenseFile / licenseUrl
- only real ids at exact versions (no ranges, no DLL-metadata names);
versions normalised as nuget.org files them (6.2.0.0 -> 6.2.0, 2.0 ->
2.0.0)
- ids a nuget.config maps to another feed are never sent; a tree whose
nuget.config lists another feed without a mapping is not looked up
- through guarded_net, 8 at once, 10 s per request, 60 s and 300
uncached packages per scan; failures stay empty, one warning per scan
- cached across tenants in the admin database (nuget_licenses, TTL: a
year for a license, a week for none)
- NUGET_LICENSE_LOOKUP=false turns the nuget.org step off
Closes#467
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
Minimal .NET/C# support for epic #445 (N1-N5): detection of solutions/projects and target frameworks, NuGet SBOM without build or restore (pkg:nuget purls for OSV, unresolved-dependency warning, end-of-support frameworks), own C# semgrep rule pack, .NET configuration and key-file checks, .NET build output and restored packages not counted as own code. Fixture fixtures/dotnet/framework48, docs .NET-Projekte (DE/EN).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
Every member of a tenant could use Prüfwerk fully, whatever their org
role: nothing but manual findings checked org_roles. A FINANCE user
could create and delete targets, start scans and triage findings.
Now, as decided on 30.09.2026:
- IT_ADMIN, USER: read and write.
- CXO, LEGAL: read only. GET/HEAD/OPTIONS plus the POSTs that only
read (OSCAL assess, pentest report export, code chat, help chat).
- FINANCE or no role: no access.
- Agent: one middleware (api::role_gate) right after the JWT one
refuses with 403 {"error":"forbidden_role","access":...}. It is
classified by route template, so ids do not matter. Support sessions
(TenantContext.staff) and requests without a tenant context
(platform service API, Werkbank runner and admin APIs, health) are
unchanged. Manual findings stay IT_ADMIN-only.
- Core: ProductAccess and TenantContext::product_access.
- Dashboard: a role without access sees a "no access" page (DE/EN)
with a link back to the portal, and no server function runs for it.
Read-only roles get a read-only note, and write actions (add target,
scan, edit, delete, triage, tokens, MCP servers, pentest control,
graph/embedding builds, notification dismiss) are hidden. The direct
MCP server functions check the role, and access tokens are withheld
from read-only roles.
- MCP server: unchanged. Its tokens are tenant-bound and carry no
roles, its tools only read, and creating a token now needs write
access.
- Docs: the roles table in Getting Started.
- The crates are at version 0.4.4.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
The dashboard, the docs site and the pentest report no longer load
Google Fonts, so no visitor's IP goes to Google (platform/portal#65,
privacy release gate 4).
- Dashboard: Geist and Geist Mono (variable woff2, SIL OFL 1.1) are
embedded and served at /fonts/geist.woff2 and /fonts/geist-mono.woff2;
main.css declares them with @font-face under the same family names.
- Docs: the same woff2 files are bundled by Vite from the theme; the
Google Fonts links in config.mts are gone.
- Pentest report: preconnects and the Google Fonts stylesheet removed;
a system font stack instead, with a test that the report references
no external resource.
- The crates are at version 0.4.3.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB