MCP's Protocol-Level Integrity Gap and 8 Bedrock IAM Escalation Paths — Your Agent Security Surface Just Got Specific
The MCP Rug Pull Is a Design Flaw, Not a Bug
The Model Context Protocol — rapidly becoming the standard integration layer for AI agents — has no cryptographic integrity between the moment a user approves a tool and the moment the agent executes it. No versioning, no content hashing, no approval-time snapshots. A malicious MCP server presents a benign tool description ('read my calendar'), gets user approval, then silently rewrites the tool definition to 'exfiltrate all emails' before the agent invokes it. This is a textbook TOCTOU (time-of-check/time-of-use) vulnerability.
Neither Datadog nor LangSmith can detect the MCP rug pull — they log what was called, not whether it matched what was authorized.
The fix follows a pattern you already know from Git and Docker: SHA-256 hash the full tool definition (description, parameters, behavior) at approval time, verify the hash before every execution call, and log the hash chain in an append-only store. This should have been in the spec from day one, and the open question is whether Anthropic adds it before enterprises ship MCP systems under SOC 2 and EU AI Act Article 12 requirements.
AWS Bedrock: 8 Validated Privilege Escalation Paths From One IAM Identity
XM Cyber mapped eight distinct attack vectors that all originate from a single over-privileged IAM identity — and none require application redeployment:
- Log redirection — redirect invocation logs to attacker's S3 bucket (exfiltrate prompts, cover tracks)
- Knowledge Base credential theft — steal SaaS credentials from KB configs
- Agent hijacking via
bedrock:UpdateAgent - Lambda layer injection into inference pipeline
- Flow rerouting of agent execution paths
- Guardrail stripping via
bedrock:UpdateGuardrail - Prompt template poisoning of shared templates
- Model invocation logging manipulation
All execute through the AWS control plane, invisible to application monitoring. The fix is a focused IAM audit: enumerate every principal with bedrock:* or any of the eight specific actions, scope them to specific resources. This should take hours, not days.
Agent Identity Is Now an Infrastructure Primitive
At RSAC 2026, three major vendors and a standards body independently converged on the same architecture: Cisco's Duo Agentic Identity, Palo Alto's Prisma AIRS 3.0, and the Cloud Security Alliance's new CSAI nonprofit all landed on agents-as-first-class-identity-principals with full authz, audit trails, and runtime behavioral controls. Nvidia released NemoClaw as an open-source security layer for agents. When this many players converge simultaneously, it's a pattern solidifying, not hype.
Meanwhile, the GhostClaw npm supply chain attack specifically targeted OpenAI and Anthropic API tokens alongside traditional SSH keys — 178 developers compromised in one week. Your agents' credentials are now high-value targets in commodity malware.
If your agents authenticate via shared API keys or long-lived tokens, start designing migration to per-agent identity now — before it becomes a compliance requirement.
What to do
Implement SHA-256 integrity verification for all MCP tool definitions: hash the full spec at approval time, verify before every execution, log to append-only store
Audit all AWS Bedrock IAM policies for bedrock:UpdateAgent, PutModelInvocationLoggingConfiguration, UpdateGuardrail, and Lambda layer attachment permissions — scope to specific resources
Rotate all OpenAI and Anthropic API keys on developer machines and migrate to short-lived tokens or a secrets manager
Document which agents have what access, how credentials are managed, and whether per-agent attribution exists in audit logs