If they leave at all info about security patterns, you get an AI that knows how to code, but doesn't know what can make code insecure. That doesn't seem like a great idea.
I don't think you actually can avoid a subject very effectively. Some things might have to be derived from related examples and real time searches but ultimately a kid raised by helicopter parents is all the more dangerous on the day they find the censored materials.