Australia's spy boss has raised concern over the prospect for opportunistic violence as people protest the Israel Gaza war.