WASHINGTON — President Trump has vowed a hiring surge of 10,000 immigration and customs officers to accelerate the deportation of unauthorized immigrants. But the aggressive pace he has laid out risks adding to the ranks of rogue agents who have been charged with abusing immigrants.

Over the past decade, dozens of Immigration and Customs Enforcement agents and contract guards responsible for the detention and removal of undocumented immigrants have been arrested and charged with beating people, smuggling drugs into detention centers, having sex with detainees and accepting bribes to delay or stop deportations, agency documents and court records show.

One agent took pictures of himself having sex with a minor in a foreign country after dropping off deportees. In another case, an ICE lawyer pretending to be an immigration judge took bribes to remove official documents from the files of people awaiting deportation.

These officials make up a small fraction of the work force at the agency, now comprising almost 20,000 people, but former Homeland Security officials and human rights workers say that even a few bad officers can be a problem because they hold such power over a vulnerable population.