Iranian officials have confirmed that the Islamic republic’s Oil Ministry and affiliated offices have come under a cyberattack.
Officials said a special team was created to fend off the attack, and no major damage was inflicted.
Iranian agencies quote officials as saying a virus "attempted to delete all data from the ministry's computers, but essential data" survived unharmed.
The Mehr news agency reported that officials disconnected Iran's main crude oil terminal from the Internet in response to the attack.
The Iranian National Oil Ministry's website appeared to be inaccessible on April 23.
In 2010, Iran was hit by a massive cyberattack when a highly sophisticated worm called Stuxnet penetrated at least 30,000 computers across Iran, seeming to specifically target computers linked to work on uranium enrichment.
Based on reporting by mehrnews.com, AFP, AP, and Radio Farda