In a recent episode of Application Security Weekly, Matias Madou, CTO at Secure Code Warrior, tackled a pressing question in modern software development: does it matter whether code is written by a human or an AI?
As large language models (LLMs) and AI agents increasingly generate and review code, the traditional focus on human error in security must expand. Madou argues that while AI is a powerful new tool for developers, it introduces unique challenges for ensuring secure outcomes.
One key issue is benchmarking. How do we measure the security of AI-generated code? Existing metrics for human-written code may not apply. Madou suggests that we need new ways to evaluate AI outputs, such as looking at the rate of vulnerabilities injected versus those caught by AI code reviewers.
Another challenge is design. AI often focuses on generating functional code, but security must be baked into the design from the start. Humans still excel at understanding context and threat modeling, skills that are critical for secure design.
Madou also highlights the economic angle: AI can speed up development, but if it introduces more vulnerabilities, the cost of fixing them later could outweigh the initial gains. He emphasizes that human critical thinking remains indispensable.
Ultimately, the conversation underscores that provenance matters. Knowing whether code came from a human or an AI—and having processes to verify its security—is vital. As AI becomes more embedded in the software lifecycle, security teams must adapt their strategies accordingly.
The episode, part of the 387th installment of Application Security Weekly, is available for streaming on YouTube.