implementing-hashicorp-vault-dynamic-secrets

implementing-hashicorp-vault-dynamic-secrets is a skill for Claude Code, Codex from xalgorix/xalgorix. It costs 74 tokens per session (5,137 once invoked), scanned A, original, Apache-2.0.

A guide to configuring HashiCorp Vault to create temporary credentials for databases, AWS, and certificate-based identity. These credentials are issued with a lease, meaning they expire and can be revoked automatically.

In plain words
What is it for?
Use it to set up short-lived database credentials, AWS IAM keys, and PKI certificates, with automatic expiry, revocation, and rotation.
Why use it?
It reduces the need to keep long-lived passwords and access keys in application settings or environment variables. It also helps catch leases that are so long they behave like permanent secrets.

Skill for Claude CodeCodex

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

Good fit Use it to set up short-lived database credentials, AWS IAM keys, and PKI certificates, with automatic expiry, revocation, and rotation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xalgorix/xalgorix/implementing-hashicorp-vault-dynamic-secrets
About the project

xalgorix/xalgorix is a self-hosted AI penetration-testing tool in which an LLM agent performs reconnaissance, looks for vulnerabilities, and coordinates exploitation, while a separate verifier re-tests findings before reporting them. It is for security teams, ethical hackers, and bug bounty work using a private, bring-your-own-LLM setup. The catalogue skills extend the agent's pentesting workflow.

xalgorix/xalgorix · 1,531 stars · on GitHub · xalgorix.com

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 xalgorix/xalgorix --skill implementing-hashicorp-vault-dynamic-secrets
Clone the repo
git clone --depth 1 https://github.com/xalgorix/xalgorix

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 implementing-hashicorp-vault-dynamic-secrets

README.md
[![agentmods](https://agentmods.dev/badge/skills/xalgorix/xalgorix/implementing-hashicorp-vault-dynamic-secrets/github.svg)](https://agentmods.dev/skills/xalgorix/xalgorix/implementing-hashicorp-vault-dynamic-secrets)
Your own site
<a href="https://agentmods.dev/skills/xalgorix/xalgorix/implementing-hashicorp-vault-dynamic-secrets"><img src="https://agentmods.dev/badge/skills/xalgorix/xalgorix/implementing-hashicorp-vault-dynamic-secrets/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 implementing-hashicorp-vault-dynamic-secrets

Your own site · 80×15
<a href="https://agentmods.dev/skills/xalgorix/xalgorix/implementing-hashicorp-vault-dynamic-secrets"><img src="https://agentmods.dev/badge/skills/xalgorix/xalgorix/implementing-hashicorp-vault-dynamic-secrets.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,137 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.00074 $0.05137
Opus 5.5 $0.00030 $0.02055
Sonnet 5.5 $0.00015 $0.01027
Haiku 4.5 $0.00007 $0.00514

Measured 7d ago against content hash f1365e702ab6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

implementing-hashicorp-vault-dynamic-secrets 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 7d ago.

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.

internal/tools/skills/data/identity-access-management/implementing-hashicorp-vault-dynamic-secrets/SKILL.md · 602 lines

How it starts

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

Implementing HashiCorp Vault Dynamic Secrets

When to Use

  • Applications use static database credentials stored in configuration files or environment variables
  • AWS IAM access keys are long-lived and shared across services
  • Need to eliminate credential sprawl by generating short-lived, per-request secrets
  • Compliance requirements mandate credential rotation (PCI-DSS Requirement 8, NIST 800-53 IA-5)
  • Implementing zero-trust secret management where credentials are never stored at rest
  • Migrating from manual credential management to automated secrets lifecycle

Do not use for storing static secrets that cannot be dynamically generated (use Vault's KV secrets engine instead); dynamic secrets are for credentials that can be programmatically created and revoked on target systems.

Common Misconfigurations & Verification

Dynamic secrets only reduce risk if leases are short and actually revoked — these defeat the point:

  • TTL/max_ttl too long: a role with default_ttl=720h is functionally a static secret. Audit with vault read database/roles/app-readonly and confirm default_ttl is minutes-to-hours, not days. Check live lease ages: vault list sys/leases/lookup/database/creds/app-readonly.
  • Leases never revoked on shutdown: apps that exit without calling revoke leave credentials valid until max_ttl, accumulating orphaned DB users. Count them on the target (SELECT rolname FROM pg_roles WHERE rolname LIKE 'v-%') and compare to active leases — a large delta means revocation is broken. Confirm the client calls sys.revoke_lease on teardown.
  • Missing/incorrect revocation_statements: the lease expires in Vault but the DB role/user is never dropped. Verify every role has DROP ROLE/USER in its revocation block and test by reading a cred, force-revoking (vault lease revoke -prefix database/creds/...), then confirming the DB user is gone.
  • Root credential not rotated: the bootstrap admin password is still known to humans. Confirm vault write -force database/rotate-root/... was run; the original password must no longer authenticate.
  • AWS iam_user where assumed_role/STS would do: long-lived-ish keys with slow IAM propagation. Prefer credential_type=assumed_role and verify default_sts_ttl/max_sts_ttl are short.
  • No audit device / no alerting on lease spikes: confirm vault audit list shows an enabled device and that a sudden surge in database/creds reads triggers a SIEM alert (credential exfiltration signal).

Read the full file on GitHub · 602 lines

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. 7d ago First seen · 602 lines · 74 tokens per session scan A f1365e702ab6

Subscribe to this mod's changes

implementing-hashicorp-vault-dynamic-secrets is a skill published in the GitHub repository xalgorix/xalgorix (1,531 stars, last pushed yesterday), licensed Apache-2.0. It adds 74 tokens to every session and 5,137 once invoked, about $0.0003 per session on Opus 5.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-11-23.

Related

implementing-hashicorp-vault-dynamic-secrets compared with skills from other repositories

implementing-hashicorp-vault-dynamic-secrets next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
implementing-hashicorp-vault-dynamic-secretsxalgorix/xalgorixSkill1.5kyesterdayApache-2.0A74Claude Code, Codex
implementing-hashicorp-vault-dynamic-secretsbalsm-health/Balsm-AISkill31mo agononeA74Claude Code
cis-aws-foundations-2.1.1CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A19Claude Code, Codex
cis-aws-foundations-2.15CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A23Claude Code, Codex
cis-aws-foundations-4.1CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A18Claude Code, Codex
cis-aws-foundations-2.1.3CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A21Claude Code, Codex
cis-aws-foundations-2.4CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A20Claude Code, Codex