Work in/ at or for the Ministry of [something]
"At" refers to place, so working at the Ministry of Justice could mean being a contract cleaner there, rather than someone actually employed by the ministry. Working for something or somebody definitely means you are ...