← Back to all announcements
★★★★☆ 17/06/2026

AWS Secrets Manager introduces safe secrets handling in the Agent Toolkit for AWS

AI coding agents can now use AWS secrets at runtime without ever exposing plaintext values to the model, logs, or memory.

View original announcement →

Visual Summary

graph TD A{{Secret Safety Skill}}:::announced B((AI Coding Agent)):::external C([Skill Guidance Layer]):::feature D([PreToolUse Hook]):::feature E([Dynamic References]):::feature F(asm-exec Child Process):::compute G(AWS Secrets Manager):::storage H((Developer)):::external H ==>|"uses"| B B ==>|"installs aws-core"| A A -->|"steers agent"| C A -->|"enforces blocks"| D C -->|"constructs"| E E -->|"resolved by"| F F -->|"fetches secret"| G D -.->|"blocks get-secret-value"| G B -->|"clarifies intent"| H classDef announced fill:#ff9900,stroke:#ec7211,color:#fff,font-weight:bold classDef compute fill:#e3f2fd,stroke:#1565c0,color:#1565c0 classDef storage fill:#e8f5e9,stroke:#2e7d32,color:#2e7d32 classDef feature fill:#fff3e0,stroke:#e65100,color:#e65100 classDef external fill:#f5f5f5,stroke:#616161,color:#616161

What's New

AWS Secrets Manager has introduced a "secret safety skill" as part of the aws-core plugin in the open-source Agent Toolkit for AWS, enabling AI coding agents to consume secrets without ever exposing plaintext values to the model's context window, session logs, or agent memory. The feature addresses a longstanding risk where agents like Claude Code, Codex, or Cursor could retrieve and surface raw secret values during agentic workflows. The skill is available today across all AWS Regions where Secrets Manager is supported.

How It Works

  • Skill guidance layer: The plugin teaches the AI agent to use {{resolve:secretsmanager:<secret-id>:<field-type>:<json-key>:<version>}} dynamic references instead of calling get-secret-value directly, so the model constructs commands that reference secrets symbolically rather than retrieving their plaintext values.
  • Runtime resolution via asm-exec: A wrapper script (asm-exec) resolves the dynamic references to actual secret values only at execution time inside a child process that runs outside the agent process, ensuring plaintext values never enter the agent's context window or memory.
  • Structural enforcement via PreToolUse hook: A PreToolUse hook automatically intercepts and blocks any attempt to call get-secret-value or batch-get-secret-value through the AWS CLI, SDK, MCP tools, or the AWS Workload Credentials Provider daemon—requiring no manual configuration.
  • Intent clarification: When a secret is needed, the agent prompts the developer to clarify intent and constructs the appropriate command using the secret reference, rather than fetching and passing the raw value.
  • Backend flexibility: Secret resolution supports either the AWS Workload Credentials Provider running on localhost:2773 or standard AWS credentials with secretsmanager:GetSecretValue IAM permissions.
  • Zero-friction installation: Installing the aws-core plugin for the supported agent platform automatically activates both the skill guidance and the enforcement hook with no additional setup.

Why It's Important

  • Eliminates a critical AI-era attack surface: Before this feature, any AI coding agent with shell or AWS API access could inadvertently (or maliciously) pull plaintext secrets into conversation history, logs, or downstream tool calls—a risk that grows as agentic workflows become more autonomous.
  • Protects against accidental leakage in logs: Session logs and conversation histories are often stored, shared, or reviewed by multiple parties; keeping secrets out of these channels significantly reduces the blast radius of a potential exposure.
  • Enforces least-privilege behavior at the agent layer: The structural hook ensures that even if the model is prompted or manipulated to request a secret value, the request is blocked automatically, adding a defense-in-depth layer on top of IAM policies.
  • Enables secure adoption of agentic development: Organizations that have been hesitant to allow AI coding agents access to production or staging environments can now do so with a concrete guardrail around secret handling.
  • Complements existing AWS security controls: The skill is designed to work alongside IAM least-privilege policies, CloudTrail monitoring, and VPC endpoint policies rather than replace them, fitting naturally into existing security postures.

How It's Different

  • Context-window isolation vs. plain retrieval: Unlike the default behavior where agents call get-secret-value and receive plaintext in the context window, this skill ensures the model only ever sees a symbolic reference, never the resolved value.
  • Automatic enforcement, not just guidance: Many security best-practice plugins offer advisory guidance; this skill combines behavioral steering with a hard structural block (the PreToolUse hook) that prevents direct secret retrieval regardless of how the model is prompted.
  • Child-process isolation: Secret resolution happens in a separate child process at execution time, a pattern borrowed from secure CI/CD pipelines, rather than within the agent process where values could be logged or cached.
  • Multi-agent-harness support out of the box: The skill works across Claude Code, Codex, Cursor, and Kiro through a single plugin installation, unlike custom per-agent solutions developers would otherwise need to build and maintain.
  • Open-source and AWS-supported: The Agent Toolkit for AWS is an official, AWS-maintained open-source repository, giving teams auditability and community contribution options that a closed proprietary solution would not provide.

