Semgrep rule ids carry the temp directory prefix (tmp.cra-ai-…) #463

Closed
opened 2026-10-05 20:49:11 +00:00 by sharang · 0 comments
Owner

Findings from our own rules show rule_id like tmp.cra-ai-20-csharp-xxe. Semgrep derives the id from the config path; the rules are written to a temp dir. The prefix reaches tracker issues the customer sees.

Tasks

  • Strip the path-derived prefix (or run semgrep with the rules dir as cwd so ids stay bare)
  • Migration: rewrite stored rule_ids; fingerprints must not change (else duplicates on next scan) — check whether rule_id is part of the fingerprint
  • Control-check titles: real umlauts (Integritätsprüfung, not Integritaetspruefung)

Source: first pilot scans on prod (2026-10-05), .NET Framework / Android repos. Fixes start after the remaining pilot scans are in.

Findings from our own rules show `rule_id` like `tmp.cra-ai-20-csharp-xxe`. Semgrep derives the id from the config path; the rules are written to a temp dir. The prefix reaches tracker issues the customer sees. ## Tasks - Strip the path-derived prefix (or run semgrep with the rules dir as cwd so ids stay bare) - Migration: rewrite stored `rule_id`s; fingerprints must not change (else duplicates on next scan) — check whether rule_id is part of the fingerprint - Control-check titles: real umlauts (`Integritätsprüfung`, not `Integritaetspruefung`) _Source: first pilot scans on prod (2026-10-05), .NET Framework / Android repos. Fixes start after the remaining pilot scans are in._
sharang added the bug label 2026-10-05 20:49:11 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#463