The 19-second clip, which has been viewed more than 5,000 times, starts by showing a train speeding alongside the Mitchell Freeway in Perth, Australia.
The camera then zooms in as, astonishingly, a man is seen gripping onto the rear of the carriage by its wiper blades.
A 23-year-old was seen to climb onto the rear of the train before it left Leederville Station at around 4.30pm on Saturday, reports ABC .
A man was caught riding on the rear of a train in Australia
The man was clinging on to just the windscreen wipers as the train travelled at 70mph
He was detained and arrested by Public Transport Authority officers when the train arrived at its next stop at Stirling station and was taken to hospital to undergo a mental health assessment.
The PTA said he could have easily have been killed.
"In all other instances it generally goes up on Facebook or on the internet, on YouTube after the event," said PTA spokesman David Hynes.
"They want to get on YouTube, they want mainstream publicity so they don't try to get themselves caught, so we don't often know about it until it's well after the event."
Australia's authorities said the man could easily have been killed
The Australian government's transport minister, Rita Saffioti, said it would be investigating the incident.
"People shouldn't be acting stupidly around our rail line, these are serious pieces of infrastructure and they can cause death and of course they can cause serious injuries" she said.