Secrets Checker

•

Detects hardcoded secrets in .NET source code and git history, reporting only their locations without revealing values.

Hardcoded secrets pose a significant security risk, often persisting in git history even after removal from active code. Secrets Checker is a specialized .NET-first tool that meticulously scans both source files and complete git history for sensitive information like API keys, connection strings, and cloud credentials. Uniquely, it is architecturally designed to *never* output raw secret values, reporting only their locations and thereby preventing secondary exposure. Operating locally with no telemetry or network activity, it ensures privacy and enhances security across development workflows and CI/CD pipelines.

主な機能

01Scans both .NET source files and comprehensive git history for embedded secrets.
02Architecturally prevents raw secret values from being exposed in any output, reporting only locations.
03Offers flexible deployment as a local CLI tool, a NuGet library, and an MCP server for Claude Code.
04Detects a broad range of secrets, including connection strings, cloud credentials, provider tokens, and generic keys, with .NET-first, AST-aware patterns.
050 GitHub stars
06Provides multiple output formats including console, versioned JSON, and SARIF for integration with code scanning platforms.

ユースケース

01Integrate into CI/CD pipelines, such as GitHub Actions, to automatically detect and report hardcoded secrets across an organization's codebase.
02Utilize as an MCP server for Claude Code to enable AI-assisted, on-demand, and secure secret detection within advanced development workflows.
03Enforce security policies during local development by scanning working trees and installing pre-commit hooks to prevent new secrets from being committed.