AWS Credential Daemon Open Source Release Secures Developer Workstations

Key Takeaways

  • Amazon Web Services released AWS Credential Daemon as open source on December 5, 2026, securing developer workstations by sealing credentials with hardware-backed local custody via TPM 2.0 and macOS keychain.
  • AWS Credential Daemon vends only short-lived sessions never long-term credentials, with inline scope-down policies applied via sts:GetScopedCredentials to narrow permissions at issuance.
  • Strands Box integration with AWS Credential Daemon allows sandboxed AI agents to access AWS and third-party APIs without credential placement in agent environments, with requests signed at the egress gateway.

Amazon Web Services announced the open source release of AWS Credential Daemon (credsd) on December 5, 2026, alongside a preview integration in the AWS Command Line Interface (AWS CLI) to protect developer credentials using hardware-backed local custody. The tool addresses security risks on developer workstations by removing static access keys, single sign-on (SSO) tokens, and session caches from plaintext files stored under ~/.aws/ and replacing them with on-demand session vending secured by machine hardware. This innovation targets a critical security gap: developer laptops built for speed and broad reach now increasingly run local AI coding agents that can inadvertently inherit full developer permissions and access to code repositories, build pipelines, and cloud accounts without credential isolation.

Credential Storage and Threat Model

Historically, the AWS CLI and AWS SDKs wrote plaintext credentials to disk, relying only on operating system file permissions to separate local users. This approach breaks down when developers run local AI coding agents alongside extended sign-in sessions configurable up to 90 days for individual AWS Identity and Access Management (IAM) users and roles. Without credential isolation, an AI agent running under a developer's user ID (uid) automatically inherits extended sign-in sessions and full developer permissions because OS discretionary access control (DAC) cannot distinguish between a human at the keyboard and an agent running under the same user account.

The open source release targets three specific workstation risks. First, ambient authority beyond the task: agents and local tools inherit reusable credentials with no access decision made at credential use time, and tokens remain valid until expiration or revocation. Second, prompt injection through untrusted inputs: AI agents reading untrusted content can decide what to run next, and direct access to developer keys allows external attackers to trick agents into misusing permissions or leaking credentials directly from disk. Third, portable session files: long-lived static keys or refresh tokens in readable plaintext files risk being copied or exported by agents attempting to unblock tasks, with a single leaked ~/.aws/ file granting persistent cloud access to attackers.

AWS Credential Daemon Architecture and Integration

Credsd operates on a simple principle: securing local credentials requires no new AWS CLI commands or application code rewrites. Integrated directly with the AWS CLI in preview and Strands Box, credsd gives developers the same command-line experience while sealing sign-in sessions and static secrets from local processes and AI agents.

For developers, the workflow remains unchanged. Users continue to run aws login, aws sso login (coming soon), and aws configure exactly as before. On first sign-in, the AWS CLI asks once whether to let credsd seal the session using the machine's secure hardware, covering standard sign-ins and extended sign-in sessions up to 90 days. After that initial choice, credsd refreshes sessions in the background and vends short-lived credentials on demand to the AWS CLI. During preview, AWS SDKs and tools can connect using a credential_process profile. For every AWS credential source, credsd returns a session, never long-term credentials.

For security teams, long-lived refresh tokens, signing keys, and static IAM access keys are encrypted at rest under a key held by the machine's secure hardware or keychain, making copied files unusable as credentials. Every credential request is recorded locally with the kernel-reported uid, process ID, and executable path of the caller. When paired with Strands Box, AI agents can reach AWS and third-party APIs from inside a contained sandbox without the credential being placed in the agent's environment.

Migration and Installation Process

Moving an existing macOS or Linux workstation off plaintext files requires only a few minutes inside the AWS CLI. Installation begins by updating to the latest AWS CLI version supporting the credential daemon, then running aws configure credential-daemon install to download the signed platform package and register the background service. On Linux, running the same command installs aws-credential-daemon as a system service with sudo so it works across multiple users; other users on the machine run aws configure credential-daemon link.

After installation, the next time a developer signs in with aws login or aws sso login (coming soon), the CLI detects credsd and asks once whether to move that profile into the daemon. The answer is saved to the profile in ~/.aws/config, any plaintext session file in ~/.aws/login/cache/ is deleted, and future sign-ins go straight to credsd without prompting again. The profile retains only the storage choice and credential name in the daemon: credential_storage = daemon and credential_daemon = , neither of which is a secret.

For existing static IAM access keys, new profiles can seal keys directly in credsd using aws configure. To migrate existing profile keys during preview, developers seal the key using the creds CLI, which prompts for the secret access key and seals it in credsd. The daemon then exchanges it for temporary AWS Security Token Service (AWS STS) GetSessionToken credentials on demand. After configuring the profile to the daemon using credential_process in ~/.aws/config and deleting the plaintext entry from ~/.aws/credentials, key rotation in IAM is recommended because old copies in backups or dotfiles remain usable until rotated. Coming soon in a later preview update, developers will run aws configure migrate-credentials --all --dry-run to preview which existing profiles would be included in a bulk move and migrate them in one step.

AI Agent Sandboxing with Credential Isolation

Sealing credentials in credsd stops AI agents or malicious scripts from reading long-lived tokens and static keys off disk. However, if an AI coding agent runs directly as an OS user without containment, it can still request short-lived credentials from the CLI or SDK and act with full developer permissions.

To give AI agents access to AWS and third-party services without exposing credentials to the agent process, Strands Box integrates with credsd, fetching credentials directly from the daemon with no AWS CLI profile or credential_process in between. The workflow begins by storing the agent's credential in credsd using the creds client. Running creds bootstrap declares a new credential configuration in the daemon, where --credential sets the name used to reference it. Supported credential sources include aws-idc-sso, AWS Sign-In sessions, IAM access keys, IAM Roles Anywhere certificates, and non-AWS token sources. The --identity-type agent flag marks the credential as belonging to an agent rather than a person, governing which environments and callers can use it. Developers can run creds list anytime to see credential names currently sealed in the daemon.

Next, the credential name appears in the box's egress route instead of passing AWS keys into the agent's environment variables. When the agent calls AWS, the Strands Box egress gateway asks credsd over its local Unix socket for a short-lived session and SigV4-signs the request as it leaves the box. Inside the sandbox, the agent only sees placeholder keys, while credsd keeps the sign-in sealed on the device, refreshes it in the background, and records each request in its local audit log.

The same pattern extends to third-party tokens. A sandboxed coding agent can call GitHub using an egress.github route. By sealing a GitHub token in credsd with creds bootstrap instead of exporting it in the shell, Strands Box injects the token into outbound requests as an Authorization: Bearer header at the egress gateway without the secret ever sitting in shell history, on disk, or in the agent's sandbox.

When credsd issues credentials for an agent's environment, it applies an inline scope-down policy at issuance through sts:GetScopedCredentials, so the session AWS returns is already narrower than the role behind it. Because the limit is applied by AWS when the credential is created rather than enforced locally, it travels with the credential and nothing holding that session can widen it. Combining a dedicated IAM role for the agent with an inline sts:GetScopedCredentials policy provides two independent guardrails: a role scoped to agent tasks and an individual session narrowed to the specific run.

AWS Credential Daemon Implementation Key Specifications

Credsd deploys with the following characteristics:

Component Specification
Supported platforms macOS and Linux (AWS CLI integration in preview)
Credential storage backend TPM 2.0 on Linux; data protection keychain on macOS; file backend (0600 file) with full-disk encryption as optional fallback
Supported credential sources AWS Sign-In sessions, IAM access keys, aws-idc-sso, IAM Roles Anywhere certificates, non-AWS token sources
Extended sign-in session duration Up to 90 days for individual IAM users and roles
Credential vending mode Short-lived sessions only; long-term credentials never returned
Integration partners AWS CLI (preview), Strands Box, AWS SDKs (via credential_process during preview)
Local audit logging Caller process ID, kernel-reported uid, executable path; best-effort telemetry stays on host
License Apache 2.0 open source

Security Posture and Deployment Considerations

Strands Box integration with credsd eliminates credential visibility. The box fetches the credential and signs requests at the egress boundary, so the credential is never placed in the agent's environment variables or written into the sandbox file system. Even if the agent is compromised by prompt injection, no credential file or environment variable inside the sandbox exists to exfiltrate. Unified custody extends across AWS and third-party APIs. In addition to AWS credentials, credsd can seal OAuth tokens, bearer JSON Web Tokens (JWTs), and static API keys for third-party services, allowing a workstation to maintain one local custody boundary across every service it authenticates to rather than a separate solution per provider.

