Securing Connected and Automated Vehicle through Proactive Vulnerability Analysis and Security Enhancement