All unknown helicopters and subs are automatically hostile. Any unknown ships with unknown airborne craft departing it are hostile as well. this does not apply for unknown ground targets unless the aircraft is hostile or a missile.
Make sure to always keep your carrier loaded with planes. Alert 5 works well with this. The planes go on deck but do not launch until the order is given. These fighters can destroy anything when ready.