Defining the criteria of security and privacy at the start of a project improves the understanding of risks associated with security issues and enables teams to identify and fix security bugs during development.
A project team must negotiate quality gates (for example, all compiler warnings must be triaged and fixed prior to code check-in) for each development phase, and then have them approved by the security advisor, who may add project-specific clarifications and more stringent security requirements as appropriate.