go-vuln-info-disclosure

Analyze Go data flow from sensitive sources to exposed sinks for information disclosure vulnerabilities.

74|10|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/yhy0/ghsa-skill-builder --skill go-vuln-info-disclosure
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-vuln-info-disclosure
Source: https://github.com/yhy0/ghsa-skill-builder/tree/main/vuln-skills/skills/go-vuln-info-disclosure
Command: npx skills add https://github.com/yhy0/ghsa-skill-builder --skill go-vuln-info-disclosure

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps identify and prevent sensitive information from being accidentally leaked in Go applications, protecting credentials, secrets, and private data.

Core Features & Use Cases

  • Source Identification: Pinpoints where sensitive data originates (e.g., K8s Secrets, API keys).
  • Sink Analysis: Tracks data flow to potential leakage points like logs, API responses, and error messages.
  • Sanitization Check: Verifies if protective measures like json:"-" tags or log scrubbing are correctly implemented.
  • Use Case: Audit a Go web service to ensure that user API tokens are not inadvertently logged or returned in API responses, preventing credential theft.

Quick Start

Audit the Go codebase for potential information disclosure vulnerabilities.

Frequently Asked Questions about go-vuln-info-disclosure

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

FAQPage Schema
How do I detect information disclosure vulnerabilities in Go applications?

To detect information disclosure vulnerabilities in Go applications, you analyze data flow from sensitive sources like K8s Secrets to exposed sinks such as logs or API responses, verifying proper sanitization measures are implemented.

What is the best way to prevent credential leaks in Go web services?

Preventing credential leaks in Go web services involves tracking sensitive data origins like API keys to potential leakage points, ensuring protective measures such as log scrubbing or `json:"-"` tags are correctly applied to avoid exposure.

How do I audit a Go codebase for unredacted API responses and log exposure?

Auditing a Go codebase for unredacted API responses and log exposure requires sink analysis to track data flow to error messages and API responses, checking if sensitive data is inadvertently exposed without proper redaction.

Does this information disclosure detection cover Kubernetes Secrets and real-world CVEs?

Yes, information disclosure detection covers Kubernetes Secrets by pinpointing their origins as sensitive sources, and it references real-world CVEs to provide context for identifying and mitigating insecure credential handling patterns.

How do I verify if sanitization checks like json tags are correctly implemented in Go?

Verifying sanitization checks like `json:"-"` tags in Go involves analyzing the data flow from sensitive sources to sinks, confirming that protective measures are actively preventing credentials and private data from being logged or returned.

Why does my Go application return sensitive data in error messages?

Your Go application returns sensitive data in error messages because improper logging or insecure credential handling allows data flow from sensitive sources to exposed sinks without adequate sanitization checks or log scrubbing.