Pictured in a pink wig at a music festival this is the ISIS fanatic who went on an axe rampage on a German train and may have lied about being an Afghan refugee in order to secure asylum status after claims he is Pakistani.

The terror group released a video yesterday featuring the attacker, who is claimed to be 17, who was shot dead by police after the attack, which left four people critically injured near the city of Wurzburg.

ISIS used the name 'Mohammed Riyadh' to describe him, however, sources close to the investigation in Germany said that he registered in the country as Riaz Khan Ahmadzai.

Riaz Khan Ahmadzai, who has been named as the ISIS fanatic who went on an axe rampage on a train. On his Facebook page he was pictured wearing a pink wig at a music festival

The 17-year-old attacker, who registered in Germany as Riaz Khan Ahmadzai and may have lied about being an Afghan refugee in order to claim asylum in the country

He lived on a farm with foster parents in the village of Gaukoenigshofen where the local Catholic priest set up a special room in his church for Muslims like him to pray.

As well as an ISIS flag and a suicide letter being found among his belongings, a Pakistani document was also found in his room, telling him where to go in Germany to increase his chances of being allowed to stay.

On his Facebook page he wrote in English: 'Life is too short to learn German.'

He was also pictured on his Facebook account wearing a pink wig for a festival at Ochsenfurt near to where he lived.

It was snapped at the Fasching Carnival in February, where events such as concerts, comedy sketches, parades and feasts took place over a four day period.

Gruesome pictures taken in the hours after the attack show the blood-soaked interior of the train

A stain of blood and the remains of a bandage lie on the pavement close to where the axe attack happened in Germany

He also claimed he missed his mother, once posting on the social network site: 'I love you mama. I can forget everything, but not you. I miss you mama.'

Meanwhile in the video released yesterday by ISIS, the attacker, who appears to be older than 17, uses phrases in Pashto, a dialect spoken in Pakistan and not Afghanistan.

GERMAN MINISTER WARNS OF MORE 'LONE WOLF' ATTACKS The German interior minister has warned that Germany must be on high alert for attacks by Islamist 'lone wolves'. Thomas de Maiziere said that it was believed that Riaz Khan Ahmadzai, who went on a train rampage was 'inspired' by ISIS rather than being a member of the jihadist network. He told reporters: 'This is perhaps a case that lies somewhere between a crazed rampage and terrorism. 'Like several EU countries, like the whole EU, Germany is also in the target area of international terrorism. 'Therefore, I have said for a long time, the situation is serious.' Following the attack, the Amaq news agency linked to ISIS released video footage of the attacker where he threatens Germany for taking part in airstrikes against the terror group. De Maiziere said it was unclear when the film was recorded by added it was a 'classic farewell video by a suicide attacker.' Advertisement

German TV station ZDF also noted that experts indicated his accent is clearly Pakistani.

Locals described the Khan as 'calm and even-keeled' and a 'devout Muslim who did not appear to be radical or a fanatic', according to Joachim Herrmann, interior minister of Bavaria state.

'According to the investigation thus far, there was no evidence on site to point to him belonging to the Islamist network,' Mr Herrmann added

Police however later found a farewell letter he apparently left for his father in which he said the world's Muslims 'must defend themselves.'

'Now pray for me that I can take revenge on non-believers, pray for me that I can get to heaven' the note said.

Prosecutors said he shouted 'Allahu Akbar' (God is greatest) three times as he made his way through the carriage.

An eyewitness told DPA news agency that the train, which had been carrying around 25 people, looked 'like a slaughterhouse'.

The assailant had arrived as an unaccompanied minor in Germany in June 2015 and had been staying with a foster family in the region for the last two weeks, Herrmann said.

'We must determine what the motive was and to what extent he really belonged to the Islamist scene or self-radicalised very recently,' Mr Herrmann said, adding that the assailant had no criminal record in Germany.

German police carry the body of the Afghan train attacker is carried from carriage and into a hearse after he was shot dead by police

The axe that Riyad used to injure his victims is recovered by police at the scene of the attack earlier today

Officers said the attacker had learned over the weekend that a friend had been killed in Afghanistan.

In a video released by the terror group, he said: 'I am one of the soldiers of the Islamic Caliphate, and I am going to conduct an attack in Germany.

'It is about time to stop you from coming to our homes, killing our families, and getting away with it.

'Our apostate politicians have never tried to stop you, and Muslims have never been able to fight you back or even speak against what you do. But these times are gone now.'

Meanwhile German interior minister Thomas de Maiziere explained that Germany faces attacks by Islamist 'lone wolves'

He told reporters: 'Like several EU countries, like the whole EU, Germany is also in the target area of international terrorism. Therefore, I have said for a long time, the situation is serious.'

Four members of a family of tourists from Hong Kong were injured in the attack, with two of them in intensive care, and a passer-by was also hurt.

The elder daughter of the Yau family told local media that her parents tried to defend her sister's boyfriend when the axe-wielding teenager went for him.

'Originally the assailant was attacking my sister's boyfriend and when my mother and father saw, they went up to get in the way and then they got injured,' Sylvia, 30, told the Hong Kong-based Apple Daily newspaper Tuesday night.

Edmund Au Yeung (right) suffered severe injuries as he tried to protect his girlfriend Tracy Yau Hiu-tung (left). They are shown together in picture on Edmund's Facebook page

Investigation: Police stand by the regional train on which a teenager wielding an axe attacked passengers

The fanatic went on the rampage with an axe and a knife on a train in Germany. He was later shot dead by police

Her father and sister's boyfriend are now in intensive care with serious head injuries. Her sister Tracy, 26, and mother, 58, were also injured, while Sylvia's 17-year-old brother was unharmed.

'My father-in-law's friends received pictures and said they were having lots of fun,' said Sylvia's husband, who was not named.

Germany has thus far escaped the kind of large-scale jihadist attack seen in the southern French city of Nice last week, in which 31-year-old Mohamed Lahouaiej Bouhlel used a truck to mow down 84 people.

That attack was also claimed by ISIS without the assailant having clear ties to the group.

A record 1.1 million people were let in to Germany last year, with Syrians making up the largest group followed by Afghans.