Are your parking lights on when this happens? When the car is off, does this still happen? On your brake pedal, there is a switch that activates the brakes. Its a pin switch. Check it to see if its properly working. There is something shorting into the brake light circuit.