A hospital in Massachusetts almost became victim to a cyberattack last year, an attack that would have damaged the pediatric facility’s operations.

The FBI last year thwarted a planned cyberattack on Boston Children’s Hospital that was to have been carried out by hackers sponsored by the Iranian government, FBI Director Christopher Wray said Wednesday.

“In the summer of 2021, hackers sponsored by the Iranian government tried to conduct one of the most despicable cyberattacks I’ve ever seen, right here in Boston, when they decided to go after Boston Children’s Hospital,” Wray said in a speech at a Boston College cybersecurity conference.

Wray said a report from an intelligence partner indicated that Children’s was about to be targeted, and the hospital was immediately notified.

Read the full story at CBS Boston.