Securing AI-Generated Code