[medium] devskim: A potentially weak cipher mode of operation was used. #915

Closed
opened 2026-11-05 20:13:39 +00:00 by pruefwerk · 1 comment
Member

medium Finding

Scanner: devskim
Severity: medium
Rule: DS187371
CWE: CWE-327
CRA: cra-ai-13 — Verschlüsselung sensibler Daten (Annex I)

Description

A weak cipher mode of operation was used

A weak cipher mode of operation was used: A potentially weak cipher mode of operation was used.

Location

File: compliance-agent/rules/cra_semgrep_csharp.cs (line 203)

Code

            aes.Mode = CipherMode.ECB;

Remediation

Exclude rule fixture/example paths from cryptographic scans or move examples out of production paths.


Fingerprint: 86f0218efe68d53377b93ddad0233950afc80ec282f3cd53f14cfaf084e26542
Generated by compliance-scanner
Open in Prüfwerk / In Prüfwerk öffnen

## medium Finding **Scanner:** devskim **Severity:** medium **Rule:** DS187371 **CWE:** CWE-327 **CRA:** cra-ai-13 — Verschlüsselung sensibler Daten (Annex I) ### Description A weak cipher mode of operation was used A weak cipher mode of operation was used: A potentially weak cipher mode of operation was used. ### Location **File:** `compliance-agent/rules/cra_semgrep_csharp.cs` (line 203) ### Code ``` aes.Mode = CipherMode.ECB; ``` ### Remediation Exclude rule fixture/example paths from cryptographic scans or move examples out of production paths. --- *Fingerprint:* `86f0218efe68d53377b93ddad0233950afc80ec282f3cd53f14cfaf084e26542` *Generated by compliance-scanner* [Open in Prüfwerk / In Prüfwerk öffnen](https://pruefwerk.breakpilot.com/findings?target=6ae9aa2160f5d8045fc570a7)
pruefwerk added the severity:mediumcra:annex-ipruefwerk labels 2026-11-05 20:13:39 +00:00
Author
Member

Prüfwerk: Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind.

The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.

**Prüfwerk:** Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind. The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#915