Security vulnerabilities are a given and can exist for more than 10 years before they're discovered. Here are AppSec best practices.