New AG risked security compromise: ex-PM