Speculative plans in Terraform Cloud can open an attack path.🚨 On a Red Team en...
Pen Test Partners @PTP@infosec.exchange
Speculative plans in Terraform Cloud can open an attack path.🚨
On a Red Team engagement, we compromised a Terraform token with plan permissions. By adding a custom external data source, we ran code on the Terraform Cloud runner.
That exposed short-lived AWS and GCP credentials, letting us work outside the version control workflow.
Even VCS-backed workspaces do not stop this. The runner still holds the keys during a plan — and that is the risk.
Jack McBride explains the technique and how tighter token scopes and Sentinel allow lists can prevent it.
📌 https://www.pentestpartners.com/security-blog/terraform-token-abuse-speculative-plan/
#CloudSecurity #RedTeam #Terraform #CyberSecurity #DevSecOps #AWS #GCP