The Lebanese army says it has foiled two terror plots by the Islamic State group targeting residential and tourist sites in the country.

The army said in a statement released Thursday that it had arrested five suspects linked to the plots, among them the alleged mastermind. It did not say where or when the suspects were stopped.

The country has been on high alert since nine bombs exploded in the eastern border village of Qaa on Monday, killing five residents. Eight were detonated by suicide bombers. No group claimed responsibility.

Violence from the neighboring war in Syria has spilled into Lebanon's border regions. IS and Al-Qaida militants briefly seized the town of Arsal in 2014, before security forces pushed them to the frontier, where they remain now.