The Department of Justice has charged a former Air Force intelligence specialist with spying on behalf of Iran, according to a grand jury indictment unsealed Wednesday.

Monica Elfriede Witt, 39, who served in the Air Force until 2008, when she became a contractor for the Department of Defense, is accused of giving the Iranians code names and the mission of a secret Pentagon program involving U.S. intelligence operations, as well as revealing the identity of a U.S. intelligence officer. She defected to Iran in 2013 after being recruited by the country.

“We believe that Witt still resides in Iran,” a Justice Department official told reporters Wednesday.

The detailed indictment tells a story of a former intelligence specialist who had turned against the U.S., and was looking for an adversary — Iran or Russia — to share sensitive information that had the potential to harm the country she had previously defended.

During her time in the Air Force and as a contractor, she had access to secret and top secret information, including the names of U.S. intelligence sources and under-cover agents. As a counterintelligence officer, she was deployed overseas, including to the Middle East, to conduct classified operations.

The indictment alleges Witt attended a February 2012 conference in Iran hosted by the New Horizon Organization, which was sponsored by the Islamic Revolutionary Guard Corp and “aimed at condemning American moral standards and promoting anti-U.S. propaganda.” That same month, she appeared in videos broadcast by Iranian media outlets, identified as a U.S. veteran, speaking critically of the American government.

The FBI warned Witt in May 2012 that Iranian intelligence services were trying to recruit her. In response to the warning, Witt told the agents if she ever returned to Iran she would decline to provide any information regarding her work for the U.S. Air Force Office of Special Investigations, according to the indictment filed in U.S. District Court for the District of Columbia.

A month later, the indictment alleges, a dual U.S.-Iranian citizen identified as “Individual A,” traveled to the U.S. and hired Witt to work on a film critical of America that was later aired in Iran. The two were in regular contact from July 2012 until August 2013.

In an October 2012 text exchange, Witt told “Individual A” she was “endeavoring to put the training I received to good use instead of evil. Thanks for giving me the opportunity.” In another message almost a year later, she wrote, “If all else fails, I just may go public with a program and do like [Edward] Snowden,” a former CIA employee and government contractor who leaked troves of classified information from the National Security Agency in 2013.

In spite of the FBI warnings, Witt again attended a conference hosted by the New Horizon Organization in February 2013, meeting with members of the IRGC, a group known to carry out terrorist operations and has been sanctioned by the U.S. government. She told the IRGC she was critical of the U.S. military and wanted to emigrate to Iran, according to prosecutors.

Witt continued communicating with “Individual A” through summer 2013, noting her desire to move to Iran. The unnamed person told Witt that Iran had become suspicious of her intentions.

“I just hope I have better luck with Russia at this point,” Witt responded, according to the indictment. “I am starting to get frustrated at the level of Iranian suspicion.”

“I think I can slip into Russia quietly if they help me and then I can contact wikileaks from there without disclosing my location,” she said.

She later sent an email to the unnamed person that included personal information and her work history. “Individual A” passed the message along to an email address associated with Iran, the indictment says. Three days later, on Aug. 28, 2013, she defected. The Iranian government provided her with housing and computer equipment in order to help her spy on behalf of the country.

“I’m signing off and heading out!” she wrote to “Individual A.” “Coming home.”

The indictment alleges Witt disclosed information to Iran about U.S. intelligence officers and aided in their cyber-spying operations against such officers from January 2012 to May 2015.

The U.S. Treasury simultaneously announced Wednesday it has sanctioned two Iran-based organizations — New Horizon Organization and Net Peygard Samavat Company — and several other individuals linked to Iranian intelligence.

Iran is accused of targeting several U.S. government officials, with the help of Witt, via Facebook and email with malware and that would have given Iran access to computer networks belonging to the U.S. Department of Defense. In one instance, an imposter Facebook account created by the Iranians was added to a private Facebook group composed of U.S. government officials. It’s unclear if any U.S. devices were infected with the malware.

Justice Department officials said Wednesday that Witt’s former colleagues have been made aware that they may have been compromised. The officials did not disclose whether any Americans or U.S. sources had been physically harmed by the alleged espionage.

Witt was born and raised in Texas. She served in the Air Force from 1997 until 2008, first as a intelligence specialist and later as a special agent of the Office of Special Investigation. Through the U.S. Defense Language Institute, she learned Persian Farsi in the early days of her employment with the Air Force. Witt ended her employment with the defense contractor in August 2010.

In a blog post on the Iraq Veterans Against the War website, Witt apparently wrote, “I served in the Air Force for 10 years and participated in both the Afghanistan and Iraq Wars. After viewing so much corruption and the damage we were doing both to Iraq/Afghanistan and to the perception of the U.S., I decided I needed to do as much as I could to help rectify the situation.”

“Witt’s primary motive appears to be ideological,” said Jay Tabb, executive assistant director for National Security at the FBI.