secrets-management

Detect and remediate hardcoded secrets and credentials in source code.

1|Updated Aug 29, 2025
One-click install
npx skills add https://github.com/CyberSecAI/genai-sec-agents --skill secrets-management-cybersecai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secrets-management
Source: https://github.com/CyberSecAI/genai-sec-agents/tree/main/.claude/skills/secrets-management
Command: npx skills add https://github.com/CyberSecAI/genai-sec-agents --skill secrets-management-cybersecai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams identify and remediate hardcoded secrets, credentials, and cryptographic keys in code, infrastructure configurations, and deployment scripts, reducing the risk of data breaches and credential exposure.

Core Features & Use Cases

  • ASVS-aligned secrets management rules coverage: 4 rules with detection patterns to identify risky secrets and configurations.
  • Hardcoded secrets detection: Identify API keys, passwords, tokens embedded in code or config files.
  • Credential storage & rotation guidance: Recommendations for secure storage, rotation policies, and key lifecycle management.
  • Cloud and environment security: Checks for AWS/Azure/GCP credentials and environment variable handling.

Quick Start

Load the secrets-management skill and start interactive review of a codebase to identify insecure secrets.

Frequently Asked Questions about secrets-management

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

FAQPage Schema
How do I detect hardcoded secrets and API keys in source code?

Detect hardcoded secrets in source code by scanning for embedded API keys, passwords, tokens, and database credentials in code and config files. This Skill identifies risky configurations across application code and deployment scripts to reduce credential exposure.

What is the best way to check environment variables for cloud credential leaks?

Checking environment variables for cloud credential leaks involves reviewing AWS, Azure, and GCP credentials and environment variable handling. This Skill analyzes environment configurations to identify insecure secret storage and risky cloud key exposure.

How do I remediate hardcoded credentials and apply secure secret handling patterns?

Remediate hardcoded credentials by applying secure secret handling patterns and ASVS-aligned rules. This Skill provides remediation guidance and secure code examples to replace exposed API keys, JWTs, and tokens with secure storage solutions.

Does secrets-management support CI pipelines and ASVS-aligned rules?

Yes, secrets-management supports CI pipelines and applies ASVS-aligned rules with CWE mappings. It detects risky secrets and configurations during development, enabling secure coding practices and continuous credential exposure monitoring.

How do I implement credential storage and key lifecycle rotation policies?

Implement credential storage and key lifecycle rotation policies by following detection and remediation guidance for cryptographic keys. This Skill recommends secure storage solutions and rotation policies to manage the lifecycle of database credentials and cloud keys.

Can I review infrastructure configurations for insecure JWTs and database credentials?

Yes, you can review infrastructure configurations for insecure JWTs and database credentials. This Skill scans deployment scripts and config files to identify hardcoded cryptographic keys and provides secure code examples for remediation.