FBI discourages companies from paying ransoms -Wray

"In general, we would discourage paying the ransom because it encourages more of these attacks, and frankly, there is no guarantee whatsoever that you are going to get your data back," Wray testified before a U.S. Senate appropriations panel.

The Justice Department has disclosed it managed to help the Colonial Pipeline Co recover some $2.3 million in cryptocurrency ransom it paid to hackers - an attack that led to widespread shortages at gas stations on the East Coast.

The FBI was able to recover those funds because it had a private key that it was able to use to unlock a bitcoin wallet holding most of the money. It was unclear how the FBI managed to access the key.