Security procedures aviation industry prohibit passengers from carrying any object that can be used as a weapon on themselves(hand carry luggage). Such baggage includes but it's not limited to screw drives, golf balls, drills, any liquid exceeding 100ml, etc. Such luggage must be checked in and carried in an isolated compartment away from the passengers. These are counter terrorism measures.
I think the railway guys are trying to reach this level of security. Thanks to a few idiots in uniform, we have a lapse in security. The right thing to do is to report the attempted bribe taking to the authorities. Such lapses are taken seriously because of our exposure to terrorism.