Towards Safe And Equitable Intelligent Transportation Systems: Leveraging Stochastic Control Theory In Attack Detection