I'm trying to make a circuit in my car that emulates a CD/MD changer device to the radio so these can be chosen as audio source and switched to. Everything works great, but one problem is that the arduino can get its power backfed from D2, D3, D4 which go to the radio through 3 100 ohms series resistors. The connector that goes into the radio is $P1 to $P8 in the sch below, VCC comes from $P4 and GND from $P5. All the data signals are bidirectional, so a simple diode won't work.
I've seen solutions which use a low-side switch triggered by the 12V pin being powered, but in a car, the 12V stays on when the car isn't running, so I don't think that would work.
I could route one of my headlight or parking light +12V to only power from second contact onwards, but I'd rather not have my lights break due to what I'm doing on the radio.
How can I prevent the backfeeding from happening?
I guess the way forward would be to only power the circuit when the car is running, but a high-side switch would not prevent backfeeding and a low-side I'm not sure about.

