AWS announced on Tuesday, 1 December, the preview of AWS Credential Daemon (credsd), an open-source local credential manager that takes long-lived keys and tokens out of plaintext files on disk and seals them under a hardware-backed key. The tool was detailed on Friday, 4 December, in the AWS Security Blog, and presented during re:Invent 2026. The code is open source under the Apache 2.0 licence and written in Rust.
The problem: AI agents inherit everything the user can reach
Historically, the AWS CLI and SDKs wrote static access keys, SSO tokens and session caches into plaintext files under ~/.aws/, relying only on operating-system permissions to separate users. That model breaks down when developers run AI coding agents alongside extended sign-in sessions — now configurable for up to 90 days. An agent running on the laptop inherits everything the user account can reach, because OS permissions cannot tell the person typing in a terminal from an agent running under the same user ID. AWS names three risks in this setup: ambient authority beyond the task, with reusable tokens and no access decision at the time of use; prompt injection through untrusted inputs, which can lead the agent to leak or misuse credentials; and portable session files, which can be copied and replayed by an attacker.
How credsd works
credsd has two components: the credsd daemon and the creds client. Long-lived credentials — static IAM access keys, refresh tokens, signing keys and third-party secrets — stay encrypted at rest under a master key held in the machine's hardware: on macOS, in the Data Protection Keychain (or the Secure Enclave, depending on the installation); on Linux, in a TPM 2.0 chip. The daemon serves only short-lived credentials on demand, over a local Unix socket, refreshes sessions in the background, and records every issuance in a local audit log, with the caller's uid, PID and executable path. When it issues credentials for an agent, it also applies an inline scope-down policy (sts:GetScopedCredentials), so the session is born narrower than the role behind it.
Sandboxed agents without touching the credentials
Paired with Strands Box, AWS's sandboxed execution environment for agents, credsd lets an agent call AWS and third-party APIs without the credential ever entering its environment: the sandbox's egress gateway fetches a short-lived session from the daemon and signs the request (SigV4) as it leaves, while the agent only ever sees placeholder keys. The same pattern covers third-party tokens — a GitHub token sealed in the daemon, for example, is injected as an Authorization: Bearer header at the gateway, never sitting in shell history, on disk or inside the sandbox. Importantly, credsd is not a general-purpose secret vault or a password manager — it holds one user's credentials on one machine, with no API for storing arbitrary values.
Preview: where it runs and how to install it
The AWS CLI integration is in preview for macOS (Apple silicon only) and Linux (x86-64 and ARM64); Windows support is on the roadmap for the first half of 2027, and Intel-based Macs are not yet supported. Installation is done with aws configure credential-daemon install; on the first sign-in, the CLI asks once whether the session should be sealed in the daemon, and later sign-ins go straight to it. During the preview, SDKs use a credential_process profile as a workaround. AWS warns that this is a preview: commands, configuration, the socket API and on-disk formats can still change, with no guaranteed migration between versions. And there is one essential cleanup step: if static keys remain in ~/.aws/credentials or in environment variables, they take precedence and silently defeat the daemon's protection — they must be removed and, ideally, rotated in IAM.
Image credit: official diagram "AWS Credential Daemon local custody and vending", from the AWS Security Blog (Amazon Web Services).
Fontes:
- AWS — "AWS announces preview of AWS Credential Daemon for on-host credentials management" (anúncio oficial, 1º de dezembro de 2026)
- AWS Security Blog — "Introducing AWS Credential Daemon", por Abhi Yadav (4 de dezembro de 2026)
- GitHub — aws/credential-daemon (repositório oficial, licença Apache 2.0)
- AWS Builder Center — "Get the Long-Lived Keys Off Your Disk: How the AWS Credential Daemon Protects Agents and CLIs" (re:Invent 2026, 3 de dezembro de 2026)
Transparency: this article was produced with the assistance of artificial intelligence, based on public sources and information from the internet. Please consult the original sources listed above to confirm the information.
By Muse