Updated

Iran has denied any involvement in cyberattacks after the U.S. charged seven hackers linked to the Iranian government with targeting dozens of banks as well as a small dam outside New York City.

Foreign Ministry spokesman Hossein Jaberi Ansari said Saturday that Iran has "never had on its agenda any dangerous measures in cyberspace and does not support such moves.

He is quoted by state TV as saying the United States "is in no position to accuse the citizens of other countries, including Iran, without providing documentary evidence."

A Justice Department official told The Associated Press that the indictments announced Thursday are part of a strategy to name and shame foreign governments that support such attacks.