~/talk

One-Click Code Fix: Securing Code Using AI

Talkat BSidesSF 2024 · 2024-05-04..05-05· [security, ai-assisted-development]
links:none on file
links:none on file
slides:none on file

Demonstrates an internal pipeline that uses GPT-4 with zero/single/few-shot prompts and a chain-of-thought prompt pattern to auto-generate fixes, targeting mostly same-file injection bugs; a Slack agent and CLI agent create PRs (demo shows ~25 seconds to PR). Finds high false positives when scanning whole repos, Hallucinations unless output schema and library imports are explicit, and complex cross-file bugs fail. Evaluation uses a LangChain scoring evaluator against a golden dataset and keeps humans as final gatekeepers.

AI-written summary · about

  1. 0:00Introduction to AI code fixes
  2. 1:05Traditional vulnerability detection
  3. 2:11AI approaches for finding vulnerabilities
  4. 3:14Traditional vulnerability fixes
  5. 4:18Why build your own AI solution
  6. 5:47Solution journey and challenges
  7. 7:55Zero-shot prompt engineering
  8. 9:22Single-shot and few-shot methods
  9. 11:51Chain of Thought method
  10. 13:37Limitations and reality check
  11. 15:42Metrics and evaluation
  12. 18:11Demo of AI code fixing
  13. 19:48Conclusions and takeaways
  14. 24:05Q&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.