Patrick McMullan via Getty Images

Ghislaine Maxwell collected a trove of sex tapes over the years that she plans to use in her defense of federal child sex trafficking charges.

The late financier Jeffrey Epstein, who hanged himself in a Manhattan jail cell last year, reportedly rigged his townhouse with 50+ cameras. He kept surveillance tapes of everyone in his home and everything that went on.

Arnaldo Magnani/Getty Images

Sources say world leaders, former and current presidents, Fortune 500 CEOs, and celebrities are on the tapes.

The former socialite from Great Britain plans to use her copies of Epstein’s pedophile tapes as an insurance policy against federal charges, a friend told London’s Daily Mail.

Maxwell, who was arrested last week at her million-dollar hideaway in New Hampshire, was transferred to a Brooklyn detention center on Monday.

She is on suicide watch while awaiting trial on four counts of sex-trafficking minors and two counts of perjury for allegedly acting as Epstein’s madam to procure children.

“The secret stash of sex tapes I believe Ghislaine has squirreled away could end up being her get-out-of-jail card if the authorities are willing to trade,” the source said. “She has copies of everything Epstein had. They could implicate some twisted movers and shakers. If Ghislaine goes down, she’s going to take the whole damn lot of them with her.”