~/talk

Attacking and Defending Infrastructure with Terraform...

Talkat BSidesSF 2022 · 2022-06-04..06-05· [infrastructure-as-code, security]
name:Mike Ruth
links:none on file
links:none on file
slides:none on file

Demonstrates that Terraform Cloud/Enterprise speculative plans let a PR read workspace variables and state so attackers can exfiltrate secrets and harvest credentials; the over‑privileged terraform run token lets any workspace fetch other workspaces’ state; an apply-on-plan bypass enables unmerged PRs to perform applies, write resources and access worker files and cloud metadata to escalate to admin. HashiCorp ships reduced token scopes and a security model; authors automated the three exploits and show mitigations (disable speculative plans, tighten VCS approvals) but gaps remain.

AI-written summary · about

  1. 0:00Introduction to Terraform
  2. 1:11Terraform basics and internals
  3. 4:38Access control and permissions
  4. 5:51Secure architectural workflow
  5. 9:09Security findings overview
  6. 10:03Finding 1: Secret exfiltration
  7. 12:06Finding 2: State exfiltration
  8. 13:34Finding 3: Apply on plan bypass
  9. 17:15Demo architecture setup
  10. 18:36Demo: Secret exfiltration
  11. 19:39Demo: State exfiltration
  12. 20:39Demo: Apply on plan bypass
  13. 21:42Remediations and mitigations
  14. 24:25Security model discussion
  15. 26:44Mitigating state exfiltration
  16. 29:15Challenges in remediation
  17. 30:27Proposed secure architecture
  18. 32:40Future improvements
  19. 33:41Conclusion and takeaways
  20. 35:13Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.