When to Prefer It

  • When AI coding agents have shell or AWS API access in any environment: Any workflow where an agent can execute CLI commands or make SDK calls should use this skill to prevent inadvertent secret retrieval.
  • When working with production or staging secrets: Environments where secrets have real operational impact (database credentials, API keys, OAuth tokens) benefit most from ensuring those values never enter model context.
  • When session logs or conversation histories are retained: If agent sessions are logged for debugging, auditing, or compliance purposes, this skill prevents secrets from appearing in those records.
  • When building multi-step agentic pipelines: Longer agentic workflows with many tool calls increase the surface area for accidental secret exposure; the skill's runtime resolution pattern keeps secrets scoped to the exact moment they are needed.
  • When onboarding developers who are new to secure secret handling: The skill's intent-clarification prompts educate developers on the correct pattern (dynamic references) rather than silently failing or allowing unsafe behavior.
  • When compliance or security policy requires secrets to be kept out of AI model inputs: Organizations subject to SOC 2, PCI-DSS, or internal data classification policies can use this skill as a documented, auditable control.

Availability

  • GA status: Generally available as of June 17, 2026; no preview or beta designation indicated.
  • Supported agent harnesses: Claude Code, OpenAI Codex, Cursor, and Kiro (all agent harnesses supported by the Agent Toolkit for AWS).
  • Regional availability: Available in all AWS Regions where AWS Secrets Manager is available.
  • Pricing: The skill itself is part of the open-source Agent Toolkit for AWS at no additional charge; standard AWS Secrets Manager pricing applies for secret retrieval API calls made at execution time.
  • Key prerequisite: Requires the aws-core plugin from the Agent Toolkit for AWS to be installed; the skill and enforcement hook activate automatically upon installation.
  • Important limitation: Documented as a best-effort defense, not a security boundary—it mitigates the most common leakage path but cannot prevent all evasion vectors, and must be combined with IAM least-privilege, CloudTrail monitoring, and VPC endpoint policies for comprehensive protection.

Tags

Servicesother-aws
Typenew-featuresecurity
Conceptsagentic-aicoding-assistant
Use Casesdeveloper-toolsopen-source
Providersanthropic
GeographyGlobal

Related Resources

AI Radar AWS

AWS AI/ML news — curated, researched, explained

An automated intelligence platform that curates, researches, and analyzes AWS AI/ML/GenAI announcements daily. Every report is backed by real research — the system reads linked blog posts and documentation to provide accurate, in-depth analysis.

How Each Report Is Generated

  1. Collection — Daily monitoring of the AWS "What's New" RSS feed
  2. Filtering — AI-powered relevance detection for AI/ML/GenAI topics
  3. Taxonomy Tagging — LLM-based classification across 6 dimensions
  4. Importance Scoring — Point-based system with tag bonuses (1-5 stars)
  5. Research Phase — Follows links to blog posts and documentation
  6. Report Generation — Claude Sonnet produces structured 6-section analysis
  7. Visual Summary — Claude Opus generates Mermaid diagrams for key items
  8. Publishing — Static website rebuilt and deployed via CloudFront

Features

  • Faceted filtering by service, type, concept, and more
  • Multi-dimensional taxonomy with 80+ tags across 6 dimensions
  • Geographic availability badges (Global, APJ, EMEA, AMER) with filtering
  • Timeline visualization of announcement volume
  • PDF export for offline reading
  • Mermaid visual summaries for key announcements
  • Daily automated updates — no manual curation
What makes this different: Each report involves a dedicated research phase where the system reads linked blog posts and AWS documentation pages. This produces analysis that goes beyond the original announcement text.

Technology

Built with Python, AWS Lambda, Amazon Bedrock (Claude Sonnet 4.6, Opus 4.6, Haiku 4.5), S3, CloudFront, WAF, EventBridge, and CDK.

Open Source

This project is open source. Fork it, customize it for your needs, and deploy your own instance.
📦 github.com/bbonik/ai-radar-aws

How Importance Scoring Works

Each announcement receives a point score based on multiple factors. The total score maps to a 1-5 star rating:

1★ < 2 pts 2★ ≥ 2 pts 3★ ≥ 3.5 pts 4★ ≥ 5 pts 5★ ≥ 6.5 pts

Point Breakdown

FactorPointsWhen
Core AI service (Bedrock, AgentCore, SageMaker AI)+4Service named in title
Key AI service (SageMaker, Kiro, QuickSight)+2Service named in title
Other AI-related service+1Default
Blog post link+3Link to aws.amazon.com/blogs/
GitHub samples link+2Link to github.com/aws*
Documentation link+1Link to docs.aws.amazon.com/
New model+1.5Tagged as "new-model"
New service+1Tagged as "new-service"
New feature+0.5Tagged as "new-feature"
Anthropic / OpenAI provider+2Provider explicitly mentioned
Instance / notebook announcement-2Hardware/capacity, not feature
Performance / pricing / security-0.5Incremental updates
Region expansion to APJ+1Expands to Asia Pacific
Region expansion (non-APJ only)-1.5Only expands to other regions

Geographic Relevance Badges

Each announcement card shows a small badge indicating whether the feature is available in your region:

🌐 Global Available in all regions
🌏 APJ Asia Pacific
🌍 EMEA Europe / Middle East / Africa
🌎 AMER Americas (US, Canada, South America)
No badge Geography unknown
How geography is detected: The system detects ALL geographies mentioned in each announcement. If the text mentions specific regions (Tokyo, Frankfurt, Oregon, etc.), the corresponding geography badges are shown. If it says "all regions" or is a new feature with no region specified, it gets the Global badge. Geography is also filterable — click a geo chip to see only announcements available in that region.