security-secrets-management

security-secrets-management is a skill for Claude Code, Codex from vikasudasi/skill-vault. It costs 36 tokens per session (1,213 once invoked), scanned A, original, Apache-2.0.

A guide to protecting passwords, API keys, private certificates, and software dependencies. It covers keeping secrets out of Git, checking for leaks, limiting key permissions, and hardening self-hosted services.

In plain words
What is it for?
Use it when adding API keys, deploying a service, publishing code, scanning Git history, or checking whether downloaded software can be trusted.
Why use it?
It reduces the chance that credentials become public or that a service or dependency can be abused.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding API keys, deploying a service, publishing code, scanning Git history, or checking whether downloaded software can be trusted.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vikasudasi/skill-vault/security-secrets-management
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vikasudasi/skill-vault --skill security-secrets-management
Clone the repo
git clone --depth 1 https://github.com/vikasudasi/skill-vault

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for security-secrets-management

README.md
[![agentmods](https://agentmods.dev/badge/skills/vikasudasi/skill-vault/security-secrets-management/github.svg)](https://agentmods.dev/skills/vikasudasi/skill-vault/security-secrets-management)
Your own site
<a href="https://agentmods.dev/skills/vikasudasi/skill-vault/security-secrets-management"><img src="https://agentmods.dev/badge/skills/vikasudasi/skill-vault/security-secrets-management/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for security-secrets-management

Your own site · 80×15
<a href="https://agentmods.dev/skills/vikasudasi/skill-vault/security-secrets-management"><img src="https://agentmods.dev/badge/skills/vikasudasi/skill-vault/security-secrets-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,213 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.01213
Opus 5 $0.00018 $0.00607
Sonnet 5 $0.00007 $0.00243
Haiku 4.5 $0.00004 $0.00121

Measured 8d ago against content hash 5202c9b63e40, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

security-secrets-management scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/secrets_scan.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skill_vault/data/skills/security-secrets-management/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Secrets, Service Hardening, and Supply-Chain Trust

Use when standing up a self-hosted service, wiring API keys, or shipping code to the public — anywhere a leaked credential or unsigned artifact is a real cost.

1. Never commit secrets

  • Keep secrets in an untracked .env (gitignored), read them at runtime via env vars, never in source.
  • .gitignore must include .env, *.pem, *.key, keystores, and local config.
  • If a secret was ever committed, assume it's compromised: rotate it, don't just delete it. History preserves it.

Skills like Skill Vault's security-secrets-management and its sibling deploy-secret-hygiene exist precisely because "remove the line" is a false fix.

2. Scan for leaks continuously

tool finds run
gitleaks known secret patterns + entropy pre-commit + CI
bandit Python code security smells bandit -r .
git history scan secrets already committed gitleaks detect --log-opts="--all"

Gate CI on a clean scan; the cost of a leak multiplies the moment it's public.

3. Least-privilege API keys

  • Scope each key to the minimum capability it needs (read-only, one bucket, one API) and give it a short expiry.
  • Name keys so you can identify and revoke them (sv-ci-deploy, not key1).
  • Rotate on a schedule and on any suspicion.
  • Prefer a signed/token identity over raw long-lived keys where your platform supports it — this mirrors Skill Vault's trust model below.

4. SSH key hygiene

  • Use a passphrase-protected key or an agent; never a shared key in a repo.
  • Add public keys to the target via ssh-copy-id, and restrict keys in authorized_keys with command=/no-port-forwarding where the key is purpose-built.
  • Fingerprint-check on first connect; reject a changed host key.

5. Hardening a self-hosted service

  • TLS: terminate HTTPS at the edge (nginx with Let's Encrypt); redirect all HTTP to HTTPS and set HSTS. A self-hosted app behind nginx should see only X-Forwarded-Proto: https and treat non-TLS requests as untrusted.
  • Passwords: hash with a slow adaptive KDF — pbkdf2_hmac (many iterations) or argon2. Never store plaintext, single-round SHA, or MD5.
    import hashlib
    
    salt = secrets.token_bytes(16)
    digest = hashlib.pbkdf2_hmac("sha256", pw.encode(), salt, 600_000)
    
    Compare with hmac.compare_digest — not == — to avoid timing side channels.
  • Sessions: use httpOnly cookies (Set-Cookie: ...; HttpOnly; Secure; SameSite=Lax) so JS can't read the token and it isn't sent over plain HTTP.

Read the full file on GitHub · 100 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 100 lines · 36 tokens per session scan A 5202c9b63e40

Subscribe to this mod's changes

security-secrets-management is a skill published in the GitHub repository vikasudasi/skill-vault (0 stars, last pushed 23d ago), licensed Apache-2.0. It adds 36 tokens to every session and 1,213 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

performing-kubernetes-etcd-security-assessment

Assess the security posture of Kubernetes etcd clusters by evaluating encryption at rest, TLS configuration, access controls, backup encryption, and network isolation.

xalgorix/xalgorix · 38 tokens

secrets-gitleaks

Hardcoded secret detection and prevention in git repositories and codebases using Gitleaks. Identifies passwords, API keys, tokens, and credentials through regex-based pattern matching and entropy analysis. Use when: (1) Scanning repositories for exposed secrets and credentials, (2) Implementing pre-commit hooks to…

JoaoEquer/Oficina · 130 tokens

secrets-gitleaks

Hardcoded secret detection and prevention in git repositories and codebases using Gitleaks. Identifies passwords, API keys, tokens, and credentials through regex-based pattern matching and entropy analysis. Use when: (1) Scanning repositories for exposed secrets and credentials, (2) Implementing pre-commit hooks to…

AgentSecOps/SecOpsAgentKit · 130 tokens

secrets-gitleaks

Hardcoded secret detection and prevention in git repositories and codebases using Gitleaks. Identifies passwords, API keys, tokens, and credentials through regex-based pattern matching and entropy analysis. Use when: (1) Scanning repositories for exposed secrets and credentials, (2) Implementing pre-commit hooks to…

rohunj/claude-build-workflow · 130 tokens

performing-kubernetes-etcd-security-assessment

Assess the security posture of Kubernetes etcd clusters by evaluating encryption at rest, TLS configuration, access controls, backup encryption, and network isolation.

Njones17/AI-agent-master-cyber-skills-list · 38 tokens

js-secrets-extraction

Analyze JS bundles and source maps for hardcoded secrets, API keys, JWTs, and internal endpoints.

uphiago/recon-skills · 26 tokens