TLDR InfoSec · STRATEGIES & TACTICS

WRITING MORE SECURE CODE WITH LLMS: WHY "MAKE NO MISTAKES" FALLS SHORT

links.tldrnewsletter.com13 min read

Summary from the TLDR InfoSec newsletter

Generic security prompts and OWASP-style checklists failed to improve AI coding security and occasionally increased the frequency of high-severity bugs when the Monad Foundation engineering team tasked an assistant with writing secure code for a URL unfurler. Utilizing an expert prompt that incorporates a specific application threat model reduced validated security findings by approximately 43 percent. Defenders must replace generic checklists with expert prompts incorporating specific application threat models to harden AI-generated code.