>Just remove hacking (bio-weapon, etc.) data from the training dataset and you're done.
Reasoning about how to write secure software uses the same knowledge as reasoning about how to break/hack it.