There's an informative and thought provoking article at atimes.com titled Nice attack: Why the terrorists are winning the intelligence war — Spengler.
There, David P. Goldman informs us that a common tactic used by French anti-terror squads is to grab a common criminal who is Muslim and turn him into an informant against terrorists. So far so good. But it seems that the radical Islamists are good at finding out who they are then turning them again. The caught spy is given an opportunity to redeem himself by becoming a suicide murderer, taking as many infidels with him as he can to martyr himself for the prophet.
The truck driver/terrorist who plowed down all those innocents in Nice a week or so ago reportedly wasn't a full bore Islamist, i.e., he was an ordinary criminal who missed prayers, didn't know the Koran, drank alcohol, etc. So this explanation certainly seems plausible in his case.
Be that as it may, the most intriguing part of Mr. Goldman's post was his suggestions for ending terrorism. It's very simple, and many of us have thought it, read it, or heard of it before. And that's to make the Muslim population more afraid of us than they are of the radical Islamists.
Learn from Generals William Tecumseh Sherman and Phil Sheridan and their scorched earth tactics that defeated the Confederacy in the Civil War. There was no political incorrectness about their tactics as they were "on the right side of history." Besides, political correctness hadn't yet been invented. Goldman explains how to put it into present day practice:
The way to win the war is to frighten the larger community of Muslims who passively support terror by action or inaction–frighten them so badly that they will inform on family members. Frightening the larger Muslim population in the West does not require a great deal of effort: a few thousand deportations would do. Western intelligence services do not even have to deport the right people; the wrong people know who they are, and so do many of their neighbors. The ensuing conversation is an easy one to have. “I understand that your nephew is due for deportation, Hussein, and I believe you when you tell me that he has done nothing wrong. I might be able to help you. But you have to help me. Give me something I can use–and don’t waste my time by making things up, or I swear that I’ll deport you, too. If you don’t have any information, then find out who does.”
I like this part:
We prefer to think about winning hearts and minds. Winning the hearts and minds of a people, though, isn’t difficult once they fear you.
He's basically saying that the French anti-terror squads are on the right track, they just need to be able to make threats that produce fears substantial enough to allow the subject to resist getting converted back into radicalism.
Here in the U.S., President Trump's threat to shut the door to Muslims from suspect regions was a good start.