Sensitive Data Leakage

Detect sensitive data flow to logs, errors, and HTTP responses in Go, Python, Java, and JavaScript/TypeScript.

22|3|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/allsmog/vuln-scout --skill sensitive-data-leakage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Sensitive Data Leakage
Source: https://github.com/allsmog/vuln-scout/tree/main/whitebox-pentest/skills/sensitive-data-leakage
Command: npx skills add https://github.com/allsmog/vuln-scout --skill sensitive-data-leakage

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill prevents sensitive information like credentials, API keys, and tokens from being accidentally exposed in logs, error messages, or other output channels.

Core Features & Use Cases

  • Comprehensive Detection: Identifies sensitive data based on naming patterns, function returns, struct fields, and environment variables.
  • Output Sink Analysis: Scans for common output sinks including logging libraries, error reporting, and HTTP responses.
  • Use Case: Automatically scan your codebase to find instances where a password variable might be logged to a debug console, preventing a security breach.

Quick Start

Run a comprehensive scan for sensitive data leakage in the current Go project.

Frequently Asked Questions about Sensitive Data Leakage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect secrets and credentials being leaked in application logs?

To detect secrets leaked in application logs, scan your codebase for sensitive data flow into output sinks. This identifies credentials, API keys, and tokens exposed in logging libraries, error messages, and HTTP responses.

What is sensitive data leakage in code and how does it expose vulnerabilities?

Sensitive data leakage occurs when credentials or secrets flow into output sinks like logs or HTTP responses. It exposes vulnerabilities by printing passwords, API keys, and tokens to debug consoles or error reporting channels.

Can I scan Python and Java codebases for credential exposure in error messages?

Yes, you can scan Python and Java codebases for credential exposure. The analysis also supports Go and JavaScript/TypeScript, checking for sensitive data patterns in error messages, HTTP responses, and logging functions.

How do I check for format string vulnerabilities that might expose sensitive struct fields?

To check for format string vulnerabilities exposing sensitive struct fields, analyze your code for unsafe String() method implementations. This identifies patterns where formatting functions inadvertently output credentials to logging sinks.

What's the best way to find environment variables being logged in HTTP responses?

The best way to find environment variables logged in HTTP responses is using grep-based pattern matching and contextual analysis. This detects sensitive data flow by scanning naming patterns, function returns, and struct fields.

What are the limitations of grep-based pattern matching for vulnerability detection?

Limitations of grep-based pattern matching for vulnerability detection include relying on predefined naming patterns and contextual rules rather than deep semantic dataflow analysis, which may miss dynamically generated secret values.