From 2422f8e0be33bcfa4277df489413998dbee35eaa Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Tue, 6 Oct 2026 15:08:17 +0200 Subject: [PATCH] test(nightly): baselines for the vendored semgrep packs and DevSkim (#492, #494) Blessed by the nightly run 8514 (workflow_dispatch, bless) on the image of 34e3f6c: the vendored gitlab-/0xdea- rules in fw-c-sensor-node, the Python targets, archive-order-intake and git-cra-vuln-demo, and new baselines for the .NET targets dotnet-framework48 and dotnet-legacy-sample (DevSkim, the C# semgrep rules and the .NET config checks). py-uv also records the malware stage as skipped and one more PYSEC id, as the current image reports them. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB --- .../baselines/archive-order-intake-tgz.json | 3 +- .../baselines/archive-order-intake.json | 3 +- .../nightly/baselines/dotnet-framework48.json | 35 +++++++++++++++++++ .../baselines/dotnet-legacy-sample.json | 26 ++++++++++++++ .../nightly/baselines/fw-c-sensor-node.json | 6 ++++ .../nightly/baselines/git-cra-vuln-demo.json | 8 ++++- .../nightly/baselines/py-bare-pyproject.json | 7 +++- fixtures/nightly/baselines/py-pipenv.json | 13 +++++-- fixtures/nightly/baselines/py-poetry.json | 13 +++++-- .../nightly/baselines/py-requirements.json | 13 +++++-- fixtures/nightly/baselines/py-uv.json | 13 +++++-- 11 files changed, 124 insertions(+), 16 deletions(-) create mode 100644 fixtures/nightly/baselines/dotnet-framework48.json create mode 100644 fixtures/nightly/baselines/dotnet-legacy-sample.json diff --git a/fixtures/nightly/baselines/archive-order-intake-tgz.json b/fixtures/nightly/baselines/archive-order-intake-tgz.json index b847c75..717cc6a 100644 --- a/fixtures/nightly/baselines/archive-order-intake-tgz.json +++ b/fixtures/nightly/baselines/archive-order-intake-tgz.json @@ -14,7 +14,8 @@ "semgrep:cra-ai-20-node-reflected-input server.js:15", "semgrep:cra-ai-20-node-shell-command server.js:10", "semgrep:cra-ai-20-python-shell-command auth.py:15", - "semgrep:cra-ai-7-weak-password-hash auth.py:9" + "semgrep:cra-ai-7-weak-password-hash auth.py:9", + "semgrep:gitlab-python_crypto_rule-hash-md5 auth.py:9" ], "cves": [ "GHSA-29mw-wpgm-hmr9", diff --git a/fixtures/nightly/baselines/archive-order-intake.json b/fixtures/nightly/baselines/archive-order-intake.json index b847c75..717cc6a 100644 --- a/fixtures/nightly/baselines/archive-order-intake.json +++ b/fixtures/nightly/baselines/archive-order-intake.json @@ -14,7 +14,8 @@ "semgrep:cra-ai-20-node-reflected-input server.js:15", "semgrep:cra-ai-20-node-shell-command server.js:10", "semgrep:cra-ai-20-python-shell-command auth.py:15", - "semgrep:cra-ai-7-weak-password-hash auth.py:9" + "semgrep:cra-ai-7-weak-password-hash auth.py:9", + "semgrep:gitlab-python_crypto_rule-hash-md5 auth.py:9" ], "cves": [ "GHSA-29mw-wpgm-hmr9", diff --git a/fixtures/nightly/baselines/dotnet-framework48.json b/fixtures/nightly/baselines/dotnet-framework48.json new file mode 100644 index 0000000..08fb445 --- /dev/null +++ b/fixtures/nightly/baselines/dotnet-framework48.json @@ -0,0 +1,35 @@ +{ + "scan_status": "completed", + "skipped_stages": [ + "malware", + "sast_vendor_code" + ], + "sbom": [ + "nuget:BouncyCastle@1.8.5", + "nuget:EntityFramework@6.2.0", + "nuget:Newtonsoft.Json@12.0.1", + "nuget:log4net@2.0.8" + ], + "findings": [ + "devskim:DS425070 OrderService.svc.cs:27", + "dotnet-config:dotnet-config-cleartext-password Web.config:4", + "dotnet-config:dotnet-config-debug-compilation Web.config:7", + "dotnet-config:dotnet-config-wcf-insecure-binding Web.config:14", + "secret-files:secret-file-signing-key Plant.snk:0", + "semgrep:cra-ai-13-csharp-broken-hash-or-cipher OrderService.svc.cs:33", + "semgrep:cra-ai-15-csharp-cert-validation-disabled OrderService.svc.cs:16", + "semgrep:cra-ai-20-csharp-sql-string OrderService.svc.cs:21", + "semgrep:cra-ai-20-csharp-unsafe-deserialization OrderService.svc.cs:27", + "semgrep:gitlab-csharp_injection_rule-SQLInjection OrderService.svc.cs:21" + ], + "cves": [ + "GHSA-2cwj-8chv-9pp9", + "GHSA-4f7c-pmjv-c25w", + "GHSA-5crp-9r3c-p9vr", + "GHSA-6xx3-rg99-gc3p", + "GHSA-8xfc-gm6g-vgpv", + "GHSA-m44j-cfrm-g8qc", + "GHSA-v435-xc8x-wvr9", + "dotnet-framework-end-of-support" + ] +} diff --git a/fixtures/nightly/baselines/dotnet-legacy-sample.json b/fixtures/nightly/baselines/dotnet-legacy-sample.json new file mode 100644 index 0000000..4fac3c8 --- /dev/null +++ b/fixtures/nightly/baselines/dotnet-legacy-sample.json @@ -0,0 +1,26 @@ +{ + "scan_status": "completed", + "skipped_stages": [ + "malware" + ], + "sbom": [], + "findings": [ + "devskim:DS106864 TelemetryClient.cs:32", + "devskim:DS126187 TelemetryClient.cs:20", + "devskim:DS132783 TelemetryClient.cs:42", + "devskim:DS144436 TelemetryClient.cs:18", + "devskim:DS425070 LegacyLink.vb:12", + "devskim:DS440020 TelemetryClient.cs:18", + "devskim:DS450001 Web.config:6", + "devskim:DS450002 Web.config:5", + "dotnet-config:dotnet-config-insecure-cookies Web.config:6", + "semgrep:cra-ai-13-csharp-broken-hash-or-cipher TelemetryClient.cs:32", + "semgrep:cra-ai-15-csharp-cert-validation-disabled TelemetryClient.cs:20", + "semgrep:cra-ai-20-csharp-xxe TelemetryClient.cs:42", + "semgrep:cra-ai-20-csharp-xxe TelemetryClient.cs:43", + "semgrep:gitlab-csharp_crypto_rule-WeakCipherAlgorithm TelemetryClient.cs:32", + "semgrep:gitlab-csharp_crypto_rule-WeakRNG TelemetryClient.cs:26", + "semgrep:gitlab-csharp_injection_rule-XmlDocumentXXEInjection TelemetryClient.cs:43" + ], + "cves": [] +} diff --git a/fixtures/nightly/baselines/fw-c-sensor-node.json b/fixtures/nightly/baselines/fw-c-sensor-node.json index ebb34a8..8943ad0 100644 --- a/fixtures/nightly/baselines/fw-c-sensor-node.json +++ b/fixtures/nightly/baselines/fw-c-sensor-node.json @@ -12,6 +12,12 @@ "cppcheck:arrayIndexOutOfBounds sensors.c:15", "cppcheck:memleak sensors.c:32", "cppcheck:uninitvar sensors.c:19", + "semgrep:0xdea-raptor-insecure-api-rand-srand comms.c:35", + "semgrep:0xdea-raptor-insecure-api-sprintf-vsprintf comms.c:25", + "semgrep:0xdea-raptor-insecure-api-strcpy-strcat comms.c:20", + "semgrep:0xdea-raptor-integer-wraparound sensors.c:29", + "semgrep:0xdea-raptor-unchecked-ret-malloc sensors.c:11", + "semgrep:0xdea-raptor-unchecked-ret-malloc sensors.c:29", "semgrep:cra-ai-13-c-broken-hash-or-cipher comms.c:36", "semgrep:cra-ai-16-c-predictable-random comms.c:35", "semgrep:cra-ai-20-c-non-literal-format-string cli.cpp:15", diff --git a/fixtures/nightly/baselines/git-cra-vuln-demo.json b/fixtures/nightly/baselines/git-cra-vuln-demo.json index 515f8b0..10c8a81 100644 --- a/fixtures/nightly/baselines/git-cra-vuln-demo.json +++ b/fixtures/nightly/baselines/git-cra-vuln-demo.json @@ -11,7 +11,13 @@ "semgrep:cra-ai-20-python-shell-command db.py:9", "semgrep:cra-ai-20-python-sql-string db.py:5", "semgrep:cra-ai-8-python-hardcoded-credential auth.py:2", - "semgrep:cra-ai-8-python-hardcoded-credential auth.py:3" + "semgrep:cra-ai-8-python-hardcoded-credential auth.py:3", + "semgrep:gitlab-python_crypto_rule-crypto-cipher-des crypto.py:8", + "semgrep:gitlab-python_crypto_rule-hash-md5 crypto.py:5", + "semgrep:gitlab-python_crypto_rule-import-pycrypto crypto.py:2", + "semgrep:gitlab-python_exec_rule-os-popen2 db.py:9", + "semgrep:gitlab-python_requests_rule-request-without-timeout net.py:4", + "semgrep:gitlab-python_sql_rule-hardcoded-sql-expression db.py:5" ], "cves": [] } diff --git a/fixtures/nightly/baselines/py-bare-pyproject.json b/fixtures/nightly/baselines/py-bare-pyproject.json index dbf61b6..9b33035 100644 --- a/fixtures/nightly/baselines/py-bare-pyproject.json +++ b/fixtures/nightly/baselines/py-bare-pyproject.json @@ -1,6 +1,7 @@ { "scan_status": "completed", "skipped_stages": [ + "malware", "sbom_dependencies" ], "sbom": [], @@ -12,7 +13,11 @@ "semgrep:cra-ai-1-tls-verify-disabled auth.py:12", "semgrep:cra-ai-20-python-shell-command app.py:32", "semgrep:cra-ai-20-python-unsafe-deserialization app.py:16", - "semgrep:cra-ai-8-python-hardcoded-credential auth.py:7" + "semgrep:cra-ai-8-python-hardcoded-credential auth.py:7", + "semgrep:gitlab-python_crypto_rule-hash-md5 app.py:38", + "semgrep:gitlab-python_deserialization_rule-yaml-load app.py:16", + "semgrep:gitlab-python_requests_rule-request-without-timeout auth.py:12", + "semgrep:gitlab-python_ssl_rule-req-no-certvalid auth.py:12" ], "cves": [] } diff --git a/fixtures/nightly/baselines/py-pipenv.json b/fixtures/nightly/baselines/py-pipenv.json index c828b79..5e4b88f 100644 --- a/fixtures/nightly/baselines/py-pipenv.json +++ b/fixtures/nightly/baselines/py-pipenv.json @@ -1,6 +1,8 @@ { "scan_status": "completed", - "skipped_stages": [], + "skipped_stages": [ + "malware" + ], "sbom": [ "pip:jinja2@2.10", "pip:pyyaml@5.1", @@ -13,7 +15,11 @@ "semgrep:cra-ai-1-tls-verify-disabled auth.py:12", "semgrep:cra-ai-20-python-shell-command app.py:32", "semgrep:cra-ai-20-python-unsafe-deserialization app.py:16", - "semgrep:cra-ai-8-python-hardcoded-credential auth.py:7" + "semgrep:cra-ai-8-python-hardcoded-credential auth.py:7", + "semgrep:gitlab-python_crypto_rule-hash-md5 app.py:38", + "semgrep:gitlab-python_deserialization_rule-yaml-load app.py:16", + "semgrep:gitlab-python_requests_rule-request-without-timeout auth.py:12", + "semgrep:gitlab-python_ssl_rule-req-no-certvalid auth.py:12" ], "cves": [ "GHSA-2xpw-w6gg-jr37", @@ -68,6 +74,7 @@ "PYSEC-2026-1996", "PYSEC-2026-1998", "PYSEC-2026-1999", - "PYSEC-2026-2275" + "PYSEC-2026-2275", + "PYSEC-2026-4177" ] } diff --git a/fixtures/nightly/baselines/py-poetry.json b/fixtures/nightly/baselines/py-poetry.json index d19b1f8..12d9c5e 100644 --- a/fixtures/nightly/baselines/py-poetry.json +++ b/fixtures/nightly/baselines/py-poetry.json @@ -1,6 +1,8 @@ { "scan_status": "completed", - "skipped_stages": [], + "skipped_stages": [ + "malware" + ], "sbom": [ "pip:jinja2@2.10", "pip:pyyaml@5.1", @@ -15,7 +17,11 @@ "semgrep:cra-ai-1-tls-verify-disabled auth.py:12", "semgrep:cra-ai-20-python-shell-command app.py:32", "semgrep:cra-ai-20-python-unsafe-deserialization app.py:16", - "semgrep:cra-ai-8-python-hardcoded-credential auth.py:7" + "semgrep:cra-ai-8-python-hardcoded-credential auth.py:7", + "semgrep:gitlab-python_crypto_rule-hash-md5 app.py:38", + "semgrep:gitlab-python_deserialization_rule-yaml-load app.py:16", + "semgrep:gitlab-python_requests_rule-request-without-timeout auth.py:12", + "semgrep:gitlab-python_ssl_rule-req-no-certvalid auth.py:12" ], "cves": [ "GHSA-2xpw-w6gg-jr37", @@ -70,6 +76,7 @@ "PYSEC-2026-1996", "PYSEC-2026-1998", "PYSEC-2026-1999", - "PYSEC-2026-2275" + "PYSEC-2026-2275", + "PYSEC-2026-4177" ] } diff --git a/fixtures/nightly/baselines/py-requirements.json b/fixtures/nightly/baselines/py-requirements.json index d19b1f8..12d9c5e 100644 --- a/fixtures/nightly/baselines/py-requirements.json +++ b/fixtures/nightly/baselines/py-requirements.json @@ -1,6 +1,8 @@ { "scan_status": "completed", - "skipped_stages": [], + "skipped_stages": [ + "malware" + ], "sbom": [ "pip:jinja2@2.10", "pip:pyyaml@5.1", @@ -15,7 +17,11 @@ "semgrep:cra-ai-1-tls-verify-disabled auth.py:12", "semgrep:cra-ai-20-python-shell-command app.py:32", "semgrep:cra-ai-20-python-unsafe-deserialization app.py:16", - "semgrep:cra-ai-8-python-hardcoded-credential auth.py:7" + "semgrep:cra-ai-8-python-hardcoded-credential auth.py:7", + "semgrep:gitlab-python_crypto_rule-hash-md5 app.py:38", + "semgrep:gitlab-python_deserialization_rule-yaml-load app.py:16", + "semgrep:gitlab-python_requests_rule-request-without-timeout auth.py:12", + "semgrep:gitlab-python_ssl_rule-req-no-certvalid auth.py:12" ], "cves": [ "GHSA-2xpw-w6gg-jr37", @@ -70,6 +76,7 @@ "PYSEC-2026-1996", "PYSEC-2026-1998", "PYSEC-2026-1999", - "PYSEC-2026-2275" + "PYSEC-2026-2275", + "PYSEC-2026-4177" ] } diff --git a/fixtures/nightly/baselines/py-uv.json b/fixtures/nightly/baselines/py-uv.json index d19b1f8..12d9c5e 100644 --- a/fixtures/nightly/baselines/py-uv.json +++ b/fixtures/nightly/baselines/py-uv.json @@ -1,6 +1,8 @@ { "scan_status": "completed", - "skipped_stages": [], + "skipped_stages": [ + "malware" + ], "sbom": [ "pip:jinja2@2.10", "pip:pyyaml@5.1", @@ -15,7 +17,11 @@ "semgrep:cra-ai-1-tls-verify-disabled auth.py:12", "semgrep:cra-ai-20-python-shell-command app.py:32", "semgrep:cra-ai-20-python-unsafe-deserialization app.py:16", - "semgrep:cra-ai-8-python-hardcoded-credential auth.py:7" + "semgrep:cra-ai-8-python-hardcoded-credential auth.py:7", + "semgrep:gitlab-python_crypto_rule-hash-md5 app.py:38", + "semgrep:gitlab-python_deserialization_rule-yaml-load app.py:16", + "semgrep:gitlab-python_requests_rule-request-without-timeout auth.py:12", + "semgrep:gitlab-python_ssl_rule-req-no-certvalid auth.py:12" ], "cves": [ "GHSA-2xpw-w6gg-jr37", @@ -70,6 +76,7 @@ "PYSEC-2026-1996", "PYSEC-2026-1998", "PYSEC-2026-1999", - "PYSEC-2026-2275" + "PYSEC-2026-2275", + "PYSEC-2026-4177" ] } -- 2.54.1