Hillary Clinton Hillary Diane Rodham ClintonWhat Senate Republicans have said about election-year Supreme Court vacancies Bipartisan praise pours in after Ginsburg's death Trump carries on with rally, unaware of Ginsburg's death MORE argues in her forthcoming book that she "wasn't just running against Donald Trump Donald John TrumpObama calls on Senate not to fill Ginsburg's vacancy until after election Planned Parenthood: 'The fate of our rights' depends on Ginsburg replacement Progressive group to spend M in ad campaign on Supreme Court vacancy MORE," blaming a number of figures for her 2016 presidential defeat.

"I wasn’t just running against Donald Trump. I was up against the Russian intelligence apparatus, a misguided FBI director, and now the godforsaken Electoral College," Clinton wrote in "What Happened," according to a copy of the book obtained by NBC News.

The former Democratic presidential nominee took aim at former FBI Director James Comey, who had led the investigation into Clinton's use of a private email server during her time as secretary of State.

ADVERTISEMENT

"Mostly, I was furious at myself," Clinton wrote. "It was a dumb mistake. But an even dumber 'scandal.' "

"If not for the dramatic intervention of the FBI director in the final days we would have won the White House," Clinton added, referring to Comey's letter in October 2016 drawing fresh attention to the email probe.

Clinton also took aim at Sen. Bernie Sanders Bernie SandersKenosha will be a good bellwether in 2020 Biden's fiscal program: What is the likely market impact? McConnell accuses Democrats of sowing division by 'downplaying progress' on election security MORE (I-Vt.), who ran against her for the Democratic nomination.

"It was beyond frustrating that Bernie acted as if he had a monopoly on political purity," Clinton wrote, according to NBC, "despite giving short shrift to important issues such as immigration, reproductive rights, racial justice, and gun safety."

Sanders, a self-proclaimed Democratic socialist, attacked Clinton during the campaign as an establishment figure and as being sympathetic to large corporate enterprises and Wall Street investors.

Clinton also wrote that Russia's interference in the U.S. election through cyberattacks and propaganda was "roughly equivalent to a hostile super PAC unleashing a major ad campaign, if not worse," adding that Trump is "the perfect Trojan horse for [Russian President Vladimir] Putin."

Trump's campaign has been accused of colluding with Russia during the election, which is currently being investigated by special counsel Robert Mueller as well as by committees in the House and Senate.