~/talk

Building Secure ReactJS Apps: Mastering Advanced Security Techniques

Talkat GOTO Copenhagen 2024 · 2024-09-30..10-04· [react, security]
slides:none on file

Shows how AI prompt engineering produces secure React code: capture precise rules, feed them to models, iterate until prompts enforce low cyclomatic and cognitive complexity and high cohesion. Demonstrates finishing a yearlong project in a week using four AI engines and specific secure prompts. Covers concrete defenses: sanitize HTML with DOMPurify, validate URLs to https and deny javascript: schemes, use CSS Escape for styled-components, serialize embedded JSON instead of JSON.stringify, avoid dangerouslySetInnerHTML, and scan deps with retire.js and npm audit while using ESLint.

AI-written summary · about

  1. 0:00Intro
  2. 2:28Agenda
  3. 3:11AI secure code generation lifecycle
  4. 7:03What is React & what are the top security domains
  5. 8:31R1: Cross site scripting
  6. 11:47React security domains
  7. 11:58R1: XSS
  8. 16:48R2: Dangerous URLs
  9. 20:54R3: Rendering HTML
  10. 23:56R4: Securing JSON
  11. 25:49R5: Dangerous styles
  12. 27:47R6: Insecure native DOM access
  13. 30:04R7: Access control & exposed failures
  14. 35:35R8: Vulnerable & outdated versions & dependencies
  15. 37:43R9: Open redirects
  16. 39:09R10: Insecure server-side rendering
  17. 40:32Demo
  18. 42:16Outro
~/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.