Transponders in a ship send out a small signal identifing the ship's "alignment." You can change the transponder setting while on the bridge of the ship.
You must be a scientist or slicer of 9th level to perform this feat. Smugglers of level 17 can change the transponder of freighters. Level 17 diplomats can change a ship's transponder to "diplomatic".