Defense against code injection attacks in intelligent transportation system