Federal Court judge Tan Sri Idrus Harun has been appointed as the new Attorney General, replacing Tan Sri Tommy Thomas who resigned on February 28.