~/talk

How to stop the ‘Gradle Snatchers’: Securing your builds from baddies

Talkat Droidcon London 2023 · 2023-10-26..10-27· [security, devops-and-delivery]
slides:none on file

Shows how Gradle dependency verification actually works: generate verification-metadata.xml, use SHA-256 checksums and PGP signatures to catch impostors like the 2018 “fake Wharton” JCenter packages that injected code, and use repository filtering to force origins (requires Gradle 7+). Explains verifying the Gradle wrapper and distribution via distributionSha256Sum, points to GitHub Actions or a CI script to scan the ~3 million wrapper jars on GitHub, and recounts a Minecraft incident where a modified wrapper jar backdoored CI to get server root access.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:31Supply chain attacks overview
  3. 4:43Gradle’s evolution and history
  4. 5:03Confusing dependency story
  5. 9:12Verifying dependencies in Gradle
  6. 16:54Signature verification for provenance
  7. 20:22Pros and cons of dependency verification
  8. 21:46Repository filtering in Gradle
  9. 25:35First Gradle wrapper exploit story
  10. 29:32Verifying Gradle wrapper integrity
  11. 31:57Verifying Gradle distribution
  12. 34:03Checking Gradle W file security
  13. 35:27Summary and recommendations
  14. 36:30Additional resources and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.