A legal challenge that saw Christian Porter's lawyer removed from his defamation case against the ABC could cost him and his former barrister up to half-a-million-dollars.

The former attorney-general took action against the ABC over a story about an unnamed cabinet minister accused of an alleged historical sexual assault.

Mr Porter later revealed himself to be the subject of the allegations but denied any wrongdoing.