A German intelligence agent on Tuesday said he pretended to be a jihadist planning an attack in online chatrooms because he was bored, as he went on trial for attempted treason.
The 52-year-old suspect, named as Roque M., made headlines when he was arrested last November in what initially appeared to be a case of an Islamist mole at work in Germany's domestic spy agency.
But he was freed in July after prosecutors dropped most of the charges, finding no evidence of an attack plot or ties to Islamist groups.
"I never met with any Islamists. I would never do that. The whole thing was like a game," the suspect said at the start of his trial in the western city of Duesseldorf, according to DPA news agency.
A former banker and father of four, Roque M. told the court that he monitored the Islamist scene as part of his job for the Office for the Protection of the Constitution (BfV), a role he described as "a lot of fun".
But he grew bored at the weekends when he was at home watching his disabled son, and immersed himself in the online world of Islamists, feigning to be one himself.
It was "an escape from reality", DPA quoted him as saying in court.
He even went so far as to arrange a meeting with a suspected Islamist at a gym, although Roque M. insisted he never had any intention of going.
In one of his online chats, he offered to help alleged Islamists gain access to his employer's office in Cologne.
"An attack on the headquarters would be in line with Allah's will," he wrote, according to the indictment.
He was caught after he offered to share classified information about operations with someone who turned out to be a colleague working undercover.
The case initially sparked outrage, with Germany's domestic spy agency fending off calls for a complete security overhaul for allowing an "Islamist" to infiltrate its team who had passed multiple screenings.
But as no evidence emerged of an actual Islamist plot, prosecutors left Roque M. facing the sole charge of attempting to share state secrets.
His trial is scheduled to run for five days.