War zones in Iraq and Afghanistan are the template for Boston’s fight against terrorists and other “bad actors,” according to a police plan to stage intense training to ready SWAT teams and bomb squads for threats that could “hit our shores in full force.”

The Boston Police Department request for proposals seeks an organization to lead a five-day, 40-hour course for 30 SWAT team members and 22 bomb-squad members later this year, training them to recognize IED components and booby traps and splitting them into teams to role-play as terrorist cells and plan attacks on a given target.

“The increasing operational tempo of terrorist organizations and lone wolf actors around the world are shaping the battle­space into one resembling the wars of Iraq and Afghanistan,” the request reads.

“With that shaping comes the migration of training, tactics & techniques of the various bad actors. Civilian law enforcement must be made ready to deal with these situations before they hit our shores in full force,” the RFP states.

BPD spokesman Det. Lt. Michael McCarthy noted that terrorists trade diagrams of explosive devices via social media and the IEDs in the marathon bombings were modeled after designs seen in Iraq and Afghanistan.

“We adapt our training to keep it relevant to what is happening around the world and here at home,” McCarthy said. “In terms of improvised explosives devices it is imperative that we train for those types of threats.

“The marathon bombing is a perfect example — that device was of a type widely used in Iraq and Afghanistan, which could very likely be used again in the U.S.,” he said.

John Jay College of Criminal Justice professor Eugene O’Donnell, a former New York police officer, said BPD is “blazing a trail” and correctly taking major threats seriously.

“Terrorists are experimenting and innovating at an alarming rate, there are lots of evil minds looking to inflict carnage,” O’Donnell said. “It’s refreshing and encouraging to see law enforcement trying to get out in front of that, trying to create their own innovations to stop these guys dead in their tracks.”

City Hall spokeswoman Nicole Caravella said, “Mayor Walsh is supportive of police participating in any trainings that will help them keep Bostonians safe and protect the city from potential harm.”

There is no cost cited for the bid, which requires responses by April 10.

Former Boston police Commissioner Edward F. Davis wouldn’t comment on the current proposal, but said previous training was integral to the department’s response to the marathon bombings.

“It would not have gone well if we had not done this type of training beforehand,” Davis said. “It’s very important to do this kind of stuff.”

McCarthy said Boston officers regularly undergo specialized training, and Kade Crockford, director of ACLU Massachusetts’ Technology for Liberty program, said the organization supports emergency training for police. She said some parts of the latest proposal, which notes similarities between volatile drug labs and homemade explosive labs, would be useful for police.

But Crockford took umbrage with objectives focusing on “bad-actor probing and surveillance techniques,” saying that could lead to profiling of minorities and violations of civil liberties. And she added the bid seemed to cast police in a military role when they should be focusing on community work.

“An investment of resources that further militarize the police and prepare for what sounds like a full-scale foreign invasion of Boston seems like we’re spending a lot of time training police to think of themselves as warriors instead of detectives and public servants,” Crockford said. “And certain communities are crying out for officers to solve routine crimes.”