For the casino hacks they brute forced some passwords and then wrote malware with Visual Basic to steal more credentials. The technical barriers there are fairly low. For the attacks on the water infrastructure they probably just scanned looking for open systems and ran off the shelf exploits on the ones that looked the most interesting.
Attacking in this way is a lot easier than attacking a specific target. If I just wanted to "hurt" a country from a PR perspective then there's a lot of attack surface, and you only need to get one or two things through to make the news. Targeting something like a secure nuclear facility is orders of magnitude more difficult.
Essentially every deployed system is so littered with security defects in every facet of both design and implementation that successful attacks against them can be developed and deployed at a cost of just a few tens of thousands to maybe a million dollars for a really good attack at the high end. Any reasonably-sized state actor can deploy literally thousands of times that many resources against their adversaries without even blinking and we know that the NSA and CIA were independently running hacking programs capable of attacking essentially every publicly deployed system in the world. Offense is so easy and defense is so bad it is ridiculous.
A quick search about their operations:
- Shamoon malware was categorized as cyberwarfare and it was used against Saudi Aramco, allegedly by Iran.
https://en.wikipedia.org/wiki/Shamoon
- A blackout in Turkey was also linked to Iran
https://observer.com/2015/04/iran-flexes-its-power-by-transp...
- Iran is also (allegedly) active in Information Warfare, which is much more complicated than technical cyber attacks.
https://www.cnbc.com/2021/03/16/russia-and-iran-tried-to-int...
- Israel and Iran are actively attacking each others infrastructure for a while.
https://foreignpolicy.com/2020/06/05/israel-and-iran-just-sh...
- Operation Newscaster. Cyber espionage and social engineering targeted senior U.S. military and diplomatic personnel, congresspeople, journalists, lobbyists, think tankers and defense contractors.
https://en.wikipedia.org/wiki/Operation_Newscaster
- Operation Cleaver. targeted the military, oil and gas, energy and utilities, transportation, airlines, airports, hospitals and aerospace industries organizations worldwide.
Wiping of a US casino's IT infra in 2014:
https://arstechnica.com/information-technology/2014/12/irani...
Breaching of critical power/water infrastructure in 2015:
https://www.cbc.ca/news/technology/hackers-infrastructure-1....