Iarnród Éireann has described it as an appalling attack, which had the potential to be fatal, and is asking anyone with information to contact gardaí.