General order 8
From FEInfobase
Upon sighting a warship within Federation space and identifying it as belonging to a foreign power, the commander of the Starfleet vessel shall determine the reason(s) for that craft's presence in the vicinity. If there is conclusive evidence that the vessel has hostile intentions, the Federation vessel may take appropriate action to safeguard the lives and property of Federation members. In such cases, the commander may use his discretion in deciding whether to use force to disable the hostile vessel. However, care should be taken to avoid unnecessary loss of sentient life.