President Donald Trump warned Sunday that North Korea's Kim Jong Un had "everything" to lose through hostility towards the United States, after Pyongyang said it had carried out a major new weapons test.

"Kim Jong Un is too smart and has far too much to lose, everything actually, if he acts in a hostile way," Trump tweeted in response to the unspecified test at the Sohae space launch center.

Donald Trump and Kim Jong Un
North Korea's leader Kim Jong Un and US President Donald Trump cross south of the Military Demarcation Line that divides North and South Korea, after Trump briefly stepped over to the northern side, on June 30, 2019 Photo: AFP / Brendan Smialowski

The announcement of Saturday's test came just hours after Trump said he would be "surprised" by any hostile action from the North, emphasizing his "very good relationship" with Kim.

Trump and Kim engaged in months of mutual insults and threats of devastation in 2017, sending tensions soaring before a diplomatic rapprochement the following year.

The pair have met three times since June 2018 but with little progress towards denuclearization. Pyongyang has set Washington a December 31 deadline to make new concessions to kickstart stalled talks.

Kim Jong Un
North Korean leader Kim Jong Un (C) and US president Donald Trump flung insults and threats at each other in 2017 Photo: KCNA VIA KNS / KCNA VIA KNS

"North Korea, under the leadership of Kim Jong Un, has tremendous economic potential, but it must denuclearize as promised," Trump tweeted.

"NATO, China, Russia, Japan, and the entire world is unified on this issue!"

Kim Jong Un and Donald Trump
In mid-November 2019, Donald Trump hinted at the prospect of a fourth meeting with the North Korean leader in a tweet, only to be dismissed by Pyongyang Photo: AFP / Brendan Smialowski

Writing that Kim had "signed a strong Denuclearization Agreement" at their June 2018 summit in Singapore," Trump warned: "He does not want to void his special relationship with the President of the United States or interfere with the U.S. Presidential Election in November."

Separately, interviewed on the CBS TV news program "Face the Nation," US National Security Advisor Robert O'Brien was asked whether North Korea was preparing to restart nuclear tests.

"I hope not. That would be a mistake on the part of North Korea," O'Brien said.

North Korea Nuclear Testing
This picture from North Korea's official Korean Central News Agency (KCNA) reportedly shows the test-fire of a super-large multiple launch rocket system Photo: KCNA VIA KNS / KCNA

"Kim Jong Un promised to denuclearize North Korea," O'Brien said. "And we expect him to live up to the promise he made at the summit in Singapore. And we hope he'll do so."

On Saturday, South Korea's President Moon Jae-in spoke by phone with Trump and agreed to maintain dialogue with Pyongyang.

The 30-minute talk was the first conversation between Trump and the South Korean leader since they met at the UN General Assembly in New York in September.

Imjingak 'peace park' near the Demilitarized Zone
A woman hangs a 'peace ribbon' on a fence at the Imjingak 'peace park' near the Demilitarized Zone (DMZ) separating the two Koreas -- South Korean President Moon Jae-in spoke with US leader Donald Trump after the North's latest weapons test Photo: AFP / Ed JONES

"The two leaders shared an assessment that the current situation on the Korean peninsula is grave," said South Korean presidential spokeswoman Ko Min-jung, adding that Trump had requested the call.

A spokesman for North Korea's Academy of National Defense Science said Saturday's "very important test" would have an "important effect" on changing the "strategic position" of North Korea, in a statement carried by the official KCNA news agency.

The statement provided no further details on the test.

A senior US administration official earlier said Washington had seen reports of a test and was "coordinating closely with allies and partners."

Trump indicated that military action was still possible when he was asked about Pyongyang on the sidelines of a NATO summit in Britain last week.

North Korea fired back that if the United States used military force, it would take "prompt corresponding actions at any level."

UN diplomats fear that the North will resume long-range nuclear or ballistic tests if progress is not made soon in talks with Washington.

Sohae, on North Korea's northwest coast, is ostensibly a facility designed for putting satellites into orbit.

But Pyongyang has carried out several rocket launches there that were condemned by the US and others as disguised long-range ballistic missile tests.

Following the Singapore summit, Trump said Kim had agreed to destroy "a major missile engine testing site," without naming the facility.

Kim then agreed to shutter the Sohae site during a summit last year with Moon in Pyongyang as part of trust-building measures.

Copyright AFP. All rights reserved.