# The free scanners on the planted baseline (Nov 14, 2026) Each tool ran once on a plain copy of the planted app and once on the reference app, by a measurement agent (no AI, nothing metered). Paths are relative to the app root; , and stand for the scan folders. Licences are cited in the posts, not quoted here. ## 1. .NET analyzers (SDK built-in) dotnet-analyzers/version.txt: 11.0.100 8.0.428 [C:\Program Files\dotnet\sdk] 9.0.321 [C:\Program Files\dotnet\sdk] 10.0.100-rc.1.25451.107 [C:\Program Files\dotnet\sdk] 11.0.100 [C:\Program Files\dotnet\sdk] Microsoft.CodeAnalysis.NetAnalyzers.dll (SDK 11.0.100) FileVersion 11.1.26.53018, ProductVersion 11.0.100-rtm.26529.118+297acf930fb0f5c07fd4e51d78e521b4ad2e5d1f SARIF tool.driver: Microsoft (R) Visual C# Compiler 5.12.0-1.26529.118 dotnet-analyzers/baseline/command.txt: cd baseline/PatientPortal && dotnet restore cd baseline/PatientPortal && dotnet build --no-restore --no-incremental cd baseline/PatientPortal && dotnet list package --vulnerable --include-transitive cd baseline/PatientPortal && dotnet restore --force -p:NuGetAudit=true cd baseline/PatientPortal && dotnet restore --force cd baseline/PatientPortal && dotnet build src/PatientPortal.Api/PatientPortal.Api.csproj --no-restore --no-incremental -p:EnableNETAnalyzers=true -p:AnalysisLevel=latest-all -p:AnalysisModeSecurity=All -p:ErrorLog=\sec\scan\out\dotnet\baseline\api.sarif%2Cversion=2.1 cd baseline/PatientPortal && dotnet build tests/PatientPortal.Tests/PatientPortal.Tests.csproj --no-restore --no-incremental --no-dependencies -p:EnableNETAnalyzers=true -p:AnalysisLevel=latest-all -p:AnalysisModeSecurity=All -p:ErrorLog=\sec\scan\out\dotnet\baseline\tests.sarif%2Cversion=2.1 ## 2. NuGet audit and dotnet list package --vulnerable nuget-audit/version.txt: 11.0.100 8.0.0-rc.53118+297acf930fb0f5c07fd4e51d78e521b4ad2e5d1f.297acf930fb0f5c07fd4e51d78e521b4ad2e5d1f nuget-audit/baseline/command.txt: cd baseline/PatientPortal && dotnet restore cd baseline/PatientPortal && dotnet build --no-restore --no-incremental cd baseline/PatientPortal && dotnet list package --vulnerable --include-transitive cd baseline/PatientPortal && dotnet restore --force -p:NuGetAudit=true cd baseline/PatientPortal && dotnet restore --force cd baseline/PatientPortal && dotnet build src/PatientPortal.Api/PatientPortal.Api.csproj --no-restore --no-incremental -p:EnableNETAnalyzers=true -p:AnalysisLevel=latest-all -p:AnalysisModeSecurity=All -p:ErrorLog=\sec\scan\out\dotnet\baseline\api.sarif%2Cversion=2.1 cd baseline/PatientPortal && dotnet build tests/PatientPortal.Tests/PatientPortal.Tests.csproj --no-restore --no-incremental --no-dependencies -p:EnableNETAnalyzers=true -p:AnalysisLevel=latest-all -p:AnalysisModeSecurity=All -p:ErrorLog=\sec\scan\out\dotnet\baseline\tests.sarif%2Cversion=2.1 ## 3. Semgrep, community rules from the registry semgrep/version.txt: 1.184.0 semgrep/command.txt: docker run --rm --name sec-scan-sg-baseline -v /sec/scan/baseline/PatientPortal:/src:ro -v /sec/scan/out/semgrep:/out -w /src semgrep/semgrep:latest semgrep scan --metrics=off --disable-version-check --config p/csharp --config p/security-audit --config p/secrets --config p/owasp-top-ten --json-output /out/baseline.json --sarif-output /out/baseline.sarif --text /src docker run --rm --name sec-scan-sg-reference -v /sec/scan/reference/PatientPortal:/src:ro -v /sec/scan/out/semgrep:/out -w /src semgrep/semgrep:latest semgrep scan --metrics=off --disable-version-check --config p/csharp --config p/security-audit --config p/secrets --config p/owasp-top-ten --json-output /out/reference.json --sarif-output /out/reference.sarif --text /src ## 4. OWASP ZAP baseline scan zap/baseline/start-line.txt: 07:50:15 pid=46344 : cd \sec\scan\baseline\PatientPortal\src\PatientPortal.Api; ASPNETCORE_ENVIRONMENT=Production ASPNETCORE_URLS=http://127.0.0.1:16310 Jwt__Key=zap-scan-test-signing-key-not-a-secret-7f3c9a21d0e4b8 dotnet bin\Debug\net10.0\PatientPortal.Api.dll 07:51:05 pid=5400 : cd \sec\scan\baseline\PatientPortal\src\PatientPortal.Api; ASPNETCORE_ENVIRONMENT=Production ASPNETCORE_URLS=http://127.0.0.1:16310 Jwt__Key=zap-scan-test-signing-key-not-a-secret-7f3c9a21d0e4b8 AllowedHosts=host.docker.internal dotnet bin\Debug\net10.0\PatientPortal.Api.dll zap/baseline/root/command.txt: docker run --rm --name sec-scan-zap-baseline -v /sec/scan/out/zap/baseline/wrk:/zap/wrk/:rw -t zaproxy/zap-stable:latest zap-baseline.py -t http://host.docker.internal:16310/ -r report.html -J report.json -w report.md zap/baseline/stafflogin/command.txt: docker run --rm --name sec-scan-zap-baseline-stafflogin -v /sec/scan/out/zap/baseline/stafflogin/wrk:/zap/wrk/:rw -t zaproxy/zap-stable:latest zap-baseline.py -t http://host.docker.internal:16310/staff/login -r report.html -J report.json -w report.md ## 5. gitleaks gitleaks/version.txt: v8.30.1 gitleaks/command.txt: docker run --rm --name sec-scan-gl-baseline-dir -v /sec/scan/baseline/PatientPortal:/src:ro -v /sec/scan/out/gitleaks:/out zricethezav/gitleaks:latest dir /src --no-banner --no-color -v -f json -r /out/baseline-dir.json docker run --rm --name sec-scan-gl-baseline-git -v /sec/scan/baseline/PatientPortal:/src:ro -v /sec/scan/out/gitleaks:/out zricethezav/gitleaks:latest git /src --no-banner --no-color -v -f json -r /out/baseline-git.json docker run --rm --name sec-scan-gl-reference-dir -v /sec/scan/reference/PatientPortal:/src:ro -v /sec/scan/out/gitleaks:/out zricethezav/gitleaks:latest dir /src --no-banner --no-color -v -f json -r /out/reference-dir.json docker run --rm --name sec-scan-gl-reference-git -v /sec/scan/reference/PatientPortal:/src:ro -v /sec/scan/out/gitleaks:/out zricethezav/gitleaks:latest git /src --no-banner --no-color -v -f json -r /out/reference-git.json ## What each tool reported (score-review.py against answers.json, --slack 0) score-review counts any finding whose line falls in a key range as a hit, whatever its rule says; the column 'message names it' is the measurement agent's reading of each hit. | Tool | Findings | score-review found | False alarms | Unmatched | |---|---|---|---|---| | dotnet-analyzers | 398 | 11 of 20 | 3 | 374 | | nuget-audit | 36 | 1 of 20 | 0 | 24 | | semgrep | 3 | 3 of 20 | 0 | 0 | | zap-baseline-root | 2 | 0 of 20 | 0 | 2 | | zap-baseline-stafflogin | 23 | 0 of 20 | 0 | 23 | | gitleaks | 2 | 1 of 20 | 0 | 0 | Hits, one line per finding behind a hit (semgrep rows give the rule id only: the Semgrep Rules License does not allow the rules to be redistributed): | Tool | Key | Match | File:line | Rule and message | Also on the reference | |---|---|---|---|---|---| | dotnet-analyzers | V19 | line | src/PatientPortal.Api/Features/Patients/PatientModels.cs:13 | CA1515 Maintainability: Because an application's API isn't typically referenced from outside the assembly, types can be made internal | yes | | dotnet-analyzers | V04 | line | src/PatientPortal.Api/Features/Patients/PatientModels.cs:11 | CA1515 Maintainability: Because an application's API isn't typically referenced from outside the assembly, types can be made internal | yes | | dotnet-analyzers | V16 | line | src/PatientPortal.Api/Auth/AuthEndpoints.cs:30 | CA1873 Performance: Evaluation of this argument may be expensive and unnecessary if logging is disabled (array creation) | yes | | dotnet-analyzers | V16 | line | src/PatientPortal.Api/Auth/AuthEndpoints.cs:43 | CA1873 Performance: Evaluation of this argument may be expensive and unnecessary if logging is disabled (array creation) | yes | | dotnet-analyzers | V16 | line | src/PatientPortal.Api/Auth/AuthEndpoints.cs:30 | CA1848 Performance: For improved performance, use the LoggerMessage delegates instead of calling 'LoggerExtensions.LogInformation(ILogger... | yes | | dotnet-analyzers | V16 | line | src/PatientPortal.Api/Auth/AuthEndpoints.cs:43 | CA1848 Performance: For improved performance, use the LoggerMessage delegates instead of calling 'LoggerExtensions.LogInformation(ILogger... | yes | | dotnet-analyzers | V02 | line | src/PatientPortal.Api/Features/Records/RecordEndpoints.cs:20 | CA2007 Reliability: Consider calling ConfigureAwait on the awaited task | yes | | dotnet-analyzers | D6 | line | src/PatientPortal.Api/Features/Documents/DocumentStore.cs:17 | CA1308 Globalization: In method 'FormPath', replace the call to 'ToLowerInvariant' with 'ToUpperInvariant' | yes | | dotnet-analyzers | V15 | line | src/PatientPortal.Api/Features/Avatars/AvatarFetcher.cs:13 | CA1054 Design: Change the type of parameter 'url' of method 'AvatarFetcher.FetchAsync(string, CancellationToken)' from 'string' to 'Syste... | yes | | dotnet-analyzers | V09 | line | src/PatientPortal.Api/Auth/SignInService.cs:28 | CA1873 Performance: Evaluation of this argument may be expensive and unnecessary if logging is disabled (array creation) | yes | | dotnet-analyzers | V09 | line | src/PatientPortal.Api/Auth/SignInService.cs:28 | CA1848 Performance: For improved performance, use the LoggerMessage delegates instead of calling 'LoggerExtensions.LogInformation(ILogger... | yes | | dotnet-analyzers | V09 | line | src/PatientPortal.Api/Auth/SignInService.cs:23 | CA2007 Reliability: Consider calling ConfigureAwait on the awaited task | yes | | dotnet-analyzers | D5 | line | src/PatientPortal.Api/Features/Documents/DocumentStore.cs:34 | CA2007 Reliability: Consider calling ConfigureAwait on the awaited task | yes | | dotnet-analyzers | D5 | line | src/PatientPortal.Api/Features/Documents/DocumentStore.cs:35 | CA2007 Reliability: Consider calling ConfigureAwait on the awaited task | yes | | dotnet-analyzers | V20 | line | src/PatientPortal.Api/Auth/ResetTokens.cs:22 | CA2007 Reliability: Consider calling ConfigureAwait on the awaited task | yes | | dotnet-analyzers | V20 | line | src/PatientPortal.Api/Auth/ResetTokens.cs:15 | CA1062 Design: In externally visible method 'Task ResetTokens.CreateAsync(User user)', validate parameter 'user' is non-null befo... | yes | | dotnet-analyzers | V20 | line | src/PatientPortal.Api/Auth/ResetTokens.cs:27 | CA1062 Design: In externally visible method 'Task ResetTokens.RedeemAsync(User user, string token)', validate parameter 'user' is n... | no | | dotnet-analyzers | V10 | line | src/PatientPortal.Api/Auth/AuthSetup.cs:39 | CA5404 Security: TokenValidationParameters.ValidateIssuer should not be set to false as it disables important validation | no | | dotnet-analyzers | V10 | line | src/PatientPortal.Api/Auth/AuthSetup.cs:40 | CA5404 Security: TokenValidationParameters.ValidateAudience should not be set to false as it disables important validation | no | | dotnet-analyzers | V10 | line | src/PatientPortal.Api/Auth/AuthSetup.cs:41 | CA5404 Security: TokenValidationParameters.ValidateLifetime should not be set to false as it disables important validation | no | | dotnet-analyzers | V14 | line | src/PatientPortal.Api/Features/Documents/DocumentEndpoints.cs:61 | CA2007 Reliability: Consider calling ConfigureAwait on the awaited task | yes | | dotnet-analyzers | V01 | line | src/PatientPortal.Api/Features/Patients/PatientSearch.cs:20 | CA2100 Security: Review if the query string passed to 'string DbCommand.CommandText' in 'FindAsync', accepts any user input | no | | dotnet-analyzers | D4 | keyword | src/PatientPortal.Api/Program.cs:78 | ASP0027 Usage: Using public partial class Program { } to make the generated Program class public is no longer required in ASP.NET Core ap... | yes | | dotnet-analyzers | V18 | keyword | src/PatientPortal.Api/Auth/StaffSignInEndpoints.cs:19 | CA1056 Design: Change the type of property 'StaffSignInEndpoints.StaffSignInForm.ReturnUrl' from 'string' to 'System.Uri' | yes | | nuget-audit | V13 | keyword | src/PatientPortal.Api/PatientPortal.Api.csproj: | NU1902 NuGetAudit: Package 'SixLabors.ImageSharp' 3.1.12 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-... | no | | nuget-audit | V13 | keyword | src/PatientPortal.Api/PatientPortal.Api.csproj: | NU1903 NuGetAudit: Package 'SixLabors.ImageSharp' 3.1.12 has a known high severity vulnerability, https://github.com/advisories/GHSA-j3p4... | no | | nuget-audit | V13 | keyword | src/PatientPortal.Api/PatientPortal.Api.csproj: | NU1903 NuGetAudit: Package 'SixLabors.ImageSharp' 3.1.12 has a known high severity vulnerability, https://github.com/advisories/GHSA-j9gm... | no | | nuget-audit | V13 | keyword | src/PatientPortal.Api/PatientPortal.Api.csproj: | NU1903 NuGetAudit: Package 'SixLabors.ImageSharp' 3.1.12 has a known high severity vulnerability, https://github.com/advisories/GHSA-jjfr... | no | | nuget-audit | V13 | keyword | src/PatientPortal.Api/PatientPortal.Api.csproj: | NU1903 NuGetAudit: Package 'SixLabors.ImageSharp' 3.1.12 has a known high severity vulnerability, https://github.com/advisories/GHSA-v76p... | no | | nuget-audit | V13 | keyword | src/PatientPortal.Api/PatientPortal.Api.csproj: | NU1902 NuGetAudit: Package 'SixLabors.ImageSharp' 3.1.12 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-... | no | | nuget-audit | V13 | keyword | src/PatientPortal.Api/PatientPortal.Api.csproj: | list --vulnerable: package SixLabors.ImageSharp 3.1.12 has a known High severity vulnerability https://github.com/advisories/GHSA-v76p-62... | no | | nuget-audit | V13 | keyword | src/PatientPortal.Api/PatientPortal.Api.csproj: | list --vulnerable: package SixLabors.ImageSharp 3.1.12 has a known Moderate severity vulnerability https://github.com/advisories/GHSA-gwg... | no | | nuget-audit | V13 | keyword | src/PatientPortal.Api/PatientPortal.Api.csproj: | list --vulnerable: package SixLabors.ImageSharp 3.1.12 has a known High severity vulnerability https://github.com/advisories/GHSA-j3p4-wp... | no | | nuget-audit | V13 | keyword | src/PatientPortal.Api/PatientPortal.Api.csproj: | list --vulnerable: package SixLabors.ImageSharp 3.1.12 has a known High severity vulnerability https://github.com/advisories/GHSA-j9gm-c7... | no | | nuget-audit | V13 | keyword | src/PatientPortal.Api/PatientPortal.Api.csproj: | list --vulnerable: package SixLabors.ImageSharp 3.1.12 has a known Moderate severity vulnerability https://github.com/advisories/GHSA-wmx... | no | | nuget-audit | V13 | keyword | src/PatientPortal.Api/PatientPortal.Api.csproj: | list --vulnerable: package SixLabors.ImageSharp 3.1.12 has a known High severity vulnerability https://github.com/advisories/GHSA-jjfr-hc... | no | | semgrep | V10 | line | src/PatientPortal.Api/Auth/AuthSetup.cs:41 | csharp.lang.security.ad.jwt-tokenvalidationparameters-no-expiry-validation.jwt-tokenvalidationparameters-no-expiry-validation | no | | semgrep | V01 | line | src/PatientPortal.Api/Features/Patients/PatientSearch.cs:20 | csharp.lang.security.sqli.csharp-sqli.csharp-sqli | no | | semgrep | V12 | line | src/PatientPortal.Api/Program.cs:48 | csharp.lang.security.stacktrace-disclosure.stacktrace-disclosure | no | | gitleaks | V07 | line | src/PatientPortal.Api/appsettings.json:22 | generic-api-key: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. | no | | gitleaks | V07 | line | src/PatientPortal.Api/appsettings.json:22 | generic-api-key: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. | no | Union of all tools by key (score-review): - V01: dotnet-analyzers semgrep - V02: dotnet-analyzers - V04: dotnet-analyzers - V07: gitleaks - V09: dotnet-analyzers - V10: dotnet-analyzers semgrep - V12: semgrep - V13: nuget-audit - V14: dotnet-analyzers - V15: dotnet-analyzers - V16: dotnet-analyzers - V18: dotnet-analyzers - V19: dotnet-analyzers - V20: dotnet-analyzers