The Glow Labs team has found that two AWS Security Agent integrations, the aws-agents-for-devsecops plugin and the AWS Security Agent MCP server, could upload a scanned workspace's source archive, which can include credentials, to an S3 bucket owned by a third party.
Ironically, it was the running of a security scan of their own code that put developers at risk.
AWS rated both vulnerabilities moderate, with a CVSS 4.0 score of 5.1, and published fixes and workarounds Sept. 10. Neither advisory reports exploitation.
- CVE-2026-87912 in
aws-agents-for-devsecopsversions 1.0.0 and earlier, fixed in 1.1.0 - CVE-2026-87913 in
awslabs.security-agent-mcp-serverversions 0.1.0 through 0.1.5, fixed in 0.2.0
An attacker needed only the target's AWS account ID, not access to the account itself.
All the attacker had to do was preregister the predictable bucket name, which is not a very high bar to clear if the attacker knows who they are going after.
How did a security scan send code to an attacker's bucket?
Both tools upload the workspace's source archive to S3 before a scan. The bucket name is made up from the caller's AWS account ID and region:
security-agent-scans-<account-id>-<region>
The tools then checked whether a bucket with that name existed, and uploaded to it without confirming which account owned it.
S3's shared global namespace for general-purpose buckets means that a name can belong to only one account.
If the attacker's bucket accepts writes from the target's account, the target has no sign that their files are going to someone else's bucket.
AWS account IDs are public and show up in ARNs and ECR URIs.
We mapped the attack in four steps, none of which touches the target's account:
- Find the target's account ID and the region its developers work in.
- Create
security-agent-scans-<target-account-id>-<region>in an account the attacker controls, before the target's first scan. - Set a bucket policy that lets the target's account write to it.
- Wait.
On a vulnerable version, the next time a developer runs a scan, the tool finds a bucket with the expected name and uploads to it.
According to AWS's plugin advisory, the archive can hold .env files, private keys, and Terraform state, making it particularly sensitive if it ends up in the wrong hands.

What should security teams do now?
- Patch. Upgrade
aws-agents-for-devsecopsto 1.1.0 andawslabs.security-agent-mcp-serverto 0.2.0. - Confirm bucket ownership. AWS advises verifying that
security-agent-scans-<account-id>-<region>is owned by your own account. Runningaws s3api head-bucketwith--expected-bucket-ownerset to your account ID returns a 403 error if another account owns the bucket and a 404 if it doesn't exist yet. - Treat a foreign-owned bucket as an incident. If developers ran scans with a vulnerable version, rotate every secret from the scanned workspaces.
- Create the bucket first. AWS recommends creating it in your own account before first use. Because the region is part of the name, that means one bucket for each account and region where developers run these tools.
- Restrict S3 writes to known accounts. The
s3:ResourceAccountcondition key limits a role's S3 access to buckets owned by the accounts you list.
How did one missing step in a Markdown file open the door?
Like many issues in security, the issue here was basic yet critical in that there were no checks on who actually owned the bucket before the upload. In the plugin, we traced that missing check to the plugin's skill file.
Which is a long way of saying that this is a missing step in the .md file, not code that's missing a line.
This is a bucket-squatting attack, made worse by the skill failing to check that data is in fact being sent to the right bucket.
MCP server version 0.2.0 passes ExpectedBucketOwner on S3 operations and checks bucket ownership before upload. Plugin version 1.1.0 verifies bucket ownership on every S3 operation, including the existence check, bucket creation, and upload.
Both fixes treat a bucket owned by another account as a fatal error. "Upgrading [the fixed AWS versions] does not release a bucket name that a third party has already registered," AWS said in their advisories.
Hopefully this fix closes this particular issue, but this story raises question about how the way we're writing software is going to impact our security moving forward.
Why wouldn't existing controls catch it?
What changes when AI writes the code and runs the attacks?
AI now writes a large share of new software. At Google, 75% of new code is AI-generated, up from 50% last fall, CEO Sundar Pichai said in April.
We're seeing many more vulnerabilities in agentic software that was written in the past year or so. The cause is probably not so much that AI is worse at writing code than humans, but we suspect much of it is written by AI and released without anyone checking it closely.
Moreover, staying on top of what software is in your environment is harder than a traditional application.
Security teams used to look only at applications, which makes up everything with a window and a user interface. Now there are countless types of software, like an MCP server or a text interface tool like Claude, and most software inventory solutions don't even see that these AI tools and peripherals are installed.
Each AI tool stores its plugins and MCP server configs in its own files. Without an inventory of AI tooling, finding every machine that runs either AWS tool, and which version, means scripting file searches across endpoints.
Finding the machines is only the start. Each one still needs the tool upgraded or removed, and no security team can review every package by hand.
And as everyone from marketing and finance to the dev teams are now adding packages and creating code, this is becoming increasingly difficult to stay ahead of across the org.
Add to this the fact that attackers already use agents to move faster. The Google Threat Intelligence Group reported Sept. 8 that attackers compromised a cloud resource, then planned, built, and ran an agent-enabled credential harvesting campaign in under six hours.
We estimate that attackers can find vulnerabilities like these in less than an hour. The recent PHP2Shell story was a wakeup for many in the industry that the pace of risk and change has already shifted.
All of these factors make it clear to us that security teams need agents of their own to find AI tooling across every surface and act on what they find.
What should Glow customers do?
For Glow customers, our AI platform agent Glowy can handle most of the remediation and prevention workload.
Glowy works from an inventory of the agent plugins and MCP servers on each managed developer machine, across more than 20 AI tools.
Using this strong foundation, a security engineer can start with one request:
Glowy searches every software type in our inventory, including Claude Code plugins and MCP server configs. It returns the affected endpoints and the installed plugin versions.
From there, Glowy can take three actions, each after an approval:
- Remove the tool. Glowy unregisters the plugin and deletes the MCP server's config entry on each endpoint.
- Watch for reinstalls. Glowy writes a posture policy that flags either tool if it reappears, or plugin versions below the fix.
- Ask developers to upgrade. Glowy can email affected developers, message them on Slack, or open a Jira or ServiceNow ticket.

The race is heating up
Just as we scan these tools, attackers can scan them too. Defenders need to move just as fast.
Moving that fast means the repetitive work, finding each tool and checking its version on every machine, can't wait on a person. Agents can run it across thousands of machines at once while security teams make the decisions.
To learn more about these vulnerabilities and how our agentic approach secures endpoints and AI deployments, contact Glow today.
.png)



_Option2.webp)

_Option2.webp)




