Considered the anti-fox (I think) water sprays that are set to spray on motion?
There should be a cheap technology solution to this. E.g. a motion sensor tripping some wild and noisy commotion underneath the car, a la home alone. Surely no rat would want to be around unpredictable motion, light...