Amazon Web Services announced on December 4 the open-sourcing of the AWS Credential Daemon, or credsd. It is a service that runs in the background on the developer's computer (Linux and macOS) and stores cloud access credentials in a more protected place than the usual configuration files. The idea is that scripts, programs and artificial intelligence agents no longer have direct access to these secrets.
What changed
To this day, AWS tools tend to store keys and session data in local files. It's convenient, but any program run by the same user can read those files. This includes editors, scripts and, increasingly, AI agents that run commands and modify projects on their own.
The credsd changes this setup. According to the announcement, it works like this:
- the service (
credsd) stores long-lived credentials and issues temporary credentials when a compatible application requests them; - a client called
credshandles communication with the service; - the code is open source, under the Apache 2.0 license, and was first made available as a preview on December 1st.
The gain is reducing how often credentials circulate, since a leak would cause damage for longer.
The role of TPM 2.0
On Linux, the credsd can use TPM 2.0, a hardware security component that performs cryptographic operations. In this case, the key protecting the service's data is held by the hardware rather than sitting in an ordinary file. It's like keeping the vault key in another vault, instead of leaving it on the table.
There is an important catch: if the machine has no TPM, the encryption key is stored in a file on the system itself. Protection then depends on that file's permissions, and the separation is much weaker. Installing the tool therefore does not guarantee hardware-backed protection. Anyone testing it needs to check which mechanism is actually active.
Hiding a credential is not the same as limiting what it can do
This is the most useful point of the news for those who manage websites and servers. Preventing an AI agent from seeing the original key is good, but it doesn't solve the problem if the agent can still request a session with broad permissions. In that case, it can still do everything the developer can do.
There are two different layers:
- Secure storage: defines where the secret is kept and who can read it;
- Authorization: defines what that identity can do; in AWS's case, through IAM policies.
A well-stored credential with too many powers is still a risk. The practice of giving each person, script or agent only the permissions they need (the so-called least privilege) remains essential.
Who is affected and what to do
The tool is aimed at development workstations, not hosting servers. Still, it matters to those who maintain websites, stores and applications with AI assistance, or to agencies and resellers whose teams use AWS day to day. Points of attention:
- Don't use it in production for now. The native integration with the AWS CLI is still experimental, and AWS's own documentation advises against production use;
- Check the protection mode (TPM or file) before relying on the tool;
- Review the IAM permissions used in daily work and create more restricted profiles for automated tasks;
- Avoid leaving long-lived keys scattered across files, repositories and personal machines;
- Be wary of the content the agent reads. External text may carry malicious instructions (prompt injection) and lead the agent to do what no one authorized.
What about hosting?
The same logic applies to your infrastructure: access keys, API tokens and passwords should have the smallest possible scope and be rotated whenever exposure is suspected. If you want to strengthen this on your servers, check our server security page. For those who prefer to delegate routine maintenance, there is server management. For questions, talk to the Dataloft team.
Conclusion
The credsd is an interesting step for removing secrets from loose files, at a time when AI agents are gaining access to terminals and services. But it solves only half of the problem: storing the credential securely. The other half, limiting what it can do, remains in the hands of whoever defines the permissions.