Declassified documents show Australia's top spy agency warned of improvised explosive attacks and mass transport threats.