# Security Analysis of AWS AgentCore Harness Credential Exposure Through Prompt Injection

DevFeed: [Security Analysis of AWS AgentCore Harness Credential Exposure Through Prompt Injection](<https://devfeed.tech/articles/a-vault-with-a-heap-view-the-uncomfortable-space-between-agentcore-harness-and-identity-42773.md>)

Original publisher: [Read original article](<https://unit42.paloaltonetworks.com/securing-aws-agentcore-harness-credentials/>)

Author: Niv Rabin

Published: 2026-09-18T10:00:36Z

Content type: article

Language: en

Sources: [Unit 42](<https://devfeed.tech/sources/unit-42.md>)

Topics: [prompt injection](<https://devfeed.tech/topics/prompt-injection.md>), [cloud security](<https://devfeed.tech/topics/cloud-security.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Security](<https://devfeed.tech/topics/security.md>), [least privilege](<https://devfeed.tech/topics/least-privilege.md>), [AWS IAM](<https://devfeed.tech/topics/aws-iam.md>), [Model Context Protocol](<https://devfeed.tech/topics/model-context-protocol.md>)

Tags: [agentcore-runtime](<https://devfeed.tech/tags/agentcore-runtime.md>), [agentic-ai](<https://devfeed.tech/tags/agentic-ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [aws](<https://devfeed.tech/tags/aws.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [cloud-cybersecurity-research](<https://devfeed.tech/tags/cloud-cybersecurity-research.md>), [cloud-security](<https://devfeed.tech/tags/cloud-security.md>), [encryption](<https://devfeed.tech/tags/encryption.md>), [exfiltration](<https://devfeed.tech/tags/exfiltration.md>), [iam](<https://devfeed.tech/tags/iam.md>), [identity-and-access-management](<https://devfeed.tech/tags/identity-and-access-management.md>), [least-privilege](<https://devfeed.tech/tags/least-privilege.md>), [mcp-server](<https://devfeed.tech/tags/mcp-server.md>), [prompt-injection](<https://devfeed.tech/tags/prompt-injection.md>), [sandbox](<https://devfeed.tech/tags/sandbox.md>), [shell-tool](<https://devfeed.tech/tags/shell-tool.md>), [threat-research](<https://devfeed.tech/tags/threat-research.md>)

## AI overview

Unit 42 researchers found that default configurations in AWS AgentCore Harness could allow prompt injection to steer an agent and exfiltrate plaintext credentials managed by AgentCore Identity. The analysis examines the interaction between the identity vault, a downstream MCP server, and the harness's built-in shell tool. It recommends restricting allowed tools, applying least privilege to identity-vault service accounts, and monitoring outbound traffic.

## Source excerpt

Analysis of how default configurations in AWS AgentCore Harness allow prompt injection to exfiltrate credentials, and key steps to secure your agents. The post A Vault with a Heap-View: The Uncomfortable Space Between AgentCore Harness and Identity appeared first on Unit 42.