BEIRUT - Lebanon's U.S.-backed military is gearing up for a long-awaited assault to dislodge hundreds of Islamic State militants from a remote corner near Syrian border, seeking to end a years-long threat posed to neighboring towns and villages by the extremists.

The campaign will involve cooperation with the militant group Hezbollah and the Syrian army on the other side of the border — although Lebanese authorities insist they are not coordinating with Syrian President Bashar Assad's government.

Lebanon's Army Prepares to Clear Border Area of IS Militants

But the assault could prove costly for the under-equipped military and risk activating IS sleeper cells in the country.

Lebanon's Army Prepares to Clear Border Area of IS Militants

The tiny Mediterranean nation has been spared the wars and chaos that engulfed several countries in the region since the so-called Arab Spring uprisings erupted in 2011. But it has not been able to evade threats to its security, including sectarian infighting and random car bombings, particularly in 2014, when militants linked to al-Qaida and IS overran the border region, kidnapping Lebanese soldiers.

Lebanon's Army Prepares to Clear Border Area of IS Militants

The years-long presence of extremists in the border area has brought suffering to neighboring towns and villages, from shelling, to kidnappings of villagers for ransom. Car bombs made in the area and sent to other parts of the country, including the Lebanese capital, Beirut, have killed scores of citizens.

Aided directly by the United States and Britain, the army has accumulated steady successes against the militants in the past year, slowly clawing back territory, including strategic hills retaken in the past week. Authorities say it's time for an all-out assault.

The planned operation follows a six-day military offensive by the Lebanese Shiite militant group Hezbollah that forced al-Qaida-linked fighters to flee the area on the outskirts of the town of Arsal, along with thousands of civilians.

In a clear distribution of roles, the army is now expected to launch the attack on IS. In the past few days, the army's artillery shells and multiple rocket launchers have been pounding the mountainous areas on the Lebanon-Syria border where IS held positions, in preparation for the offensive. Drones could be heard around the clock and residents of the eastern Bekaa Valley reported seeing army reinforcements arriving daily in the northeastern district of Hermel to join the battle.

The offensive from the Lebanese side of the border will be carried out by the Lebanese army, while Syrian troops and Hezbollah fighters will be working to clear the Syrian side of IS militants. Hezbollah has been fighting alongside Assad's forces since 2013.

On Tuesday, the army's top brass conferred with President Michel Aoun, Prime Minister Saad Hariri and interior and defense ministers at the Presidential Palace to plan operations in the eastern Bekaa Valley.

The committee took the "necessary counsel and decisions to succeed in the military operations to eliminate the terrorists," Maj. Gen. Saadallah Hamad said after the meeting.

Experts say more than 3,000 troops, including elite special forces, are in the northeastern corner of Lebanon to take part in the offensive. The army will likely use weapons it received from the United States, including Cessna aircraft that discharge Hellfire missiles.

Keen to support the army rather than the better equipped Iranian-backed Hezbollah, the U.S. and Britain have supplied the military with helicopters, anti-tank missiles, artillery and radars, as well as training. The American Embassy says the U.S. has provided Lebanon with over $1.4 billion in security assistance since 2005.

But the fight is not expected to be quick or easy.

According to Lebanon's Interior Minister Nouhad Machnouk, there are about 400 IS fighters in the Lebanese area, and hundreds more on the Syrian side of the border.

"It is not going to be a picnic," said Hisham Jaber, a retired army general who heads the Middle East Center for Studies and Political Research in Beirut. "The Lebanese army will try to carry out the mission with the least possible losses."

Jaber said the battle may last several weeks. "It is a rugged area and the organization [IS] is well armed and experienced."

There are also concerns the offensive may subject Lebanon to retaliatory attacks by militants, just as the country has started to enjoy a rebound in tourism.

A Lebanese security official said authorities are taking strict security measures to prevent any attack deep inside Lebanon by sleeper cells. The official, who spoke on condition of anonymity in line with regulations, said authorities have detained several IS militants over the past weeks.