A female FBI translator who had been assigned to scanning communications from an Islamic State operative in 2014 fell in love with the U.S. enemy and secretly married him in Syria, according to a new report.

Daniela Greene, 38, was a top secret agent who was hired as a contract linguist in 2011, CNN reported Monday. In January 2014, she was assigned to work in an "investigative capacity" looking at a German terrorist, Denis Cuspert, a rapper-turned-ISIS spokesman. Cuspert was known as a top pitchman for the terrorist group and had released videos calling for former President Barack Obama's death among other threats.

After months of tracking Cuspert's communications, Greene decided to travel to Syria to marry the terrorist, unbeknownst to the FBI, the report said. It is not clear how the two communicated.

In June 2014, Greene filled out a Report of Foreign Travel form. The agent claimed she was going to visit her parents in Germany, where she was raised. Top FBI officials approved her travel and nothing came of it for a month, the report said.

Instead of traveling to Germany, Greene, who at the time was still married to someone else, flew one-way to Istanbul, Turkey. Once there, she traveled to Gaziantep, a city that is 20 miles from the Syrian border, the report said. She made contact with Cuspert, who would have had to get ISIS leaders' approval to let a woman into the country and territory, and had Greene smuggled over the border and brought onto the terrorist base.

The two were married in Syria, but court documents also show in the weeks after the marriage, Greene contacted a friend to say she may have had made a mistake abandoning her top-secret post to marry the enemy.

"I was weak and didn't know how to handle anything anymore," Greene wrote on July 8. "I really made a mess of things this time."

On July 22, she wrote, "Not sure if they told you that I will probably go to prison for a long time if I come back, but that is life. I wish I could turn back time some days."

The FBI learned of Greene's secret travel and issued a warrant for her arrest August 1. She was arrested shortly after returning to the U.S. from her month-long stint of living with the terrorist group.

Greene cooperated with prosecutors for a few months, the report said. By April 2015, she stopped helping federal investigators, which prompted details of her private case to be made public.

Greene pleaded guilty to making false statements involving international terrorism and was sentenced to two years in federal prison - a light punishment compared to those for similar crimes.

In the midst of the underground trial, then-State Department Secretary John Kerry issued a notice calling Cuspert a "specially designated global terrorist."

"I hereby determine that the individual known as Denis Cuspert, also known as Denis Mamadou Cuspert, also known as Abou Mamadou, also known as Abu Talha the German...committed, or poses a significant risk of committing, acts of terrorism that threaten the security of U.S. nationals or the national security, foreign policy, or economy of the United States."

Cuspert was believed to have been killed in an October 2015 U.S. air strike near Raqqah, Syria. It wasn't until August 2016 that the Pentagon announced he had not been killed and was still out there.

Greene was released from prison the day after the Pentagon's statement was issued, the report said. She now works at a hostess in a hotel lounge.