Donald Trump has said he would consider sending the suspected assailant in a New York terrorist attack to Guantanamo Bay, saying the venue would be preferable to the “joke” of America's criminal justice system.

The President’s call to handle suspected attacker Sayfullo Saipov outside of the criminal justice system, combined with his vows to pursue more stringent immigration measures and dissolve a popular visa programme, suggested Mr Trump plans to respond forcefully to the worst major terrorist attack in New York City since 9/11 - and in a way that echoes former President George W Bush's fiercely contested response to the 2001 attacks.

Throughout his rise to the Oval Office, Mr Trump regularly invoked the perils of terrorist attacks in justifying fortified immigration policies. He has presented himself as a champion of law and order, advocating tougher criminal penalties as a way to keep Americans safe.

Suspect Sayfullo Saipov allegedly killed eight and injured others in New York City before being shot by police. Police officials said witnesses recounted hearing the attacker shout “Allahu Akbar” as he exited his truck, and multiple outlets have reported police found a note pledging allegiance to Isis.

Asked whether he might send Mr Saipov to the American military prison located in an American naval base at Guantanamo Bay, Cuba, Mr Trump said “I would certainly consider that”.

“Send him to Gitmo”, Mr Trump said.

New York Truck attack Show all 6 1 /6 New York Truck attack New York Truck attack Investigators inspect the truck following the attack Investigators inspect a truck following a shooting incident in New York on 31 October 2017. Several people were killed and numerous others injured in New York on Tuesday when a suspect plowed a vehicle into a bike and pedestrian path in Lower Manhattan, and struck another vehicle on Halloween, police said. A suspect exited the vehicle holding up fake guns, before being shot by police and taken into custody, officers said. The motive was not immediately apparent. Getty New York Truck attack A paramedic looks at a body along the bike path A paramedic looks at a body covered under a white sheet along the bike path 31 October 2017, in New York. A motorist drove onto a busy bicycle path near the World Trade Center memorial and struck several people Tuesday, police and witnesses said. AP Photo/Bebeto Matthews New York Truck attack The truck driver collided with a school bus Authorities respond near a damaged school bus Tuesday, 31 October 2017, in New York. A motorist drove onto a busy bicycle path near the World Trade Center memorial and struck several people, police and witnesses said. Two adults and two children were on the bus at the time. AP Photo/Bebeto Matthews New York Truck attack A young girl reacts to the scene A young girl reacts as police officers secure an area following a shooting incident in New York on 31 October 2017. Several people were killed and numerous others injured in New York on Tuesday after a vehicle plowed into a pedestrian and bike path in Lower Manhattan, police said. 'The vehicle struck multiple people on the path,' police tweeted. 'The vehicle continued south striking another vehicle. The suspect exited the vehicle displaying imitation firearms & was shot by NYPD.' DON EMMERT/AFP/Getty Images New York Truck attack Police officers arrive at the scene Police officers arrive at the scene following a shooting incident in New York on 31 October 2017. Multiple people were hurt in downtown Manhattan, US media reported after police confirmed that they were responding to reports of a shooting. Police said they had mobilized to the scene in Lower Manhattan and that one person was in custody, giving no further details. DON EMMERT/AFP/Getty Images New York Truck attack Emergency personnel respond to truck attack in lower Manhattan Emergency personal respond after reports of multiple people hit by a truck after it plowed through a bike path in lower Manhattan on 31 October 2017 in New York City. According to reports up to six people may have been killed. Kena Betancur/Getty Images

In the immediate aftermath of the attack, the President called on Twitter for tougher immigration restrictions, saying he would “step up our already Extreme Vetting Programme” and suggesting he wanted to scrap a visa lottery system. He reiterated that push in a Cabinet meeting, saying he would “ask Congress to immediately initiate work to get rid of this programme”.

In pushing new immigration restrictions like a halt on refugee admissions and bans on visitors from Muslim-majority countries, Mr Trump has argued he is keeping Americans safe from terrorism. Courts have blocked or weakened his proposed travel bans, which critics call cruel and counterproductive to curbing terrorism.

By floating sending Mr Saipov to Guantanamo Bay, a facility that holds suspected terrorists that are termed "enemy combatants", Mr Trump again thrust the military prison into the centre of America's reaction to terrorism. For years the prison has been a divisive symbol of how America has prosecuted its post-9/11 war on terrorism. The facility became deeply controversial during the administration of George W Bush for holding terrorism suspects indefinitely.

But Mr Trump said America's criminal justice system was too slow, offering an extraordinary rebuke of America's legal process.

“We also have to come up with punishment that's far quicker and far greater than the punishment these animals are getting now. They'll go through court for years”, Mr Trump said, adding that “what we have right now is a joke, and it's a laughing stock”.

During the presidential campaign, Mr Trump said he intended to keep Guantanamo Bay open, saying “we're gonna load it up with some bad dudes”.

While Barack Obama vowed to shutter the prison, he failed in the face of resistance from Congress. He did succeed in sharply reducing the number of prisoners held there, from 242 at the start of his presidency to just 41 when he left office.

As Wednesday unfolded, multiple Republicans embraced Mr Trump's call to transfer Mr Saipov outside of the criminal justice system, offering a moment of Republican unity that has been lacking as Mr Trump tangled with members of his own party.

Sen Lindsey Graham, Republican of South Carolina, advocated treating him as an “enemy combatant”, a designation that strips away due process protections like the right to challenge their imprisonment.

Also echoing Mr Trump was Senator John McCain, a Republican hawk who has clashed with Mr Trump over foreign policy but agreed on the proper fate for the assailant.