The reason why the pax had to stay on board is because there was no security staff available in the terminal until 4am which by the way is a contracted security company for Qantas.
p1ss poor excuse! If having already screened pax going into the sterile area was such a concern, what was wrong with getting them off the aircraft by other means and escorting them landside via the Qlink or other exit?