Australian intelligence agencies warned of infiltration by terrorists