@bagder "AI can be used to do good." is a statement that lacks meaning without clarifying what "AI" means, and that excuses all sorts of other things under the umbrella of "AI" that fundamentally cannot be used for good. Because "AI" is and always has been a strategically vague marketing term not a technical category.
It's likely that statistical models of source code correlated with vulnerabilities can be used for good. I don't think they can be built without massive scale license infringement enclosing the commons, nor lots of other types of harm.