The government has warned Australians in Iraq of a possible Iran-linked attack in the next 24 to 48 hours.