A unit such as this[1] monitors the state of the lights and will not allow an "illegal" output such as "all green".
[1] http://www.orangetraffic.com/en/products/edi-mmu-16e-malfunc...
[1] http://www.orangetraffic.com/en/products/edi-mmu-16e-malfunc...
On the other hand, I've had an assignment a few weeks ago to make a circuit to control some traffic lights for crosswalk, and I'm pretty sure it was simple enough that the only way to hack it was to have direct access to it with a soldering iron.
Mind you, none of this is first hand.