 Iran has denied knowing about the October 7th attack ahead of time, though officials up to Supreme Leader Ayatollah Ali Khamenei have praised the assault. Iran has armed Hamas as a counter to Israel, which the Islamic Republic has long viewed as its regional enemy. In the years since the collapse of Tehran's 2015 nuclear deal with world powers, Iran and Israel have been locked in a shadow war of attacks on land and at sea.