ISIS Egypt sinai
ISIS Egypt sinaiReuters

The offshoot of the Islamic State group in Egypt's Sinai Peninsula has claimed to have beheaded alleged Egyptian spies. While one was a "spy for the military intelligence" services, the other was spying "for the army".

The group also posted the photos of the execution on Twitter on Thursday night, Agence France-Presse cited U.S. monitor SITE Intelligence Group.

The jihadist militant group in Egypt, known as Sinai Province, also claimed attacks on Egyptian soldiers in al-Arish and Rafah, according to SITE.

The Islamic State of Iraq and the Levant-Sinai Province (ISIL-SP) was formed in November 2014 when Islamist group Ansar Beit al-Maqdis (meaning Supporters of Jerusalem), active in the region since 2011, pledged allegiance to ISIL, also known as ISIS, according to BBC.

Ansar Beit al-Maqdis had carried out various attacks against Egyptian forces, and after the allegiance, they gained foothold in the peninsula.

They stepped up their attacks on the security forces after the military's overthrow of Islamist president Mohammed Morsi in July 2013. ISIL-SP reportedly claimed to have bombed a Russian passenger plane over Sinai in October 2015. At least 224 people on board the flight were killed.