~/talk

Hacking with Gems

Talkat Aloha RubyConf 2012 · 2012-10-08..10-09· [ruby]
slides:none on file

Shows concrete malicious gems: awesome Rails flash messages exfiltrates cleartext emails and passwords to a web service and writes them into public development.log; net_http_detector logs outbound posts and evals remote code to add a DB console giving full ActiveRecord shell; a compiled C extension creates assets.tar.gz of app source; be_truthy runs a rake extension at gem install to steal sudo passwords, enable SSH and create backdoor users. Six installs, ~3.8% adoption; use gem fetch/unpack, Little Snitch, FSEventer, or private gems to detect.

AI-written summary · about

  1. 0:00Start
  2. 2:31what's in my app?
  3. 5:02development.log
  4. 6:11show me the hack
  5. 6:35how it works
  6. 7:17database what?
  7. 7:43hello db access!
  8. 8:07Little Snitch
  9. 9:12what it claims to do
  10. 9:55better_date_to_s.bundle
  11. 10:18behind the curtain
  12. 11:15truth time
  13. 11:50what it does
  14. 12:42file tree looks ok
  15. 13:30run the what file?
  16. 14:02there is no Rakefile
  17. 14:43gem fetch vs gem install
  18. 15:22the real file tree
  19. 16:32fseventer
  20. 19:30back to the truthy_gem
  21. 21:31being popular sucks
  22. 24:23usernames
~/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.