Facebook Inc. and Microsoft Corp. disabled a number of North Korean cyberthreats last week, a White House official said on Tuesday, as the United States publicly blamed Pyongyang for a May cyberattack that crippled hospitals, banks and other companies.

"Facebook took down accounts that stopped the operational execution of ongoing cyberattacks and Microsoft acted to patch existing attacks, not just the WannaCry attack initially," White House homeland security adviser Tom Bossert said on Tuesday.

Bossert did not provide details on the actions by the two American tech heavyweights but said the U.S. government was calling on other companies to cooperate in cybersecurity defense.