Network Rail says it is working with the British Transport Police to catch and prosecute offenders.