If that is possible then shouldn't it also be possible to ask the AI to find and code remediation to the vulnerabilities it found?
So AI could be used to find all possible code-vulnerabilities and then how to neutralize those? This would advance software security in general.
In other words AI could be used like a microscope discovering tiny defects in our software which are not visible to the naked eye. Like a microscope that detects viruses and thus allows us to guard against them. Like a COVID-test.