Bill Hennessy
Now playing
03:04
Sources: Maria Butina bragged of Russian ties
Shutterstock
Now playing
02:34
Russia may hack our elections. Can we stop it?
US Homeland Security Secretary Kirstjen Nielsen speaks during press briefing on national security at the White House in Washington, DC, on August 2, 2018. - The US government on Thursday accused Russia of carrying out a "pervasive" campaign to influence public opinion and elections, in a public warning just months before crucial legislative elections. (Photo by NICHOLAS KAMM / AFP)        (Photo credit should read NICHOLAS KAMM/AFP/Getty Images)
NICHOLAS KAMM/AFP/Getty Images
US Homeland Security Secretary Kirstjen Nielsen speaks during press briefing on national security at the White House in Washington, DC, on August 2, 2018. - The US government on Thursday accused Russia of carrying out a "pervasive" campaign to influence public opinion and elections, in a public warning just months before crucial legislative elections. (Photo by NICHOLAS KAMM / AFP) (Photo credit should read NICHOLAS KAMM/AFP/Getty Images)
Now playing
01:59
WH says it's concerned about election meddling
Sen. Claire McCaskill, D-Missouri, testifies during a hearing of the Senate Health, Education, Labor, and Pensions Committee on July 29, 2015 in Washington.
Astrid Riecken/Getty Images
Sen. Claire McCaskill, D-Missouri, testifies during a hearing of the Senate Health, Education, Labor, and Pensions Committee on July 29, 2015 in Washington.
Now playing
02:52
McCaskill: Attempted hacking 'not successful'
The logo of French headquarters of American multinational technology company Microsoft, is pictured outside on March 6, 2018 in Issy-Les-Moulineaux, a Paris' suburb. / AFP PHOTO / GERARD JULIEN        (Photo credit should read GERARD JULIEN/AFP/Getty Images)
GERARD JULIEN/AFP/AFP/Getty Images
The logo of French headquarters of American multinational technology company Microsoft, is pictured outside on March 6, 2018 in Issy-Les-Moulineaux, a Paris' suburb. / AFP PHOTO / GERARD JULIEN (Photo credit should read GERARD JULIEN/AFP/Getty Images)
Now playing
01:24
Microsoft stops Kremlin-based hackers
McNamee/Dunham/Getty Images
Now playing
01:50
Trump deflects question over Russia indictments
Photo Illustration: Getty Images / Shutterstock / CNN
Now playing
02:47
US intel warns of Russian threat to power grid
CNN/File
Now playing
01:35
Microsoft exec: Russia already targeting 2018 campaigns
CNN
Now playing
01:14
Adam Schiff: Putin is ringmaster of conspiracy
Now playing
01:07
Video warns 2018 campaigns: Don't get hacked
Now playing
04:01
His part-time job is Russian troll hunter
CNN
Now playing
02:03
Paul: Putin will never admit to election hack
U.S. Deputy Attorney General Rod Rosenstein delivers remarks on "Justice Department Views on Corporate Accountability" during the The Annual Conference for Compliance and Risk Professionals at the Mayflower Hotel May 21, 2018 in Washington, DC. (Chip Somodevilla/Getty Images)
Chip Somodevilla/Getty Images
U.S. Deputy Attorney General Rod Rosenstein delivers remarks on "Justice Department Views on Corporate Accountability" during the The Annual Conference for Compliance and Risk Professionals at the Mayflower Hotel May 21, 2018 in Washington, DC. (Chip Somodevilla/Getty Images)
Now playing
05:41
Rosenstein: 12 Russians charged with hacking
dana bash reax
CNN
dana bash reax
Now playing
01:36
Bash on DNC hacking: This is a major crime
FBI Director Christopher Wray (L), CIA Director Mike Pompeo (2nd L), Director of National Intelligence Dan Coats (3rd L), Defense Intelligence Agency Director Robert Ashley (3rd R), National Security Agency Director Michael Rogers (2nd R) and National Geospatial Intelligence Agency Director Robert Cardillo (R) testify on worldwide threats during a Senate Intelligence Committee hearing on Capitol Hill in Washington, DC, February 13, 2018. (SAUL LOEB/AFP/Getty Images)
SAUL LOEB/AFP/Getty Images
FBI Director Christopher Wray (L), CIA Director Mike Pompeo (2nd L), Director of National Intelligence Dan Coats (3rd L), Defense Intelligence Agency Director Robert Ashley (3rd R), National Security Agency Director Michael Rogers (2nd R) and National Geospatial Intelligence Agency Director Robert Cardillo (R) testify on worldwide threats during a Senate Intelligence Committee hearing on Capitol Hill in Washington, DC, February 13, 2018. (SAUL LOEB/AFP/Getty Images)
Now playing
02:14
Intel chiefs: Russia targeting 2018 elections
Now playing
01:32
How to uncover a Russian troll op
CNN —  

