What happened this week
On October 21, a malicious litellm==1.107.0 sat on PyPI from 11:39 to 13:23 UTC. Wiz's analysis says its stealer read AWS credentials from ~/.aws, from environment variables, and from instance metadata. Stolen credentials were being tested against AWS about four and a half hours after they left. LiteLLM's incident report tells anyone who ran it to rotate every secret on the host.
The next day Vercel published Death to long-lived static credentials. They surveyed more than 1,000 SaaS vendors and found 8.4% supporting secure authentication. From November 30, Marketplace vendors that rely on long-lived secrets get a "Not secure" label.
Short-lived credentials would not have stopped that stealer. The credentials Wiz saw abused were instance-role credentials, which are already temporary. What changes is how long a stolen credential stays useful. A role session expires in hours. A static access key works until someone notices and rotates it. Many credentials taken in the March LiteLLM compromise were still valid five months later.
What Wraps keeps for your AWS account
The ARN of a role in your account, and an External ID. Neither is a credential. The External ID is the confused-deputy guard AWS recommends for cross-account roles. We also keep a webhook secret that your EventBridge uses when it sends us delivery events. None of them can call AWS.
When the dashboard needs your SES, this is the whole chain:
- 1Our backend runs on Vercel. Vercel signs a short-lived OIDC token for the deployment.
- 2AWS exchanges that token for a session on a role in our account. That role has one permission:
sts:AssumeRole. - 3We assume
wraps-console-access-rolein your account with your External ID. AWS returns credentials that expire in one hour. - 4We keep them in memory for up to 50 minutes, then ask again. They are never written to a database.
The dashboard's production environment has no AWS access key in it. There is nothing there to leak and nothing for us to rotate.
Revoking is on your side. Delete the role, or the CloudFormation stack that created it, and our next AssumeRole call fails. You don't have to ask us or wait for a rotation.
Your app's path has no Wraps credential in it
The CLI has written this trust policy since November 2025. Run npx @wraps.dev/cli email init, pick Vercel, and it creates an OIDC provider for your Vercel team in your AWS account, plus a role that trusts one project:
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Principal": {
"Federated": "arn:aws:iam::123456789012:oidc-provider/oidc.vercel.com/acme"
},
"Action": "sts:AssumeRoleWithWebIdentity",
"Condition": {
"StringEquals": {
"oidc.vercel.com/acme:aud": "https://vercel.com/acme"
},
"StringLike": {
"oidc.vercel.com/acme:sub": "owner:acme:project:my-app:environment:*"
}
}
}]
}The aud condition pins the token to your team. The sub condition pins it to one project, across its environments. A token from another team, or from another of your projects, is refused by AWS. If you don't want preview deploys sending real mail, change environment:* to environment:production.
The SDK needs one environment variable. Set AWS_ROLE_ARN on Vercel and it trades the deployment's OIDC token for temporary credentials when it sends:
npm install @wraps.dev/email @vercel/oidc-aws-credentials-providerimport { WrapsEmail } from "@wraps.dev/email";
// AWS_ROLE_ARN=arn:aws:iam::123456789012:role/wraps-email-role
const email = new WrapsEmail();
await email.send({
from: "hello@acme.com",
to: "user@example.com",
subject: "Welcome",
html: "<p>Glad you're here.</p>",
});That send goes from your function to SES in your account. Wraps isn't in the request, so there's no Wraps credential involved.
Off Vercel, the SDK reads AWS_WEB_IDENTITY_TOKEN_FILE, so EKS and GitHub Actions work the same way with a role you trust yourself. On Lambda, ECS, and EC2, the CLI's role trusts the AWS service and the runtime hands out temporary credentials.
Where a static key still exists
Four places. The first three come from a protocol or a host that can't do token exchange, and in each one the key is minted in your account and shown to you once. The fourth is ours.
SMTP
An SES SMTP password is derived from an IAM access key. SMTP has no token exchange, so if you turn it on, the CLI creates an IAM user that can only call ses:SendRawEmail and prints the password once.
Hosts without OIDC
On hosts the CLI has no OIDC path for, such as Railway, the role trusts your own AWS account. You give an IAM user permission to assume it, and that user's key goes in your host's environment. The key lives in your account and your host, not with us.
Agent credentials
wraps email agent create mints an IAM user and key per agent. The key can only invoke that agent's own enforcer, so a leaked one acts as that one agent and nothing else. Wraps receives the user ARN, not the key.
Your Wraps API key
The Wraps API takes a wraps_ API key, which is a long-lived bearer token. A leaked one can do whatever the Wraps API does through your role, sending included, so treat it like any production secret. We store a SHA-256 hash of it, not the key, and you can delete it from the dashboard at any time.
If you send through SES today
Search your environment for AWS_ACCESS_KEY_ID. If the app runs on Vercel, the trust policy above replaces it, with or without Wraps. Create the OIDC provider and the role, then hand the plain AWS SDK Vercel's credentials provider. The default credential chain won't find the token on its own. Vercel's OIDC guide covers the IAM side by hand.
import { SESv2Client } from "@aws-sdk/client-sesv2";
import { awsCredentialsProvider } from "@vercel/oidc-aws-credentials-provider";
const ses = new SESv2Client({
region: "us-east-1",
credentials: awsCredentialsProvider({
roleArn: process.env.AWS_ROLE_ARN!,
}),
});Deploy, and confirm a send works on the role before you touch the old key.
If you'd rather not write the IAM yourself, npx @wraps.dev/cli email init does it in your account. The CLI is free and open source.
Then delete the key.
Continue reading
Nothing stored
An IAM role you can revoke from your side. The CLI creates it in your AWS account, with OIDC if you're on Vercel.

