Skip to content
WeChat · Oxo Security·Indexed by this site · Originally published· Event →

Why can a key that is masked by default still be read out by an Agent? Inspection clues from the Strands environment tool

【AI安全】默认遮住的密钥,为何还能被 Agent 读出来?Strands 环境工具给出的检查线索

AI summary

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.

Read originalmp.weixin.qq.com