Skip to content

fix(security): PBKDF2 for config scope digest (CodeQL weak-sensitive-data-hashing) - #76

Merged
FabioLeitao merged 1 commit into
mainfrom
pr/fix-codeql-scope-pbkdf2
Mar 19, 2026
Merged

FabioLeitao merged 1 commit into
mainfrom
pr/fix-codeql-scope-pbkdf2

Conversation

@FabioLeitao

Copy link
Copy Markdown
Collaborator

What

Replaces fast digests on scan-scope material with PBKDF2-HMAC-SHA256 (fixed app salt, 120k iterations). CodeQL py/weak-sensitive-data-hashing flags BLAKE2b/SHA-256 on this path because config-derived fields are tainted as sensitive.

Test

uv run pytest tests/test_config_scope_hash.py -q

Made with Cursor

…ve-data-hashing)

Replace fast digests (SHA-256/BLAKE2b) with PBKDF2-HMAC-SHA256 + fixed salt and 120k iterations.

Config-derived target names are tainted as sensitive by CodeQL; KDF satisfies the rule.

Tests: stable digest + change on scope change.
Made-with: Cursor
@FabioLeitao
FabioLeitao merged commit 073850a into main Mar 19, 2026
2 checks passed
@FabioLeitao
FabioLeitao deleted the pr/fix-codeql-scope-pbkdf2 branch March 19, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant