I Tried the macOS Version of AWS Credential Daemon

I Tried the macOS Version of AWS Credential Daemon

I installed AWS Credential Daemon (credsd) per user on an Apple silicon Mac and confirmed that aws login credentials work from the AWS CLI. Audit log recording and Touch ID approval also worked.
2026.12.03

This page has been translated by machine translation. View original

Introduction

On December 1, 2026, a preview of AWS Credential Daemon (credsd) was announced.

https://aws.amazon.com/jp/about-aws/whats-new/2026/12/aws-credential-daemon/

credsd encrypts AWS credentials and similar secrets with a hardware-backed key in the machine's keystore, stores them, and issues temporary credentials.

In a previous article, I tried credsd on Linux (Amazon Linux 2023).
https://dev.classmethod.jp/articles/aws-credential-daemon-preview/

In this article, I installed credsd on a Mac and checked its use from the AWS CLI, audit logs, approval with Touch ID, and more.

Test Environment

  • Device: MacBook Air, Apple M4, with Touch ID
  • macOS: 27.2.1
  • credsd and creds: 0.3.0
  • AWS CLI: 2.43.1
  • Storage backend: data-protection-keychain
  • Sign-in Region: Tokyo (ap-northeast-1)
  • Approval: performed in front of the Mac (sudo password entry, Touch ID)

Installation

The target is Apple silicon Macs running macOS 11 or later. Per-user installation does not require administrator privileges.

credsd stores its encryption keys in the data protection keychain. Because this keychain can only be reached from a login session, it runs as a per-user LaunchAgent.

I downloaded the package and installed it per user.

mkdir -p ~/credsd-trial/dl && cd ~/credsd-trial/dl
base=https://github.com/aws/credential-daemon/releases/latest/download
curl -fLO "$base/credsd-macos-aarch64.pkg"
installer -pkg credsd-macos-aarch64.pkg -target CurrentUserHomeDirectory
installer: Package name is credsd
installer: Installing at base path /Users/<USER>
installer: The install was successful.

The app was placed in ~/Applications/Credsd.app, and symbolic links to the commands were placed in ~/.local/bin. With ~/.local/bin in the PATH, running credsd status displayed the following.

installed: true
running:   true
binary:    /Users/<USER>/Applications/Credsd.app/Contents/MacOS/credsd
args:      --storage-backend data-protection-keychain serve
backend:   data-protection-keychain
data dir:  /Users/<USER>/Library/Application Support/credsd
socket:    /Users/<USER>/Library/Application Support/credsd/credsd.sock

The procedure, including signature verification with gpg, is in the AWS CLI documentation.

https://docs.aws.amazon.com/cli/latest/userguide/getting-started-credsd-install.html

Signing In and Storing Credentials

I ran creds bootstrap and saved the credentials obtained by signing in with aws login to credsd. The name specified with --credential is used in the profile in the next section.

creds bootstrap --credential mac-sample aws-login --region ap-northeast-1
Open this URL in a browser to complete login:
https://ap-northeast-1.signin.aws.amazon.com/v1/authorize?response_type=code&client_id=arn%3Aaws%3Asignin%3A%3A%3Adevtools%2Fsame-device&state=<STATE>&code_challenge_method=SHA-256&scope=openid&redirect_uri=http%3A%2F%2F127.0.0.1%3A55029%2Foauth%2Fcallback&code_challenge=<CHALLENGE>
Saved credential 'mac-sample', signed in as role <ROLE> in account <ACCOUNT>.

The redirect_uri of the sign-in URL is 127.0.0.1, and I signed in using the browser on the Mac where I ran the command. The AWS sign-in screen was displayed in the browser, and after signing in, the credsd page was displayed.

AWS sign-in screen

credsd login completion page

Running creds list after saving displayed the following.

CREDENTIAL      KIND                STATUS TAGS
mac-sample      session_credentials active

Using It from the AWS CLI

I wrote a profile that uses credential_process in ~/credsd-trial/aws-config. For credential_process, write the absolute path of creds. You can check the path with command -v creds.

[profile credsd]
region = ap-northeast-1
credential_process = /Users/<USER>/.local/bin/creds get --credential mac-sample --format credential-process

Profiles are normally written in ~/.aws/config. How to write them is described in the AWS CLI documentation.

I unset the access key environment variables, specified /dev/null for the shared credentials file, and ran aws sts get-caller-identity.

env -u AWS_ACCESS_KEY_ID -u AWS_SECRET_ACCESS_KEY -u AWS_SESSION_TOKEN \
  AWS_CONFIG_FILE=$HOME/credsd-trial/aws-config \
  AWS_SHARED_CREDENTIALS_FILE=/dev/null \
  aws sts get-caller-identity --profile credsd
{
    "UserId": "<USERID>",
    "Account": "<ACCOUNT>",
    "Arn": "arn:aws:sts::<ACCOUNT>:assumed-role/<ROLE>/<SESSION>"
}

Audit Log

The audit log is written to ~/Library/Application Support/credsd/credsd.log, and the file mode is 600. The save upon sign-in was recorded in the aws login saved line. The records of aws sts get-caller-identity calling creds remained twice in caller assessment lines. The following code block shows the first line of each. The latter is long, so everything after evidence= is omitted.

2026-12-02T14:13:16.300777Z  INFO aws login saved credential=mac-sample arn=arn:aws:sts::<ACCOUNT>:assumed-role/<ROLE>/<ROLE>
2026-12-02T14:13:36.841450Z  INFO caller assessment pid=19702 uid=501 transport="uds" credential="mac-sample" signal="no_agent" claimed=Unstated observed="none_found" caller="/Users/<USER>/Applications/Credsd.app/Contents/Resources/creds" agentic=false evidence=…

The parent-child relationship of the calling process (ancestry) is recorded in the evidence of the caller assessment line. This time, it was creds, its parent aws (~/aws-cli/aws), bash, and sshd-session, in that order.

Approval with Touch ID

On macOS, the two things you can use for approval are a Touch ID signature and sudo creds request approve <id>. Touch ID can be used after a presence key is enrolled, and approval of the enrollment itself is done with sudo.

I ran creds presence enroll after registering a credential. As the credential, I registered a dummy static-secret.

printf "dummy-not-a-real-secret" | creds bootstrap --credential dummy static-secret
creds presence enroll
Created a presence key in the Secure Enclave.
  fingerprint  SHA256:<FINGERPRINT>
  use requires Touch ID (invalidated if fingerprints change)
  key file     /Users/<USER>/.credsd/presence-key.pending.json

Pending request req-b77ef7662eda (expires in 15m).
Approve from a privileged session:

  sudo creds request approve req-b77ef7662eda

Or withdraw it: creds request withdraw req-b77ef7662eda

Check that the approval shows the same fingerprint.

I approved the enrollment with sudo. Running creds presence status after approval displayed the following.

uid 501: presence key SHA256:<FINGERPRINT>
  enrolled 2026-12-02T14:15:44.342045+00:00  approved by uid 0 (login uid 501)
  held here: /Users/<USER>/.credsd/presence-key.json (requires biometry, created 2026-12-02T14:07:52.551322+00:00)

In the audit log, the verifier was privileged_approval and approver_uid was 0.

After enrollment, I ran creds remove in Terminal.app and deleted the dummy credential dummy.

/Users/<USER>/.local/bin/creds remove --credential dummy --force

When I ran it, approval was requested, and after I performed fingerprint authentication with Touch ID, the following was displayed.

Approval required: remove credential 'dummy' and its sealed data
✓ removed credential 'dummy' and its sealed data for uid 501  [presence_signature]
Removed credential 'dummy' and its sealed data.

The operations for which approval was requested during testing were creds presence enroll and creds remove.

Summary

I installed AWS Credential Daemon per user on macOS (Apple silicon) and was able to use aws login credentials from the AWS CLI.

aws login is a mechanism released in November 2025 that lets you use the permissions of a console you're already logged into in the browser, without creating and managing long-term access keys.

https://dev.classmethod.jp/articles/aws-cli-aws-login/

On the other hand, temporary credentials are stored locally. Even if their validity period is short, this can become a risk in some cases.

If you want to use aws login more securely on a Mac, please try this update.


セキュリティ対策もお任せください

セキュリティ相談会では、御社の環境に合わせて、どこを確認し、どの対策から進めるかを一緒に考えます。「今の設定で大丈夫か、少し気になる」くらいの段階から、喫緊の課題までオンラインで無料でご相談いただけます。ぜひご活用ください。

セキュリティ相談会

セキュリティ相談会の詳細を見る

Share this article

AWSのお困り事はクラスメソッドへ