~/talk

Practical Static Analysis for Continuous Application Security

Talkat AppSecUSA 2016 · 2016-10-11..10-14· [security, developer-experience]
slides:none on file

Claims that targeted static analysis is cheap to build and automatable: small grep-based rules or a bash/Ruby script that diffs changed files can flag a specific bug (calls to get_survey with only one arg missing user_id). Moving to AST-based checks (Ruby parser, a JS AST walker, or Bandit for Python) yields precise matches. Examples include custom Brakeman / Bandit plugins or simple scripts that exit non‑zero to fail CI; these approaches run fast and integrate with PRs.

AI-written summary · about

  1. 0:00Intro
  2. 0:24Continuous Security
  3. 1:23Practical Static Analysis
  4. 1:41Why Static Analysis?
  5. 3:24Tool Cycle
  6. 8:07Enforce the Solution
  7. 8:54Automate Enforcement
  8. 9:28Continuous Integration
  9. 10:03Code Review
  10. 10:37Deployment Gate
  11. 11:13Separate Process
  12. 11:51Local Tests/Git Hook
  13. 13:391 - Identify a Problem
  14. 13:582 - Identify a Solution
  15. 14:31Regular Expressions
  16. 15:23Desired Flow
  17. 15:54Bash
  18. 16:25git diff --name-status
  19. 17:20Multiple Rules
  20. 17:37Create a Rule
  21. 18:05Base Rule Class class Rule
  22. 18:54Code to Run It
  23. 20:10False Positives
  24. 20:52False Negatives
  25. 21:32Compilation vs. Static Analysis Input Program Text
  26. 23:46S-Expressions
  27. 24:09Ruby (RubyParser)
  28. 24:51Python (Astroid) AstroidBuilder().string_build( get_survey(survey_id))
  29. 25:53JavaScript (Esprima)
  30. 26:42Bandit Custom Rule import bandit from bandit.core import test properties as test
  31. 28:31Bandit Custom Warning
  32. 28:58Brakeman Custom Check
  33. 29:59Brakeman Custom Warning
  34. 30:43Walking Esprima AST
  35. 32:35Walking RubyParser AST
  36. 33:40Summary
  37. 35:14Thank you
~/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.