React AI
summary
Live demo across five frontier models (ChatGPT 5.1, Copilot, Claude, Grok, Gemini) shows raw AI output produces dangerous React patterns: unvalidated hrefs and dangerouslySetInnerHTML usage, missing URL validation, and unsafe event handlers; a single rule set applied as a system prompt fixes outputs to safe patterns using a validateAndSanitizeURL utility, DOMPurify, Zod and trusted types, converting failing samples to secure, idiomatic React 19.2 code and eliminating the one‑third JavaScript‑URL bypass risk.
AI-written summary · about
chapters (8)
- 0:00React AI introduction
- 16:22Live AI React code demo
- 23:26Why AI fails secure React
- 31:32Enterprise React with prompts
- 36:53Live secure React demo
- 42:48Building prompts for frameworks
- 53:28Maintainability metrics
- 58:09Summary and future
related talks
01h 00mSecuring React: Prompt Engineering for Robust and Secure Code Generation
43mBuilding Secure ReactJS Apps: Mastering Advanced Security Techniques
29mMaking AI better with React feat
31mHacking AI Applications
21mLet me show you how React applications get hacked in the real-world
44mAI Foundations: Mitigate Risks and Boost SOC Efficiency
46mBreaking AI: Live coding and hacking applications with Generative AI
54mA Practical Guide to AI Threats & Mitigation Strategies