Security teams should address several implementation details. Static keys remaining in ~/.aws/credentials or shell profiles (.bashrc, .zshrc) are resolved first by AWS SDKs, and local agents can still read them off disk, so existing static keys must be moved into credsd and exported shell keys removed during setup. credsd status reports whether the installed service uses TPM 2.0 or the data protection keychain; on a host without TPM 2.0, installation fails rather than downgrading to the file backend, which administrators can explicitly choose to keep the master key in a 0600 file depending on full-disk encryption (LUKS or FileVault) for protection at rest. Treat the file backend as a deliberate exception, not a default.

For AWS CloudTrail attribution, credsd logs caller process details and tags known agents locally, but this best-effort telemetry stays on the host. To reliably separate agent and developer actions in CloudTrail, assign the agent a dedicated IAM role paired with sts:GetScopedCredentials. AWS CLI integration with credsd is currently in preview on macOS and Linux. Because moving a profile into credsd removes plaintext files that AWS SDKs currently expect to read, local SDK applications must use a credential_process profile workaround during preview.

AWS Credential Daemon Key Facts

  • AWS Credential Daemon is released as open source under the Apache 2.0 license at the AWS Credential Daemon GitHub repository
  • Preview integration available in AWS CLI on macOS and Linux; aws sso login support coming soon
  • Hardware encryption uses TPM 2.0 on Linux and data protection keychain on macOS
  • Credentials are vended as short-lived sessions; long-term credentials never returned from credsd
  • Extended sign-in sessions configurable up to 90 days for individual IAM users and roles
  • Inline scope-down policies applied at credential issuance via sts:GetScopedCredentials
  • Local audit log records process ID, kernel-reported uid, and executable path of each credential request
  • Strands Box integration allows agents to reach AWS and third-party APIs from sandbox without credential placement in agent environment
  • aws configure migrate-credentials --all --dry-run command coming in a later preview update for bulk credential migration
  • Plaintext session files under ~/.aws/login/cache/ are deleted when profile moves into credsd
  • Preview scope includes aws login and aws configure for new profiles; aws sso login coming soon
  • AWS SDKs during preview must use credential_process profile workaround to access credsd

Frequently Asked Questions

What happens to plaintext credentials already stored in ~/.aws/ when credsd is installed?

Installing credsd does not automatically migrate existing profiles. Developers must manually seal static IAM access keys stored in ~/.aws/credentials by using the creds CLI, which prompts for the secret access key and seals it in credsd for temporary AWS STS GetSessionToken credential exchange on demand. For sign-in sessions, the next time a developer signs in with aws login or aws sso login (coming soon), the CLI detects credsd and asks whether to move that profile into the daemon. Any plaintext session file in ~/.aws/login/cache/ is then deleted, and the profile retains only credential_storage = daemon and credential_daemon = in ~/.aws/config. Coming soon, aws configure migrate-credentials --all --dry-run will preview which existing profiles would be included in a bulk move.

How does credsd prevent an AI agent from accessing developer credentials?

Credsd stops agents from reading long-lived tokens and static keys off disk because credentials are encrypted at rest under a key held by the machine's secure hardware (TPM 2.0 on Linux) or keychain (macOS), making copied files unusable. When paired with Strands Box, the sandbox fetches credentials directly from credsd at the egress gateway, signs requests as they leave the box, and injects credentials only into outbound requests as headers or bearer tokens. Inside the agent sandbox, only placeholder keys are visible; the actual credential is sealed on the device and never placed in the agent's environment variables or file system. Additionally, inline scope-down policies via sts:GetScopedCredentials narrow the session to specific permissions at issuance, so even if an agent requests a credential, the session returned is narrower than the developer's full role.

What credential sources does credsd support?

Credsd supports AWS Sign-In sessions, IAM access keys, aws-idc-sso, IAM Roles Anywhere certificates, and non-AWS token sources including OAuth tokens, bearer JSON Web Tokens (JWTs), and static API keys for third-party services. For each supported source, credsd seals the credential in the machine's secure hardware or keychain and vends short-lived sessions on demand. During the preview phase of AWS CLI integration, AWS SDKs and tools can connect using a credential_process profile workaround.

Disclaimer: The information on this page may come from third-party sources and is for reference only. It does not represent the views or opinions of Gate and does not constitute any financial, investment, or legal advice. Virtual asset trading involves high risk. Please do not rely solely on the information on this page when making decisions. For details, see the Disclaimer.
Comment
0/400
No comments