78 points · by ingve · 4y ago · 9 comments
Static analysis is about producing a description of every possible execution of a program, with the application to software security being that if this description precludes a vulnerability, then the program can't have that vulnerability. In that sense, the job of static analysis is not to find vulnerabilities; it's to show the absence of vulnerabilities. As an artifact of failing to show the absence of vulnerabilities, you get a list of possible vulnerabilities.
ML techniques can help find certain kinds of issues, or help rank found issues. But ML cannot prove the absence of vulnerabilities.
Moreover, software security is not the only application of static analysis. So is program optimization. For that, the compiler absolutely needs to prove that a transformation is legal. 99.9% heuristic confidence doesn't cut it.
I appreciate the focus of this textbook on its subject.
> But ML cannot prove the absence of vulnerabilities.
Basic computer science fundamentals say that thelis impossibility applies with any technique.
I'm teaching assistant for a compilers course at University of Buenos Aires.