A significant cyber attack on Australia or the US would trigger the ANZUS treaty, Joe Biden’s chief adviser on cybersecurity has said.