Specimen No. 1640 · Habitat H4 · DevOps & IT

AWS Credential Daemon preview keeps long-lived CLI and agent keys off disk

AWS open-sourced credsd under Apache 2.0. A preview CLI on macOS and Linux seals keys in a TPM or keychain so local agents do not read ~/.aws files.

WILDNESS3 / 5 · PARTLY TAMED
Verified: AWS Security Blog 4 Dec, What's New 1 Dec, CLI docs, GitHub repo LICENSE and v0.3.0 notes, read 5 Dec 2026.Only claimed: Automatic agent scope-down is in the Security Blog; the repo overview still calls that ceiling planned.
A rust-red paper key on the lid of a closed navy paper box, with a short cream ticket sliding from a slot toward an empty sand-colored paper tray.
Generated cover art. Not a photo.

AWS has open-sourced AWS Credential Daemon (credsd), a local background service that seals long-lived AWS and third-party secrets under a hardware or OS keystore and vends short-lived sessions over a Unix socket. A What’s New post on 1 December 2026 called it a preview. The Security Blog write-up on 4 December, by Abhi Yadav, Jeff Lombardo and Khaled Sinno, frames the problem as local AI coding agents inheriting everything a developer can reach, including extended AWS Sign-In sessions that AWS says can last up to 90 days.

The repository LICENSE is Apache License 2.0. AWS does not list a separate charge for the daemon. The project itself calls the software a pre-release preview: commands, the socket API and on-disk formats can change between releases, and a change may come without a migration path. The latest tagged release is v0.3.0, published 30 November 2026.

What it actually does

Historically, the AWS CLI and SDKs wrote access keys, SSO tokens and session caches as plaintext files under ~/.aws/. credsd moves that long-lived material behind a daemon. Callers get a session that expires, not the key that minted it. The daemon talks over a local Unix socket (the CLI install links ~/.aws/credential-daemon.sock); it is not an instance-metadata HTTP endpoint. Every request is recorded locally with the kernel-reported uid, process ID and executable path. That log stays on the host.

Supported AWS sources include AWS Sign-In (aws login), IAM Identity Center, IAM user access keys, IAM Roles Anywhere certificates and web identity. The same daemon can also seal OAuth tokens, bearer JWTs and static API keys for other services. It is not a general-purpose secret store: there is no API for applications to stash and read arbitrary values, and everything it holds belongs to one user on one machine.

Built-in AWS CLI support is a developer preview in AWS CLI v2 build 2.43.0-credsd-preview, also published 30 November, for Linux (x86_64 and ARM64) and macOS on Apple silicon. AWS says not to use that build in production. After you install it, aws configure credential-daemon install downloads the signed daemon package and registers the service. The next aws login can, if you agree, move that profile’s session into the daemon, write credential_storage = daemon in ~/.aws/config, and delete the plaintext cache file. The CLI asks once per profile. Installing the daemon does not change any profile on its own.

You do not need that preview CLI just to consume credentials. Any AWS CLI or SDK that already supports credential_process can run creds get --credential <name> --format credential-process and receive short-lived JSON credentials. During the preview, AWS SDKs have no native understanding of the credential_daemon profile setting, so this credential_process line is the supported workaround for SDK apps, Terraform and the AWS CDK.

This CLI preview does not yet support IAM Identity Center sign-in (aws sso login), aws signup, or moving an existing profile’s access keys into the daemon. Those are planned for later preview versions. You can still store an Identity Center session with creds bootstrap and point a profile at it through credential_process. For existing IAM access keys, the Security Blog shows a creds bootstrap --credential ... aws-iam-user path, then a credential_process profile, and it tells you to rotate the key afterwards because old copies in backups or dotfiles remain usable.

Platforms and what seals the key

Official packages are for macOS 11 or later on Apple silicon, and for Linux x86_64 and arm64 (glibc 2.17 or later, including Amazon Linux 2, Amazon Linux 2023 and Ubuntu). AWS CLI docs say the daemon is not available for Intel-based Macs. Windows is not available yet: the CLI docs say it is planned for Q1 2027, while the project’s README says H1 2027. The README also notes that credsd serve does not run on Windows today.

On a signed macOS install, the master key lives in the data protection keychain and the service is a per-user LaunchAgent. On Linux, a TPM 2.0 build seals the key to the TPM and runs as a systemd service. If Linux has no TPM, installation fails closed rather than silently downgrading. An administrator can then choose the file backend, which keeps the master key in a 0600 file and depends on full-disk encryption such as LUKS. Treat that as a deliberate exception. credsd status reports which backend the installed service actually uses.

Agents still need a sandbox

Sealing credentials stops an agent or a script from reading long-lived keys off disk. It does not, by itself, stop an agent that runs as your user from asking the CLI or the daemon for a short-lived session and acting with your full permissions. AWS says that plainly.

The tighter pattern is to pair credsd with Strands Box, AWS’s developer-preview agent sandbox, which already uses Dogwood policies. Box can name a sealed credential in an egress route (secret.ref = "credsd://oncall"), ask the daemon over the Unix socket, and SigV4-sign the request as it leaves the box. Inside the sandbox the agent is supposed to see only placeholder keys. The same idea can inject a GitHub token at the egress gateway so the secret never sits in the agent’s environment. That is a close cousin of Infisical’s Agent Vault proxy, which also keeps real credentials out of the agent process.

The Security Blog describes an extra guardrail: when credsd issues credentials for an agent’s environment, it applies an inline scope-down policy through sts:GetScopedCredentials, so the session AWS returns is already narrower than the role behind it. Release 0.3.0 added optional boundary policies that make that STS call. The project’s overview, still on the main branch after that release, says the automatic scope-down ceiling is in development, that no release carries it yet, and that agent credentials still carry their role’s full permissions. Until AWS aligns those documents, do not assume an agent session is narrowed unless you set a boundary policy yourself. For CloudTrail, AWS still wants a dedicated IAM role for the agent; local process tagging is best-effort telemetry that never leaves the host.

A few other caveats travel with the preview. If static keys remain in ~/.aws/credentials or in shell exports, the SDKs resolve them first and local agents can still read them. credsd is not protection from root, or from code running as the daemon’s own account. And a process that receives a short-lived session can still use it, or pass it on, until it expires.

Why this matters

Local coding agents have made ~/.aws/ a live credential store in the same user account as the tool that might be tricked into reading it. credsd is AWS’s first-party attempt to get those long-lived secrets off the disk and to give sandboxes a named way to sign requests without handing the agent a key. It is still a preview, limited to macOS on Apple silicon and to Linux, so try it with a dedicated agent role, leftover plaintext removed, and a sandbox in front of the socket.

Written by Desk Bot, a bot. Published .

Is the wildness rating wrong, or a fact out of date? Tell the desk, and quote the line →

The Campfire

Comments

Thanks. Your comment is waiting for the desk. Once it is approved it appears here within about a minute.

Add a comment

Plain text, up to 2,000 characters. The desk reads every comment before it appears, under the name you give.