The defense team of spying suspect Maria Butina walked into the courtroom Monday riding high on a concession from prosecutors that they misunderstood her text message jokes about sex. Less than an hour later, however, the defense lawyers left the hearing under a gag order and with the 29-year-old Russian heading back to a Virginia jail.

Butina has pleaded not guilty to two criminal charges, of conspiracy and acting as an unregistered foreign agent in the US. She is accused of working for Russian politician Alexander Torshin to infiltrate Republican politics and, specifically, the National Prayer Breakfast and the National Rifle Association so she could advance Russia’s interests. She’s been in jail since her arrest in July. Torshin is not charged. No trial date is set.

Federal Judge Tanya Chutkan ordered Monday that Butina would stay in jail until her trial because she is a flight risk.

“I cannot envision a scenario where it’s not possible,” Chutkan said, for Butina to walk out of jail, get in a car with diplomatic plates and take a flight out of the country if she were to be released before her trial. “There’s a very real risk of flight.”

The hearing failed to offer any boost to Butina, even with the Justice Department’s admission of error over the weekend.

Before the lawyers met with Chutkan on Monday – their first hearing since late July – Robert Driscoll, Butina’s attorney, had viciously attacked prosecutors’ early accusation that Butina had exchanged sex for political influence in her quest to create a back channel to Republican Party leaders. Prosecutors admitted in a court filing this weekend that they had read her text messages in error.

Chutkan agreed the discussions of sex were clearly jokes.

“Those allegations are notorious, have damaged her reputation” and embarrassed Butina, Chutkan said to the prosecutors.

But then the judge took the defense team to task for speaking publicly about the case outside the courtroom and using colorful language in court filings. Chutkan said the defense team’s word choices, like calling the case “frankly shocking,” were intended as much for public readers as they were for the judge.

“I find in this case that you have overstepped. I do find that your comments have crossed the line,” Chutkan told Driscoll. The defense team was “trying the case in the media,” she said.

The judge also reprimanded the defense for bringing to her chambers on Monday morning videos of Butina that showed her mother and father wishing her US boyfriend Paul Erickson a happy birthday and lip-syncing a song from “Beauty and the Beast” with him. “I’m not sure what on earth their relevance is to Miss Butina’s risk of flight,” Chutkan said. The defense attorney countered that they showed she had a genuine relationship with the Republican political operative from South Dakota.

Chutkan placed a gag order on the case going forward, admonishing her defense attorney for speaking outside the court in a way that could prejudice a DC jury.

Following her arrest, Driscoll repeatedly told national news outlets that his client Butina is merely a foreign student in America, playing up her image of an outdoors-loving young woman.

Recently, Driscoll lamented the conditions of Butina’s incarceration. She’s kept isolated in a small cell for 22 hours a day and allowed out only to shower and call her parents twice each day, at 1 a.m. ET and 11 a.m. ET, the defense team wrote in a recent filing.

Butina had requested to participate in yoga, meditation and creative writing classes that the prison offers, Driscoll said separately. But she has been unable to do so because of her classification as a high-profile inmate rather than a member of the general prison population, Driscoll said.

While the defense lawyer maintains that she never worked for the Russian government, the case has caught the Kremlin’s attention.

Representatives from the Russian consulate in Washington have attended Butina’s hearings. And in a filing this weekend, prosecutors said her case prompted notes and conversation between the Russian Foreign Ministry and the US State Department.

A website collecting donations for her legal expenses popped up at mariabutinafund.com after her arrest, and the Kremlin’s Twitter account started using a hashtag #FreeMariaButina.

Driscoll declined to stop to speak with reporters and camera crews as he left the court house Monday.

Butina’s next court hearing will be on November 13.

CNN’s Sara Murray and Liz Stark contributed to this report.