~/talk

Keeping Secrets: Lessons Learned From Securing GitHub

Talkat RubyKaigi 2025 · 2025-04-16..04-18· [security]
links:none on file
links:none on file
slides:none on file

A Rails view component uses an unvalidated dynamic call to send that allows zero-argument method dispatch; an attacker enumerates roughly 5,000+ then prunes to 3.6k methods and brute-forces names, finds two methods returning the entire process env, and extracts production secrets including session signing keys. The exposed Marshal-based cookie enables deserialization RCE. Fixes: replace send with guarded calls, restrict env passed to git subprocesses, remove the cookie, rotate secrets, and add scans (Brakeman, RuboCop, Semgrep, CodeQL).

AI-written summary · about

  1. 0:00Introduction and speakers
  2. 3:40Offensive journey discovery
  3. 13:33GitHub’s defensive response
  4. 23:41Code scanning and tools
  5. 24:02Managing secrets in Ruby
  6. 28:57Q&A and resources
~/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.