testing-for-sensitive-data-exposure

Featured

Identifying sensitive data exposure vulnerabilities including API key leakage, PII in responses, insecure storage, and unprotected data transmission during security assessments.

AI & Automation 36,355 stars 4443 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Testing for Sensitive Data Exposure ## When to Use - During authorized penetration tests when assessing data protection controls - When evaluating applications for GDPR, PCI DSS, HIPAA, or other data protection compliance - For identifying leaked API keys, credentials, tokens, and secrets in application responses - When testing whether sensitive data is properly encrypted in transit and at rest - During security assessments of APIs that handle PII, financial data, or health records ## Prerequisites - **Authorization**: Written penetration testing agreement with data handling scope - **Burp Suite Professional**: For intercepting and analyzing responses for sensitive data - **trufflehog**: Secret scanning tool (`pip install trufflehog`) - **gitleaks**: Git repository secret scanner (`go install github.com/gitleaks/gitleaks/v8@latest`) - **curl/httpie**: For manual endpoint testing - **Browser DevTools**: For examining local storage, session storage, and cached data - **testssl.sh**: TLS configuration testing tool ## Workflow ### Step 1: Scan for Secrets in Client-Side Code Search JavaScript files, HTML source, and other client-side resources for exposed secrets. ```bash # Download and search JavaScript files for secrets curl -s "https://target.example.com/" | \ grep -oP 'src="[^"]*\.js[^"]*"' | \ grep -oP '"[^"]*"' | tr -d '"' | while read js; do echo "=== Scanning: $js ===" # Handle relative URLs if [[ "$js" == /* ]]; then curl -s "https://targe...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
8 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category