The revival of rail transport service in Nigeria in recent years came at a critical moment of insecurity in Nigeria, it promised not only to serve as an alternative to overloaded vehicles on the roads but was also thought to be a safer means of transportation. Due to kidnapping on many roads, both high and low-class Nigerians patronized rail transport. However, train attacks and terrorism are major challenges that have impacted the sector negatively. Though the government has tried to improve surveillance along train routes, however, the result has not been impressive. The current level of insecurity in Nigeria is beyond the use of traditional surveillance and monitoring systems. It requires the adoption of technology to fight attacks and to monitor the health of train facilities. While the insecurity challenges that have overwhelmed the security forces will not permit the assignment of more personnel to the rail tracks that stretch several kilometres across the country, the incorporation of IoT and edge computing can be an optimal solution to the challenges of constant security problems. Among the trending technologies, IoT is a viable option that the country can adopt to improve security in the sector. It will increase the confidence of passengers and improve revenue and growth in rail transport.