Washington — The Justice Department announced on Friday it had charged a Russian woman who prosecutors say conspired to interfere with the 2018 U.S. election, marking the first criminal case that accuses a foreign national of interfering in the upcoming midterms.

Elena Khusyaynova, 44, was charged with conspiracy to defraud the United States. Prosecutors said she managed the finances of “Project Lakhta,” a foreign influence operation they said was designed “to sow discord in the U.S. political system” by pushing arguments and misinformation online about a host of divisive political issues, including immigration, the Confederate flag, gun control and the National Football League protests during the national anthem.

The charges against Khusyaynova came just as the Office of the Director of National Intelligence warned that it was concerned about “ongoing campaigns” by Russia, China and Iran to interfere with the upcoming midterm elections and the 2020 race — an ominous message just weeks before voters head to the polls.

Prosecutors said the sophisticated campaign of which Khusyaynova was a part “did not exclusively adopt one ideological viewpoint,” but instead tried to push incendiary positions on various political controversies on social media platforms. The Russians involved, prosecutors said, created fake personas and spread their divisive messages on Facebook, Twitter and Instagram. The group attempted to sow conflict along racial lines and sometimes advocated directly opposing positions, apparently agnostic to whom they supported so long as it turned Americans against one another, prosecutors said.

For example, in relaying how to discuss an August 2017 story about special counsel Robert Mueller, one member of the conspiracy said Mueller should be termed “a puppet of the establishment” whose work was “damaging to the country.” But later that year, another member of the conspiracy tweeted, “If (Donald) Trump fires Robert Mueller, we have to take to the streets in protest. Our democracy is at stake.”

The group took similarly cynical positions on U.S. politicians. While one account said President Trump “deserves a Nobel Peace Prize” for agreeing to meet with North Korean leader Kim Jong Un, another predicted Trump “might not even be president by then.” One tweet encouraged voters to donate to a political action committee aiming to unseat Democratic Sens. Tammy Baldwin, of Wisconsin; Claire McCaskill, Missouri; and Elizabeth Warren, of Massachusetts; as well as Democratic House Minority Leader Nancy Pelosi, of California.

Those involved in the conspiracy, prosecutors said, would analyze U.S. news articles and advise how to draft messages about those stories. For example, members of the conspiracy advised that Sen. John McCain, who now is deceased, should be branded “an old geezer who has lost it,” and House Speaker Paul Ryan, R-Wis., should be portrayed as “a complete and absolute nobody.”

“The strategic goal of this alleged conspiracy, which continues to this day, is to sow discord in the U.S. political system and to undermine faith in our democratic institutions,” said Zachary Terwilliger, the U.S. Attorney for the Eastern District of Virginia.

Facebook, which owns Instagram, said in a statement, “Combating election interference is a task that requires cooperation from government and private industry. Twitter declined to comment. The messages spread widely on the platforms; prosecutors say one Facebook page reached over 1.3 million people, while several of the Twitter accounts had tens of thousands of followers.

The conspiracy did not seem to include any outright hacking efforts. In a statement, the ODNI said officials “do not have any evidence of a compromise or disruption of infrastructure that would enable adversaries to prevent voting, change vote counts or disrupt our ability to tally votes in the midterm elections.” But the statement noted: “We are concerned about ongoing campaigns by Russia, China and other foreign actors, including Iran, to undermine confidence in democratic institutions and influence public sentiment and government policies. These activities also may seek to influence voter perceptions and decision making in the 2018 and 2020 U.S. elections.”

The statement, which was joined by the Justice Department, FBI and Department of Homeland Security, came on the eve of a trip national security adviser John Bolton is making to Moscow, where he is expected to raise the issue with his counterparts.

A Russian Foreign Ministry spokeswoman didn’t respond to a request for comment.

Court papers say Khusyaynova’s operation was funded by Russian oligarch Yevgeniy Prigozhin, an associate of Russian President Vladimir Putin who is known as “Putin’s Chef,” and two companies he controls: Concord Management and Consulting, and Concord Catering. A federal judge in the District of Columbia this week expressed reservations about the special counsel office’s prosecution of one of Prigozhin’s companies, and directed Mueller’s prosecutors to provide a more detailed response to the company’s bid to dismiss the central charge.

A criminal complaint filed against Khusyaynova charges that she managed the finances of Project Lakhta, including detailed expenses for activities in the United States.

Between 2016 and 2018, Project Lakhta’s proposed operating budget exceeded $35 million, although only a portion of that money targeted the United States, prosecutors said.

Lakhta is the name of a neighborhood in St. Petersburg near the location of the longtime office of the Internet Research Agency, a Russian troll farm which has been the focus of special counsel prosecutors. The company moved to an office building in the neighborhood called Lakhta-2 last winter, according to Russian news reports.

Investigating Russian interference in U.S. elections largely has been the purview of Mueller, though his probe is focused on the 2016 election and the Trump campaign. So far, his office has charged a dozen Russian military officers with hacking Democrats’ computers, as well as 13 people and three companies that his prosecutors allege ran an online propaganda operation to push voters away from Hillary Clinton and toward Donald Trump in 2016.