What happens if Australia is being attacked?

What happens if Australia is being attacked?

The government should have the power to respond to emergency situations, for example a direct attack on an Australian territory.