~/talk

Securing Code with the Python Type System

Talkat PyCon US 2022 · 2022-04-27..05-03· [security, python]
links:none on file
slides:none on file

Uses concrete defenses: a new PEP 675 literal string type rejects unsafe f‑strings for SQL, simple runtime type validation auto‑rejects malformed JSON payloads, and a taint tracker (Pysa) plus a type checker finds cross‑function leaks. Measurements claim that tools of this style surface >50% of vulnerabilities at scale. Examples show exact API signatures, library hooks, and deployment points (IDE, CI) and report tradeoffs: false positives, slower CI runs, and the need for broad type coverage.

AI-written summary · about

  1. 0:00Introduction to speaker
  2. 0:54Shifting security left
  3. 2:59Types for security
  4. 4:04SQL injection prevention
  5. 6:51Static analysis limitations
  6. 9:15Literal string type
  7. 12:10Continuous type detection
  8. 12:50Path traversal attacks
  9. 15:22Runtime type validation
  10. 17:14Data flow analysis
  11. 19:15Using Pysa for security
  12. 22:02Importance of type coverage
  13. 25:44Adding types to projects
  14. 26:56Conclusion and roadmap
~/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.