Files
fuzzforge_ai/test_projects/secret_detection_benchmark/src/config.py
T
tduhamel42 3be4d34531 test: Add secret detection benchmark dataset and ground truth
Add comprehensive benchmark dataset with 32 documented secrets for testing
secret detection workflows (gitleaks, trufflehog, llm_secret_detection).

- Add test_projects/secret_detection_benchmark/ with 19 test files
- Add ground truth JSON with precise line-by-line secret mappings
- Update .gitignore with exceptions for benchmark files (not real secrets)

Dataset breakdown:
- 12 Easy secrets (standard patterns)
- 10 Medium secrets (obfuscated)
- 10 Hard secrets (well hidden)
2025-10-16 11:46:28 +02:00

20 lines
545 B
Python

"""
Configuration with moderately obfuscated secrets
"""
import base64
# MEDIUM SECRET #11: Base64 encoded AWS key
AWS_KEY_ENCODED = "QUtJQUlPU0ZPRE5ON0VYQU1QTEU="
# MEDIUM SECRET #12: Hex-encoded API token
HEX_TOKEN = "6170695f746f6b656e5f616263313233787977373839"
# MEDIUM SECRET #13: Split secret concatenated at runtime
DB_PASS_PART1 = "MySecure"
DB_PASS_PART2 = "Password"
DB_PASS_PART3 = "2024!"
DATABASE_PASSWORD = DB_PASS_PART1 + DB_PASS_PART2 + DB_PASS_PART3
def get_aws_key():
return base64.b64decode(AWS_KEY_ENCODED).decode()