Amazon Web Services released AWS Credential Daemon (credsd) on December 4, 2026, as an open-source service for protecting cloud credentials on developer workstations.
The daemon encrypts long-lived secrets and supplies short-lived AWS sessions on demand. AWS Command Line Interface integration is in preview on macOS and Linux.
Paired with Strands Box, the daemon lets sandboxed AI coding agents call AWS APIs without receiving raw credentials, reducing the risk that prompt injection leads to credential exfiltration.
AWS Credential Daemon Protects Developer AWS Keys
Amazon’s release addresses a gap in discretionary access control: filesystem permissions distinguish operating system users, but not a developer from an agent running under the same user ID.
Historically, plaintext AWS access keys and session caches under ~/.aws/ were consequently readable by processes running as that developer.
Research into GitHub Copilot CLI prompt injection illustrates why this distinction matters: an agent processing untrusted content can be induced to disclose files its user account can read.
The daemon encrypts refresh tokens, signing keys, and static IAM access keys at rest. Its master key resides in the macOS Data Protection Keychain or a Linux Trusted Platform Module (TPM 2.0).
Linux installation does not silently fall back to file-based storage if the TPM is unavailable. The daemon refreshes sessions in the background and records each credential request with the caller’s kernel-reported user ID, process ID, and executable path.
Teams migrating long-lived AWS access keys should remove plaintext copies and rotate keys that may persist in backups or dotfiles.
Credential custody alone does not stop an unsandboxed agent from requesting temporary credentials through the CLI or SDK under the developer’s identity. Strands Box closes that exposure path by moving signing outside the agent process.
The egress gateway retrieves a session over a local Unix socket and applies AWS Signature Version 4 to outbound requests. The agent sees placeholder keys rather than usable credentials.
A prompt injection can still induce API calls the sandbox and session permit, making authorization limits as important as secret isolation.
AWS Security Token Service applies those limits at issuance through sts:GetScopedCredentials. An inline session policy narrows the permissions granted by the underlying role; it cannot grant permissions the role lacks.
A dedicated IAM role separates agent activity from developer activity in AWS CloudTrail, while the daemon’s process-level audit records stay on the workstation.
That distinction matters when investigating abuse of leaked IAM keys: CloudTrail records activity under the cloud identity, while local logs identify processes 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 after plaintext cache files are removed.
Security teams should verify the active storage backend with credsd status and remove residual keys from ~/.aws/credentials and shell startup files. Otherwise, applications may continue resolving plaintext credentials instead of using the daemon.
Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team