WASHINGTON — A Russian gun-rights activist admitted Thursday that she was a secret agent for the Kremlin who tried to infiltrate conservative U.S. political groups as Donald Trump rose to power.

Maria Butina, 30, agreed to plead guilty to a conspiracy charge as part of a deal with federal prosecutors.

"Guilty," Butina said in a slight accent when asked how she wanted to plead. Dressed in a green jail uniform with her red hair pulled into a long ponytail, Butina spoke softly and mostly kept her eyes on the judge.

The Butina case has provided a vivid glimpse into Russia's influence operations in the United States at a time when the U.S. intelligence community has determined that Russia was trying to help elect Trump by releasing emails stolen from Democrats and conducting a social media campaign in an attempt to sow political discord.

The case also lays bare how Russia tried to exploit one of the most sensitive social issues in the U.S. — gun control — to gain access to the political sphere.

Prosecutors say Butina and her Russian patron, Alexander Torshin, used their contacts in the National Rifle Association to pursue back channels to American conservatives during the 2016 campaign, when Trump, a Republican, defeated Democrat Hillary Clinton.

Court documents detail how Butina saw the Republican Party as prime for Russian influence and courted conservatives through networking and contacts with the NRA. She posed for photos with prominent Republicans, including former presidential candidates, and snagged a picture with Donald Trump Jr. at a 2016 NRA dinner.

As part of her deal, Butina pleaded guilty to a single charge of conspiracy to act as an unregistered foreign agent and she agreed to cooperate with investigators.

The case is separate from special counsel Robert Mueller's investigation into Russian meddling in the 2016 U.S. presidential election.

Prosecutors say it is "very likely" Butina will be deported after her sentence is completed. The charge carries a maximum sentence of five years in prison, though the defense noted Thursday that federal sentencing guidelines recommend no time to six months. She has been jailed since her arrest in July.

According to her plea agreement, Butina's work was directed by Torshin, a former longtime member of the Russian parliament who until recently was an official in Russia's central bank. He is now under sanction by the Treasury Department for his ties to Russian President Vladimir Putin.

Butina acknowledged she "sought to establish unofficial lines of communication with Americans having power and influence over U.S. politics," according to the plea agreement. She admitted that her boyfriend, conservative political operative Paul Erickson, helped her as she tried to use his ties with the NRA to set up the back channels. Erickson, who is referred to as "U.S. Person 1" in court papers, has not been charged. His attorney said he is a good American who "has done nothing to harm our country and never would."

In a 2015 proposal she crafted with Erickson's help, Butina argued it was unlikely Russia would be able to exert influence using official channels and, as an alternative, suggested using back channel communications to build relationships with Republicans, according to court papers.