aws-secrets-manager

aws-secrets-manager is a skill for Claude Code from aws/agent-toolkit-for-aws. It costs 53 tokens per session (2,070 once invoked), scanned A, original, Apache-2.0.

A safety guide for using AWS Secrets Manager, a service that stores passwords, API keys, tokens, and other sensitive values. It tells coding agents to use runtime references instead of reading secret values directly.

In plain words
What is it for?
Use it when working with AWS credentials, passwords, API keys, tokens, or other Secrets Manager entries through commands, scripts, or application configuration.
Why use it?
It keeps plaintext secrets out of the agent’s context, logs, conversation history, and later tool calls. It is a best-effort safeguard and still requires access controls and monitoring.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event.

Part of the aws-core plugin — 30 skills, 1 hook shipped together

Good fit Use it when working with AWS credentials, passwords, API keys, tokens, or other Secrets Manager entries through commands, scripts, or application configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aws/agent-toolkit-for-aws/aws-secrets-manager
About the project

Agent Toolkit for AWS is a collection of AWS-supported MCP servers, skills, plugins, commands, and hooks that help AI coding agents build, deploy, and manage applications on AWS. It is used by developers working with AWS services through agents such as Claude Code, Codex, Cursor, and Kiro. The catalogue entries are the toolkit's own agent extensions for AWS development and operations.

aws/agent-toolkit-for-aws · 3,645 stars · on GitHub

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 aws/agent-toolkit-for-aws --skill aws-secrets-manager
Clone the repo
git clone --depth 1 https://github.com/aws/agent-toolkit-for-aws

Made for: Claude Code.

Or install aws-core, the plugin that ships this one along with the rest of its 30 skills, 1 hook.

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 aws-secrets-manager

README.md
[![agentmods](https://agentmods.dev/badge/skills/aws/agent-toolkit-for-aws/aws-secrets-manager/github.svg)](https://agentmods.dev/skills/aws/agent-toolkit-for-aws/aws-secrets-manager)
Your own site
<a href="https://agentmods.dev/skills/aws/agent-toolkit-for-aws/aws-secrets-manager"><img src="https://agentmods.dev/badge/skills/aws/agent-toolkit-for-aws/aws-secrets-manager/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 aws-secrets-manager

Your own site · 80×15
<a href="https://agentmods.dev/skills/aws/agent-toolkit-for-aws/aws-secrets-manager"><img src="https://agentmods.dev/badge/skills/aws/agent-toolkit-for-aws/aws-secrets-manager.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,070 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket warn 8 Sept 2026
  • Snyk pass 8 Sept 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high YARA Match · line 5
    YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).
    Fix: Remove offensive tool references and exploit code. Legitimate agent skills should not contain penetration testing tools, exploit frameworks, or reconnaissance utilities.
  • medium Data Exfiltration · line 70
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium MCP Rug Pull · line 136
    Docker image references without a specific tag (:latest is implicit) or digest (@sha256:...) can be silently replaced by a malicious image.
    Fix: Pin the image: image:tag or image@sha256:abc123
How audits are shown
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.00053 $0.02070
Opus 5.5 $0.00021 $0.00828
Sonnet 5.5 $0.00011 $0.00414
Haiku 4.5 $0.00005 $0.00207

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

Security

Grade A, and why

aws-secrets-manager scanned grade A with 2 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 22d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

CLI, SDK, MCP tools, curl, or any other mechanism.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

4. Runs the target command via `subprocess.run` -- secret values exist only in the
plugins/aws-core/skills/aws-secrets-manager/SKILL.md · 195 lines

How it starts

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

Using Secrets Safely with Agents

Overview

When AI agents handle secrets, credentials, API keys, tokens, or passwords with shell or AWS API access, they can call aws secretsmanager get-secret-value and receive plaintext values in their context window. This creates risk: secrets may leak into logs, conversation history, or downstream tool calls.

This skill teaches a safer pattern: dynamic references resolved at runtime by a wrapper script (asm-exec), so the agent never sees the secret value.

Best-effort defense, not a security boundary. This prevents the most common leakage path but cannot stop all evasion vectors. Combine with IAM least-privilege, CloudTrail monitoring, and VPC endpoint policies.

Rules

You MUST follow these rules when working with secrets:

  1. MUST NOT call get-secret-value or batch-get-secret-value -- not via AWS CLI, SDK, MCP tools, curl, or any other mechanism.
  2. MUST NOT attempt to read secret values from the Secrets Manager Agent (SMA) daemon directly (localhost:2773 or any loopback variant).
  3. MUST use {{resolve:secretsmanager:...}} references -- these are resolved at runtime by asm-exec without exposing values to you.

The {{resolve:...}} Syntax

{{resolve:secretsmanager:<secret-id>:<field-type>:<json-key>:<version-stage>}}
Component Required Default Example
secret-id Yes -- prod/db-creds or full ARN
field-type No SecretString SecretString
json-key No (full value) password
version-stage No AWSCURRENT AWSPENDING

Using asm-exec

asm-exec is a wrapper that resolves {{resolve:...}} references in command arguments and environment variables, then execs the target command. The secret value exists only in the child process -- never in the agent's context.

Usage

# Pass a database password to psql without exposing it
asm-exec -- psql \
  "host=mydb.example.com \
   user={{resolve:secretsmanager:prod/db-creds:SecretString:username}} \
   password={{resolve:secretsmanager:prod/db-creds:SecretString:password}}" \
  -c "SELECT * FROM users LIMIT 10"

# Use default field-type (SecretString) and full value (no json-key)
asm-exec -- curl -H "Authorization: Bearer {{resolve:secretsmanager:prod/api-token}}" \
  https://api.example.com/data

# Multiple secrets in one command
asm-exec -- mysql \
  -h {{resolve:secretsmanager:prod/mysql:SecretString:host}} \
  -u {{resolve:secretsmanager:prod/mysql:SecretString:username}} \
  -p{{resolve:secretsmanager:prod/mysql:SecretString:password}} \
  -e "SHOW TABLES"

Read the full file on GitHub · 195 lines

Files

What ships with it

1 file 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. 22d ago Changed · +8 lines d0da4cdf1cf5
  2. 2mo ago Changed · +7 lines 5ffa0eaad966
  3. 2mo ago Changed 0d665066345b
  4. 3mo ago First seen · 180 lines · 53 tokens per session scan A b56b1649bf43

Subscribe to this mod's changes

aws-secrets-manager is a skill published in the GitHub repository aws/agent-toolkit-for-aws (3,645 stars, last pushed today), licensed Apache-2.0. It adds 53 tokens to every session and 2,070 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

aws-secrets-manager compared with skills from other repositories

aws-secrets-manager next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aws-secrets-manageraws/agent-toolkit-for-awsSkill3.6ktodayApache-2.0A53Claude Code
gke-compute-classesgoogle/skillsSkill25ktodayApache-2.0A83Claude Code, Codex
cloud-operator-admin-setupgoogle/skillsSkill25ktodayApache-2.0A115Claude Code, Codex
gke-reliabilitygoogle/skillsSkill25ktodayApache-2.0A85Claude Code, Codex
gke-workload-securitygoogle/skillsSkill25ktodayApache-2.0A171Claude Code, Codex
nemo-automodel-launcher-configNVIDIA/skillsSkill4.2ktodayApache-2.0A30Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3kyesterdayMITA78Claude Code