German authorities arrested a man who offered to work as a spy for three foreign intelligence agencies.

The 27-year-old German, arrested Wednesday in Leipzig, was identified only as Danny Günter G, in line with German privacy laws.

Prosecutors did not identify the three secret services the man had applied to.

In his application letters to the three spy agencies, the man wrote that "he was prepared, if recruited, to carry out any activities asked of him," including procurement and disclosure of information.

Read more: When citizens spy: Russia's FindFace sparks privacy controversy

The prosecutors said on Friday that Günter G. was released but is still under investigation for showing his willingness to carry out espionage on behalf of foreign countries.

German law provides for an imprisonment of up to five years or a fine for someone willing to work for a foreign secret service.

ap/sms (AP, dpa)