Scanner: semgrep Severity: high Rule: cra-ai-8-python-hardcoded-credential CWE: CWE-798 CRA: cra-ai-8 — Keine Default-Passwörter (Annex I)
Description
ADMIN_PASSWORD holds a credential written into the code, so every installation ships the same secret (CWE-798). Read it from the environment or a secret store.
## high Finding
**Scanner:** semgrep
**Severity:** high
**Rule:** cra-ai-8-python-hardcoded-credential
**CWE:** CWE-798
**CRA:** cra-ai-8 — Keine Default-Passwörter (Annex I)
### Description
ADMIN_PASSWORD holds a credential written into the code, so every installation ships the same secret (CWE-798). Read it from the environment or a secret store.
### Location
**File:** `compliance-agent/rules/cra_semgrep.py` (line 28)
### Code
```
ADMIN_PASSWORD = "admin123"
```
### Remediation
Exclude rule test fixtures from production scanning.
---
*Fingerprint:* `8d3b2234d70183f6062d0617375f205feb61da2b183953f7b7500f1f31b16b7d`
*Generated by compliance-scanner*
[Open in Prüfwerk / In Prüfwerk öffnen](https://pruefwerk.breakpilot.com/findings?target=6ae9aa2160f5d8045fc570a7)
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
high Finding
Scanner: semgrep
Severity: high
Rule: cra-ai-8-python-hardcoded-credential
CWE: CWE-798
CRA: cra-ai-8 — Keine Default-Passwörter (Annex I)
Description
ADMIN_PASSWORD holds a credential written into the code, so every installation ships the same secret (CWE-798). Read it from the environment or a secret store.
Location
File:
compliance-agent/rules/cra_semgrep.py(line 28)Code
Remediation
Exclude rule test fixtures from production scanning.
Fingerprint:
8d3b2234d70183f6062d0617375f205feb61da2b183953f7b7500f1f31b16b7dGenerated by compliance-scanner
Open in Prüfwerk / In Prüfwerk öffnen
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.