Medium severityC#Sensitive Data ExposureMEDIUM confidence
Hardcoded SSN Literal
A value that looks like a real US Social Security Number is hard-coded in source (CWE-312/CWE-359).
Standards mapping
Vulnerable vs. safe
Flagged by this check
var ssn = "000-00-0000";Passes - the safe pattern
var ssnMasked = "XXX-XX-0000";Why it matters & how to fix it
A value that looks like a real US Social Security Number is hard-coded in source (CWE-312/CWE-359). Real PII/PHI must not live in code or test fixtures. Remove it, use clearly-synthetic placeholder values in tests, and store production PII encrypted with restricted access.
References
Rule ID integsec.csharp.sensitive-data.hardcoded-ssn-literal - engine: Opengrep - license: MIT - Copyright (c) IntegSec Inc.
TurboPentest runs this check automatically
Connect a GitHub repo and this check runs on every white-box pentest - AI-validated and reported with proof, from $99 per target.
Start a pentestRelated checks
- JavaScript / TypeScript - Sensitive Data ExposureError Stack In Response
- JavaScript / TypeScript - Sensitive Data ExposurePII PHI In Logs
- JavaScript / TypeScript - Sensitive Data ExposureSecret In Logs
- JavaScript / TypeScript - Sensitive Data ExposureSensitive Data Client Storage
- JavaScript / TypeScript - Sensitive Data ExposureSensitive Data In URL Query
- Python - Sensitive Data ExposureFlask Traceback In Response