Plane vs Train Security

Probably not a good thing to post on a public message board. But yeah, I don't know the answer to that.
I’m betting bad guys with ill intent already know this. What we need is a foolproof invention that will detect explosives and chemicals/poison gas. I hope someone like DARPA is working on this.