Skip to content
EventPast event

Strands Agents Tools environment tool secret masking bypass vulnerability

3 reports3 reporting sourcesLatest report

Start here

AI overview

The environment tool in Strands Agents Tools has a secret masking bypass vulnerability (CVE-2026-115415, GHSA-qjx4-hg6g-2f34). The tool by default masks environment variables whose names contain KEY, TOKEN, SECRET or PASSWORD, but the masked parameter that controls masking is written into the tool input schema, so the model can set it itself, and the list and get operations require no operator confirmation. A crafted prompt can cause the model to turn off masking and return cloud credentials and API keys from the agent host's environment variables in plaintext. Versions 0.1.0 and above and before 0.8.6 are affected, and it has been fixed in 0.8.6: masking is now controlled only by the operator, and the model can no longer turn it off. The vulnerability is rated Moderate, with a CVSS 3.1 score of 6.5.

Generated by AI from reports · Updated 22 days ago

Progress timeline

Nov 6
  1. WeChat · Oxo Security
    Why can a key that is masked by default still be read out by an Agent? Inspection clues from the Strands environment tool

    Strands Agents Tools published security advisory CVE-2026-115415 on October 28, 2026, stating that the environment tool's secret masking can be turned off by the model, affecting strands-agents-tools versions 0.1.0 to before 0.8.6, fixed in 0.8.6, rated Moderate with a CVSS 3.1 score of 6.5. The cause is that the masked parameter, which controls whether masking is applied, was placed in the tool's input schema, so after reading a web page, a file or previous tool output, the model can, following injected instructions, list environment variables in unmasked form; the old implementation required operator confirmation only for set and delete, not for list and get. The attack requires the Agent to actually have the tool loaded, to be able to access attacker-controlled content, and the model to be induced to make the corresponding call; the article says it checked the official advisory but did not reproduce it on a real Agent.

Oct 28
  1. strands-agents/toolsSelected
    Secret masking bypass vulnerability in the environment tool of Strands Agents Tools

    Strands Agents Tools released a security advisory (GHSA-qjx4-hg6g-2f34 / CVE-2026-115415): the secret masking of its environment tool can be bypassed, and this has been fixed in version 0.8.6. The tool masks environment variables whose names contain KEY, TOKEN, SECRET or PASSWORD by default, but the masked parameter that controls masking is written into the tool input schema, so the model can set it itself, and the list and get operations require no operator confirmation. An attacker able to inject instructions into content processed by the Agent (e.g., via web pages, files or prior tool output) can induce the model to call the tool with action="list", masked=false, returning in plaintext AWS access keys, model provider API keys, source control tokens and database connection strings; the model may then pass these values to the attacker through other loaded tools.

Date not provided
  1. Date not given
    AWS SecuritySelected
    CVE-2026-115415: secret masking bypass vulnerability in the Strands Agents Tools environment tool

    AWS disclosed vulnerability CVE-2026-115415 in the Strands Agents Tools environment tool: a crafted prompt can make the model turn off secret masking and return in plaintext the cloud credentials and API keys in the Agent host's environment variables, without operator consent. The cause is that the tool accepts a masking parameter from the large language model via the tool schema, and it can be triggered by content the Agent is asked to process. Versions 0.1.0 and above and before 0.8.6 are affected, and it has been fixed in 0.8.6: masking is now controlled only by the operator and can no longer be turned off by the model, and the environment tool is also deprecated with this version. AWS recommends upgrading to the latest version and patching forked code, and rotating credentials in the environments of Agents that loaded the tool; if immediate upgrade is not possible, remove the tool, avoid placing long-lived cloud credentials or API keys in the process environment, and restrict the Agent host's outbound network access to trusted endpoints. See GHSA-qjx4-hg6g-2f34.

Related discussion

Total 1 items