GBHackers

AWS Launches Open-Source Credential Daemon to Protect Cloud Credentials From AI Agent Attacks


Amazon Web Services released AWS Credential Daemon (credsd) on December 4, 2026, to protect cloud credentials on developer workstations.

Licensed under Apache 2.0, the daemon encrypts long-lived secrets at rest, refreshes sign-in sessions in the background, and issues short-lived AWS credentials on demand without returning the underlying secrets.

AWS Command Line Interface integration is in preview for macOS and Linux. Paired with Strands Box, the daemon lets sandboxed AI coding agents call AWS APIs without receiving usable credentials.

AWS Launches Open-Source Credential Daemon

Amazon’s release addresses a gap in discretionary access control: filesystem permissions distinguish operating system users, but not a developer from a coding agent running under the same user ID.

Historically, static access keys and session caches stored as plaintext under ~/.aws/ were readable by processes running as that developer.

Credential exfiltration through malicious agent skills illustrates why this matters: an agent that processes untrusted instructions can expose secrets its account can read. Moving long-lived credentials out of plaintext storage removes that source of reusable secrets.

The daemon encrypts refresh tokens, signing keys, and static IAM access keys using a master key protected by the macOS Data Protection Keychain or a Linux Trusted Platform Module (TPM 2.0).

Linux installation fails if the TPM is unavailable rather than silently selecting file-backed storage. Administrators can explicitly choose that fallback, which relies on full-disk encryption for protection at rest.

Migration does not revoke keys already copied elsewhere, a risk underscored by the discovery of 768 exposed AWS access keys with administrative privileges.

Credential custody alone does not stop an unsandboxed agent from asking the AWS CLI or an SDK for temporary credentials under the developer’s identity.

Strands Box moves request signing outside the agent process: its egress gateway retrieves a temporary session from credsd over a local Unix socket and applies AWS Signature Version 4 to outbound requests.

The agent sees placeholder keys, not the credentials used for signing. Prompt injection can still induce API calls that the sandbox and session permit.

AWS Security Token Service applies an inline session policy at issuance through sts:GetScopedCredentials. The policy can narrow the underlying IAM role’s permissions but cannot add privileges the role lacks.

A dedicated agent role separates agent activity from developer activity in AWS CloudTrail, while credsd records the kernel-reported user ID, process ID, and executable path for each credential request locally.

That distinction matters when investigating Amazon Bedrock abuse involving a leaked IAM access key: CloudTrail identifies the cloud principal, not the workstation process that requested credentials.

The initial preview supports aws login and aws configure for new profiles. Native aws sso login integration and bulk migration are planned for later preview updates. SDK applications can use a credential_process profile to retrieve temporary sessions.

AWS recommends verifying the active storage backend with credsd status, removing residual plaintext entries from ~/.aws/credentials and shell startup files, and rotating migrated keys that may still exist in backups or dotfiles.

Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team 



Source link