
State of Code Security report

Code security for software engineers
Topic 7 of 14
Published Nov 26, 2025 · Clip 29:29–33:30 (4:01)
Johannes describes Sonar's State of Code Security report, based on 8 billion lines of code written by 1 million developers across 40,000 organizations. Key findings: roughly one security issue per 1,000 lines of code, with the top issue types being the classic basics—log injection, XSS, SQL injection, hardcoded passwords—plus a surprise prevalence of slow or insecure regular expressions that enable denial-of-service. He discusses how lines of code relate to security: more code means more to review and harder-to-spot issues, and argues code quality is deeply and underratedly connected to security, since unreadable spaghetti code hides security problems in reviews and makes fixes slower, extending the attacker window—especially problematic with low-quality AI-generated code.