Editor's note: The following column originally appeared in the City Journal.

Akayed Ullah, the 27-year-old ISIS-inspired immigrant from Bangladesh, was the only person seriously hurt this past Monday, when he detonated his bomb in the crowded underground passageway between the Port Authority bus terminal and the Times Square subway hub. Three bystanders suffered minor injuries.

The botched terror attack prompted a self-congratulatory press conference, at which Governor Andrew Cuomo and Mayor Bill de Blasio applauded the police and other first responders for capturing the perpetrator of the latest terror attack in New York City and taking away a cell phone that might have triggered another bomb. The governor and mayor vowed that such attacks would not disrupt life in New York. All Ullah managed to do was upend the city’s morning rush hour. His crowning achievement was inconvenience.

Still, at the news conference, John J. Miller, the NYPD’s commissioner of intelligence and counterterrorism, reminded listeners that there have been 26 terrorist plots aimed at the city since 9/11, most foiled through a combination of what he called “intelligence, investigation, and interdiction.” New York was fortunate in another respect, said Michael Sheehan, a former NYPD counterterrorism commissioner. Ullah’s botched attack reflected yet again a “lack of connectivity” between a “lone wolf” and the Islamic State, al-Qaida, or other terrorism sponsors. In that sense, he noted, such attacks are signs of “strategic weakness, not diabolical genius.”

But New Yorkers know all too well that the city’s previous narrow escapes have sometimes resulted from what the Wall Street Journal called “dumb luck.” Had part of Ullah’s homemade pipe bomb—fashioned from Christmas tree lights, among other things, and strapped to his chest with Velcro—fully detonated, his attack could have been devastating. Ullah’s was the first attempted suicide bombing here, but the third attack in New York by an Islamist terrorist in the past 14 months. Sayfullo Saipov, another militant Muslim loser, managed to kill eight people in a truck-ramming attack on a Hudson River bike path on October 31. Since 2014, there have been at least 16 vehicular attacks, from Barcelona to New York. Half occurred in 2017.

President Trump blamed America’s “lax” immigration policies for the attack and issued a statement promoting his proposed restrictions. He called on Congress to end the extended “chain migration” that gives priority to individuals related to legal immigrants already in the country. He also said that an executive order restricting the entry of nationals from six majority-Muslim countries and North Korea, along with Venezuelan government officials, which the Supreme Court recently permitted to take effect, would help reverse the immigration flows that he claims allow “far too many dangerous, inadequately vetted people to access our country.”

Though chain migration and immigration lotteries violate common sense in light of the terrorist threat, some of Trump’s other assertions are problematic. The executive order he has proposed does not restrict immigrants from Bangladesh, Ullah’s country of origin. Though Ullah immigrated in 2011 on a family-immigration visa, according to the federal complaint filed Tuesday, he did not begin his radicalization until 2014, three years after his arrival here. Even the most diligent pre-immigration vetting would probably not have identified him as a Muslim extremist. Moreover, a 2007 NYPD report by Mitch Silber and Arvin Bhatt, “Radicalization in the West: The Homegrown Threat,” argued that the most violent, extreme interpretations of Islam were likely to be embraced not by Muslim immigrants (like Ullah), but by their sons and daughters—in particular, converts to Islam. Also, experts caution that painting all Muslim immigrants with a broad brush can alienate community members who might otherwise be willing to volunteer information about peculiar behavior or potential terror plots. “Having family, friends, and acquaintances report suspicious activity” is crucial to preventing terror, said Richard Clarke, a former counter-terrorism and cyber-terrorism adviser to Republican and Democratic presidents.

To continue reading Judith Miller's column from the City Journal, click here.