AWS IAM role impersonation to HashiCorp Vault vulnerability
This is why I’m so paranoid about using third party services that have such sensitive information. It just adds a whole other threat vector.
To be fair (and, if i recall correctly) Vault existed before Secrets Manager or Parameter Store by several years.
There’s hardly a better place or better service for storing a secret than hashicorp vault.
There is a missing AWS feature for vending ‘dynamic secrets’ like vault does.
That not withstanding, choosing the right secrets manager is a critical infrastructure decision.
This doesn’t really add a vector - it shifts one. I’ll take this over hardcoded secrets any day…
If AWS offered a similar solution it’d still be down to their implementation - but they really don’t IMO for outside AWS
I’m not really familiar with this space at all. What do you mean by “dynamic secrets”? Just going by the name I’d expect to be able to use AWS Secrets Manager but I don’t really know what it supports or what it’s missing.
What does vault offer that secrets manager does not?
I’m not really familiar with this space at all. What do you mean by “dynamic secrets”? Just going by the name I’d expect to be able to use AWS Secrets Manager but I don’t really know what it supports or what it’s missing.
Edit: from some of your other recent comments I guess you’re talking about temporary tokens? I guess that’s something you could probably build using KMS without too much trouble (like encrypting a nonce and timestamp) but I can see how it would be nice to have as a built-in without worrying about getting it wrong, or to also be able to support revocation.
Beyond just temp aws creds, but thats the idea. Dynamic secrets is the hashicorp marketing term for keeping long lived secrets hidden and vending short lived secrets.
Like storing an issuing CA private key in vault and vending short lived tls server/client certs. Or hosting a private RSA/EC key for signing jwt tokens, vault can vend the the signed token without revealing the private key.
I wouldn’t be surprised to see aws try to compete a bit with hashicorp here, they do have ACM private cert authority but at least at launch when I demo’d it was missing a fine grain entitlement.
Also I don’t work for hashicorp, I’m just a nerd.
There’s a difference of mentality as well. With Vault you vend short lived secrets. With Secrets Manager, you rotate secrets accessed by applications directly.
One is a simpler model, the other gives you more flexibility.
I was thinking about that on the way home, and in some projects we took that approach .Secrets manager lambda talked to our issuing CA and got short lived cert, and dumped it in secrets manager for other processes to pick up later. In this case we also used ACM PCA.
The AWS native solutions like RDS, Dynamo etc all support IAM. That uses short term session creds similar too what your describing.
It doesn’t work for self hosted on ec2 solutions, but can cover a lot of ground.
For people who only read the headline or skip the intro:
Both vulnerabilities (CVE-2020-16250/16251) were addressed by HashiCorp and are fixed in Vault versions 1.2.5, 1.3.8, 1.4.4 and 1.5.1 released in August.
Lots of integration with other services (databases, cloud providers…), various non-AWS authentication backend, K8s integration
Importantly, this problem likely impacts other software that perform presigned GetCallerIdentity calls to authenticate to non-AWS services as this general concept, and likely code, has been copied by other projects for this use case.
All of this is why, yeah.