~/talk

logger.info(f"Don't Give all your {secrets} away")

Talkat PyCon Israel 2024 · on Monday, 2024-09-16· [security, python]
links:none on file
slides:none on file

A developer-turned-researcher describes an open-source Python solution that replaces the logging formatter to mask secrets at runtime, using GitLeaks rules parsed into a prefix filter and an Aho‑Corasick automaton to choose which regexes to run. The tool masks found secrets with a fixed-length star string, enforces a per-line timeout to avoid regex DoS, and shows a measured ~16% runtime penalty in exchange for preventing accidental leaks.

AI-written summary · about

  1. 0:00Introduction of speaker
  2. 0:31Real-world leak example
  3. 1:34Why developers love logs
  4. 2:15Purposes of logging
  5. 4:07Live code vulnerability demo
  6. 5:33Hidden secrets in objects
  7. 6:17Limitations of static scanners
  8. 7:23Log system access risks
  9. 8:09Introducing MaskLogger tool
  10. 8:30Live MaskLogger demo
  11. 9:36How MaskLogger works
  12. 10:42Behind the scenes details
  13. 13:13Aho-Corasick algorithm
  14. 14:18Runtime masking process
  15. 15:07Performance impact
  16. 15:52Security against DoS
  17. 16:34Masking secret lengths
  18. 17:16Key takeaways
  19. 18:03Q&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.