← All AI resources

Coding-agent credentials · AWS Credential Daemon adoption guide

AWS Credential Daemon protects keys, but agents still need less authority

AWS has open-sourced Credential Daemon, a local service that seals long-lived credentials and vends sessions to the AWS CLI and local tools.[1][2] Version 0.3.0 can apply one persistent boundary policy and an optional per-request scope to AWS sessions through STS GetScopedCredentials.[5] The AWS CLI integration remains a developer preview, and protected storage does not replace sandboxing, a dedicated agent role or service-side denial tests.[2][3][4]

Published by Learnetto team · Published December 5, 2026

SealPlaintext source secrets leave developer-readable files
VendExchange-backed sources yield expiring sessions
ContainThe sandbox keeps secrets outside the agent
AuthorizeA dedicated role limits the final action
Custodycredsd protects the source secret
Isolationthe sandbox limits local reach
Least privilegecloud policy limits authority
Learnetto's credential boundary map. Removing plaintext keys from developer-readable files closes one exposure route, while encrypted blobs remain on disk and sandbox policy plus service-side authorization still decide what a compromised agent can do.

AWS Credential Daemon, or credsd, moves plaintext long-lived AWS and third-party credential material out of developer-readable files and behind a local service. Encrypted credential blobs remain on disk, while the master key can live in a TPM, Secure Enclave, macOS data-protection keychain or an explicitly selected file backend.[1][2] Version 0.3.0 added two authorization controls for AWS session credentials: a persistent boundary policy that narrows every session from one credential, and an optional per-request policy that narrows one fetch further.[5] That makes the daemon more than protected storage, but it does not contain the process that receives a session or replace the IAM role behind it. The AWS CLI integration remains a developer preview. Native SDK support, IAM Identity Center sign-in and migration of existing access-key profiles are not complete.[3] Pilot storage, vending, containment and authorization separately, then remove old plaintext material only after identity and denial tests pass.

Release
Open source, Apache 2.0
AWS CLI status
Developer preview
Current platforms
macOS and Linux
Session scoping
Boundary policy plus optional per-request scope

Credential boundary migration map

LayerWhat changesPass evidenceStop condition
StoragePlaintext keys and refresh material move from developer-readable files into sealed daemon storageThe source secret is absent from user-readable files, and credsd reports the intended backendStatic keys, session caches or exported secrets remain readable in files, shell startup or agent state.
Exchange-backed vendingAWS and other issuer-backed sources yield an expiring session; JWT and static-secret sources are returned as storedThe test profile resolves the intended identity, expires as documented and leaves the source secret outside the callerA required SDK falls back to another identity or a stored secret reaches a process that should not receive it.
ContainmentA sandbox plus trusted egress gateway keeps usable credentials outside the agent processThe agent sees only a placeholder and cannot read the daemon socket, host key store or unrelated filesThe sandbox still gives the agent a usable session or permits direct daemon access.
AuthorizationAn agent-specific role, credential boundary and optional request policy narrow permitted actionsCloud logs identify the agent role and denial tests reject operations outside every policy layerThe role is broad, no boundary is configured or a request can receive permissions the task does not need.

What AWS released

AWS announced the open-source release of Credential Daemon on December 4, 2026, together with a preview integration in AWS CLI version 2. The daemon stores long-lived AWS sign-in material, access keys and supported third-party credentials, exchanges most issuer-backed sources for short-lived credentials and records each request with kernel-reported process details.[1][2] JWT and static-secret sources are served as stored rather than exchanged. JWT expiry comes from its exp claim; a static secret expires only when an optional expiry is configured.[2]

On Linux, the documented system installation uses a TPM-backed master key and runs the daemon as a separate service account. Official macOS packages use the data-protection keychain; source-built system installs can use the Secure Enclave.[2] The project is Apache 2.0 and explicitly marked pre-release, with commands, socket APIs and on-disk formats subject to change.[2]

The problem is specific to modern developer workstations. File permissions separate operating-system users, but they do not distinguish a human terminal from a coding agent running under the same user ID. Any same-user process can read plaintext credentials and cached sessions unless another boundary removes that access.[1][2]

What credsd changes, and what it leaves alone

credsd changes custody. A long-lived source credential stays sealed behind the daemon, while an exchange-backed source gives the requesting tool an expiring session. Copying an encrypted credential blob should not produce a reusable credential without the master key. The file backend keeps that key on disk and therefore depends on full-disk encryption.[1][2]

The daemon also adds local evidence. It records the caller's user ID, process ID, executable path and process ancestry, then uses heuristics to tag known agent harnesses.[2] AWS calls that best-effort local telemetry. Reliable cloud attribution still needs an agent-specific IAM role because CloudTrail sees the identity used for the API call, not the local process label.[1][2]

Version 0.3.0 added scoped AWS sessions before the public announcement. A credential can carry a boundary policy that narrows every session served from it, and one fetch can add a per-request scope on top. Each layer uses sts:GetScopedCredentials; a policy AWS rejects is not stored, and a scoping failure serves nothing broader.[5]

