The homepage to Silk Road 2.0, a second iteration of the black market website, after it was seized by U.S. authorities on Nov. 6, 2014.

Two former federal agents are in custody and facing charges of stealing money while investigating the underground drug website Silk Road, according to court documents.

Carl Mark Force IV, who served 15 years with the Drug Enforcement Agency, and Shaun Bridges, who worked for the Secret Service for six years, are facing federal charges of wire fraud and money laundering. Force is also facing charges of theft of government property and conflict of interest, according to the affidavit filed in the U.S. District Court in San Francisco.

From 2012 to 2013, the pair worked on an investigation in Baltimore into Silk Road, a website described in the affidavit by Internal Revenue Service Special Agent Tigran Gambaryan as "an underground black market that allowed vendors and buyers to conduct illegal transactions over the internet."

Bridges, 32, served as a computer forensics agent during the investigation, Gambaryan said, while Force, 46, served as the lead undercover agent and communicated regularly with the site's lead administrator, Ross William Ulbricht, who used the online alias "Dread Pirate Roberts." Ulbricht, 30, was found guilty last month and is awaiting sentencing.

"Force and Bridges abused their positions as federal agents and engaged in a scheme to defraud a variety of third-parties, the public, and the government, all for their own financial enrichment," Gambaryan said in the affidavit.

Force was arrested on Friday in Baltimore, while Bridges self-surrendered to police in San Francisco on Monday.