AI & Compute · 3 min read
AWS open-sources credsd to move CLI secrets out of plaintext files
AWS open-sourced credsd on Dec. 4, a daemon that seals CLI refresh tokens, signing keys and IAM keys in hardware, auditing every request by uid, process ID and executable path.
Key takeaways
- AWS open-sourced the credsd credential daemon on Dec. 4 with CLI and Strands Box preview support.
- The daemon seals refresh tokens, signing keys and static IAM keys in secure hardware or keychains instead of plaintext ~/.aws/ files.
- Every credential request is audited locally with kernel-reported user ID, process ID and executable path.
- AWS Sign-In sessions can now last up to 90 days, extending the replay risk of copied session files.
- aws sso login support is planned after the initial preview on macOS and Linux.

Amazon Web Services open-sourced a credential daemon on Dec. 4 that seals long-lived cloud secrets inside workstation secure hardware instead of plaintext files under ~/.aws/.
The AWS Credential Daemon, called credsd, arrived in preview alongside support in the AWS Command Line Interface and Strands Box for macOS and Linux workstations. It holds refresh tokens, signing keys, and static IAM access keys in machine secure hardware or OS keychains, and it logs every credential request locally using kernel-reported user ID, process ID, and executable path. In plain terms, the file that every developer keeps on disk in readable form now has a hardware-guarded replacement.
Why did plaintext credentials stop being safe?
The traditional AWS CLI and SDK workflow trusted operating-system file permissions under ~/.aws/ to separate users on one machine. That design assumed a human at the keyboard decided which code runs. It cannot tell the difference between a developer typing in a terminal and an autonomous coding agent running under the same user ID, so a local agent inherits the developer's full cloud authority.
The exposure grew with session length. AWS Sign-In sessions are now configurable for up to 90 days, which means a copied session file can keep working for months. AWS named three specific workstation threats behind the redesign:
- Ambient authority: local tools reuse full developer permissions without any per-use check.
- Prompt injection: untrusted code or web content can trick an agent into exfiltrating credentials from disk.
- Portable session files: an attacker or misbehaving agent can copy them for persistent cloud replay.
The takeaway is that file permissions cannot police software acting on its own under your own account.
How does the custody and auditing actually work?
Installation runs through aws configure credential-daemon install on macOS or Linux, and developers keep using the familiar aws login and aws configure commands. On Linux, the installer registers aws-credential-daemon as a system service with sudo, so several local users can connect through aws configure credential-daemon link. On macOS, the install creates a user-scoped background service tied to ~/.aws/credential-daemon.sock.
On first sign-in, the CLI asks once whether to seal the session in the daemon, then deletes any plaintext cache in ~/.aws/login/cache/ and leaves only non-secret storage metadata in ~/.aws/config. Two migration paths cover existing setups:
- Static IAM keys move out of ~/.aws/credentials via the
creds bootstrapcommand. - AWS SDKs connect through a credential_process profile during the preview period.
Behind the scenes, credsd refreshes sessions in the background and hands callers only short-lived credentials. Every request gets a local audit record carrying the kernel-reported uid, process ID, and executable path, so an investigation can show exactly which program asked for which keys.
Paired with Strands Box, local AI coding agents call AWS and third-party APIs inside a contained sandbox without raw credentials ever entering the agent's environment. Support for aws sso login is slated to follow the initial preview.
What changes for security teams?
The release targets a specific enterprise blind spot rather than a broad platform shift. Local AI coding agents running under a developer's account automatically inherit access to plaintext keys and session caches, and most security tooling never sees that boundary dissolve because the agent uses the same uid as the human. Credsd replaces that inherited standing authority with a per-request gate backed by hardware and an audit trail.
The preview scope is worth noting: macOS and Linux workstations, CLI and SDK integration through credential_process, and Strands Box sandboxing, with SSO login still on the roadmap. If the preview holds, the practical effect is that plaintext ~/.aws files become a removable liability rather than a default, and credential theft by local agents becomes both harder and traceable.
mlq.ai (Source)
More from Tom Whitfield
Show full bio
Staff writer covering companies, deals and strategy in Semiconductors, chip manufacturing, hardware, AI compute at Chip Dispatch.
1,494 articles