The repository overview still describes the scope-down ceiling as planned, but the v0.3.0 release notes tied to a verified signed commit and the tagged command reference document the shipped commands and behavior.[2][5] For a pilot, pin and record the installed version, then test `creds boundary show` and an out-of-scope request instead of relying on an unversioned overview page.

What the preview supports today

AWS labels the CLI integration a developer preview and says not to use it in production environments.[3] The supported path covers aws login, new access-key profiles created through interactive aws configure, credential export, daemon installation and linking. It does not move an existing access-key profile into the daemon.[3]

IAM Identity Center sign-in is not supported in this preview. AWS SDKs do not natively understand the credential_daemon profile setting yet, so local applications need a credential_process workaround. Scripted aws configure set and CSV imports still write to files.[3]

Those gaps matter during migration. An older SDK can fail to find the intended profile and, on AWS compute, may fall back to the host role.[3] Test the resolved identity with aws sts get-caller-identity and a denied operation before trusting the setup. Do not remove the old profile until every required tool uses the daemon-backed identity and no fallback path remains.

Where Strands Box fits

Strands Box adds the containment layer that credsd does not provide by itself. It runs the coding agent inside an operating-system sandbox and checks file, command, network and MCP activity against policy. For AWS routes, its trusted egress gateway signs outbound requests after the sandbox uses placeholder keys. For token routes, the gateway can replace a placeholder or attach the real token without exposing it to the sandbox.[4]

That egress pattern reduces the chance that prompt injection can print or copy a raw credential. It still needs exact destination rules, a role limited to the task, request logging and denial tests. A placeholder is not least privilege when the gateway will attach a powerful credential to any allowed request.

Teams can use another sandbox or trusted egress proxy instead of Strands Box. The required property is the same: the agent cannot reach the credential store or daemon socket, and a trusted component checks the destination and operation before attaching authorization.

A six-step pilot

Start with one disposable developer profile and one low-impact AWS account. The pilot should prove storage, identity, containment and authorization independently.

  • 1. Inventory ~/.aws, shell startup files, agent settings, transcripts and credential_process entries. Name every tool that must keep working and the identity it should use.
  • 2. Install the signed preview on a supported test machine. Verify the storage backend and record the credsd and AWS CLI versions before adding a profile.[2][3]
  • 3. Create one new daemon-backed profile. Confirm the source key or sign-in session is absent from readable files, then use aws sts get-caller-identity to verify the resolved identity.[3]
  • 4. Exercise each CLI, SDK, infrastructure tool and IDE involved in the workflow. Add credential_process only where required and test that no tool falls back to a host role or another profile.[3]
  • 5. Give the agent its own IAM role, set a credential boundary policy and add a per-request policy when one run needs less authority. Run inside a sandbox with trusted egress, then deny home-directory reads, the daemon socket, unrelated hosts and out-of-scope cloud operations.[4][5]
  • 6. Revoke or sign out, test the remaining lifetime of an already issued session, rehearse rollback and document unsupported paths. Expand only when the old plaintext material is removed and every expected denial remains enforced.

Risks and limits

  • The release is preview software. File formats and interfaces can change without a migration path, and AWS says the CLI integration is not for production.[2][3]
  • Sealing a key does not prevent a same-user process from asking for a short-lived credential when the daemon policy allows it.[2] Keep the agent away from the daemon socket or use a trusted egress boundary.
  • A short-lived session can still cause lasting damage. Scope the backing role, deny unnecessary services and require independent approval for consequential writes.
  • Local process tagging is heuristic. Use separate cloud identities for attribution rather than treating an agent label in a workstation log as an authorization control.[1][2]
  • Existing plaintext files and exported environment variables take precedence in common SDK chains. Leaving them behind can bypass the new custody boundary.[2][3]
  • The file backend is a deliberate weaker fallback when hardware-backed storage is unavailable. A system install still runs under the separate credsd service account, but the master key is a file and is protected at rest only by full-disk encryption.[2]

What to watch next

Track native SDK support, IAM Identity Center integration and existing-profile migration. Also watch for later scoping releases that change policy size, supported credential types or GetScopedCredentials behavior. Each change should rerun identity, fallback and denial tests.[3][5]

Watch for independent security review of the socket protocol, storage backends, process classification and approval paths. The project is small enough to inspect, but a vendor description and public source do not replace adversarial testing on the exact platform and install shape a team will use.

The durable lesson applies beyond AWS. Keep long-lived credentials outside model-visible files and processes, vend expiring sessions only where needed, constrain the agent with deterministic policy and enforce the final authority at the service. Missing any one layer leaves a different route for prompt injection or compromised code.

Keep learning on Learnetto

Sources

[1] AWS Security Blog: Introducing AWS Credential Daemon, December 4, 2026

[2] AWS Credential Daemon repository and current limitations

[3] AWS CLI credential daemon preview scope and limitations

[4] Strands Box repository and isolation model

[5] AWS Credential Daemon v0.3.0 release notes