Harnessing AI-Driven Development, Without Compromising Security