A spokesperson for the Democratic People's Republic of Korea (DPRK) has officially rejected the claims.
It said, "As we have clearly stated on several occasions, we have nothing to do with cyber attack and we do not feel a need to respond, on a case-by-case basis, to such absurd and wild allegations of the US," the spokesman said, according to the North Korea's official Korean Central News Agency (KCNA).
"However, we can not condone the fact that the US is daring to take a stand on our country with the problem of cyber attack," added the spokesperson.
"The [WannaCry] attack was widespread and has cost billions, and North Korea is directly responsible. We do not make this allegation lightly. It is based on evidence. We are not alone with our findings, either," he said.
Ever since Trump came to power in November last year, he has been at loggerheads with North Korea over alleged conducting of nuclear tests.
Amid the tension between the nations, which has put the world on alert of conflict, Trump referred to North Korean leader Kim Jong-un as a "little rocket man", while his rival has previously called him a "mentally deranged dotard" and an "old lunatic" respectively. (ANI)