Security of Distributed Cyber-Physical Systems with Connected Vehicle Applications