If your AI agent manages ECS through awslabs.ecs-mcp-server, update to 0.1.36 and rotate any secrets kept as plain task-definition env vars
Amazon ECS MCP Server: troubleshooting tool returned cleartext container env vars even with redaction on, fixed in 0.1.36 · Security incident · GitHub (awslabs/mcp advisory) · awslabs · Nov 24, 2026
What happened
AWS published GHSA-ppc7-5jf2-gcfc on 24 Nov 2026: before 0.1.36, the Amazon ECS MCP Server's troubleshooting tool returned cleartext container environment variable values and secret references from ECS task definitions even when the server's sensitive-data setting was set to redact them. AWS says a remote actor who gets content in front of the operator's AI agent, for example through prompt injection, could make the agent ask for troubleshooting help and read those values, limited to task definitions the operator's AWS credentials can describe. The tool is read-only and the server uses local stdio by default. There is no workaround; AWS says to upgrade and rotate credentials stored as plaintext task-definition env vars.
How to prevent it
Keep secrets out of plain task-definition environment variables; reference them from Secrets Manager or Parameter Store instead. Treat any 'redact' switch in an agent tool as a backup, not the control, and don't let an agent with cloud credentials read untrusted content.
Fix prompt for your own AI tool
Copy this into your own AI tool (Cursor, Lovable, Claude Code, Bolt…). It's general guidance written by us. Review what the AI suggests before applying it.
I use Amazon ECS MCP Server, which can read web pages, files, emails or tool output. Help me reduce the risk of prompt injection (hidden instructions in content the AI reads). 1) List what my setup can access (files, terminal, browser, MCP servers, email, databases) and what it can do without asking me. 2) Point out the riskiest combinations, e.g. reading untrusted content while also having access to secrets or the ability to send data out. 3) Suggest concrete settings: require approval for commands and network calls, remove MCP servers I don't need, use read-only tokens, and keep the tool updated. 4) Give me a short checklist to follow before opening untrusted repos or documents. Don't change anything until I've approved your plan. Never ask me to paste API keys, passwords or .env contents; tell me where to check them myself.
Why this keeps happening: trusting agents & ai input
An AI agent treats everything it reads as possible instructions: a web page, a README, an email, a code comment or the output of another tool. If that content was written by an attacker, the agent can be steered into running commands, reading files or sending data somewhere it should not.
A quick checklist before you ship
- Give each agent only the tools and folders it needs for the task at hand.
- Require manual approval before it runs shell commands, sends network requests, deletes files or spends money.
- Do not open untrusted repositories or MCP configs with auto-run turned on.
- Keep API keys and production credentials out of any environment an agent can read.
More on this: every trusting agents & ai input story and our related guide.
Tools involved
Amazon ECS MCP Server stories, MCP stories
Related stories
- Update or remove WordPress MCP plugins, then reissue tokens
WordPress 'Secure MCP Server for Claude, ChatGPT, Gemini, Cursor' plugin: any valid MCP token could give its holder full Administrator (CVE-2026-131688) - If you run ruflo with Docker Compose, update to 3.16.3, firewall ports 3001 and 27017, rotate your OpenAI, Google, OpenRouter and Anthropic keys, and check AgentDB for injected patterns
ruflo: the MCP bridge in its default Docker Compose setup let anyone on the network run commands and read every AI provider key, fixed in 3.16.3 - If your app uses the mcp Python package as an OAuth MCP client, update to 1.30.0 (1.x) or 2.2.0 (2.x)
Official MCP Python SDK: a malicious MCP server could make the client send its OAuth secrets to a server of its choosing, fixed in 1.30.0 and 2.2.0
Source: original post on GitHub (awslabs/mcp advisory) ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.