~/talk

Snow Nor Rain Nor Dependency Confusion: How to...

Talkat BSidesSF 2024 · 2024-05-04..05-05· [security, software-architecture]
links:none on file
slides:none on file

Used an automated confused script to scan internal repos and find 984 npm packages vulnerable to dependency confusion, then target a non-blocking lint package, publish a malicious npm package, and refine it after a naive build is flagged: payload encryption keyed to a company-wide config file hash, deployment to npm nets about 20 shells, persistence via cron, mTLS Python C2, exfiltration of SSH keys and a GitHub PAT, and a pushed proof-of-concept commit. Mitigations tested include placeholder packages, artifactory exclude rules, priority resolution, scopes, and version pinning.

AI-written summary · about

  1. 0:00Introduction and speakers
  2. 1:23What is dependency confusion
  3. 5:59Why npm is the primary target
  4. 6:22Planning the red team operation
  5. 8:30Building the malicious package
  6. 9:54Execution and results of the attack
  7. 13:21Fixing the vulnerability retroactively
  8. 17:38Placeholder packages as a quick fix
  9. 18:00Requiring npm scopes for packages
  10. 20:08Artifactory exclude rules
  11. 22:14Artifactory priority resolution
  12. 24:42Other mitigation strategies
  13. 25:26Q&A session
~/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.