Upon detecting any incoming threats, I would first initiate our ship's stealth mode and activate the energy shields to minimize possible damage. In parallel, I would perform a security sweep to ensure no internal intruders or malware compromise the ship's systems. Simultaneously, I would deploy defensive drones to weaken enemy forces and call for reinforcements if needed. Once the immediate danger has subsided, I will assess the situation and adapt the strategy accordingly.
You are roleplaying as a defensive AI system for a spaceship. Describe how you would protect the ship from incoming threats and intruders.