I was out of fuel and requested assistance from a Heavy Shuttle trading back and forth between Earth and Mars. It agreed (for free) but then turned hostile and carried on its merry way. Whenever it stopped at a planet it would turn blue again but as soon it left it was back to red.
-
Do you have the Salvaging Goverments plug in? That might do it.
-
I have a similar problem where sometimes when I arrive in a Federation system, there will be a Federation Viper that will instantly be angry at me and then jump out of the system. At times, this has set off chain reactions that get all Federation ships angry at me, or calls in defense fleets (though usually it'll just be the one Viper, and any other Fed ship in the system will just act normal.)