North Korea on Tuesday staged its most powerful nuclear test yet, claiming a technological breakthrough with a "miniaturised" device in a striking act of defiance to global powers including its sole patron China.
The isolated state said its third underground test, conducted in the face of severe warnings from the UN Security Council, was a direct riposte to what it termed US "hostility".
North Korea's claim of miniaturisation will be of particular concern, suggesting it is a step closer to fitting a nuclear warhead onto a ballistic missile.
The confirmation from state news agency KCNA came nearly three hours after seismic monitors detected an unusual tremor at 0257 GMT in the area of the country's Punggye-ri nuclear test site, close to the Chinese border.
Analysts said the timing appeared to be an attention-grabbing calculation from a state well versed in provocative acts, coming just ahead of US President Barack Obama's State of the Union address at the start of his second term.
Obama denounced the test and called for a "swift" and "credible" international response, as the Security Council readied to meet. Condemnation came from others including Russia, while Japan saw a "grave threat" to its own security.
It was the North's first nuclear test since its new, youthful leader Kim Jong-Un took over from his father, Kim Jong-Il. Security analysts said it sent a bold message of intent following a successful long-range rocket launch in December.
"The launch and the test are empirical evidence that Kim and his regime have no intention of negotiating away the North's nuclear programme any time soon," said Paul Carroll, programme director at the US-based Ploughshares Fund.
North Korea's two previous tests in 2006 and 2009 triggered waves of UN sanctions, and the Security Council was expected to debate new measures when it meets on Tuesday morning in New York.
There was no immediate response from China, but a UN diplomat said Beijing had made its displeasure clear to Pyongyang.
"The Chinese gave the North Koreans a strong warning against carrying out a test as it became apparent that it was imminent," said the diplomat, speaking on condition of anonymity, labelling the test "a big challenge to the Chinese".
On a technical level, along with the miniaturisation aspect, experts are hungry to know if North Korea has switched from plutonium to a new and self-sustaining nuclear weaponisation programme using uranium.
The KCNA statement did not specify what fissile material was used, but noted that the test's success had provided the North with a "diversified" nuclear deterrent.
The North has substantial deposits of uranium ore and it is much easier to secretly enrich uranium, which can be done in centrifuges rather than the nuclear reactor required for plutonium enrichment.
Tuesday's explosion had a yield of six to seven kilotons, South Korean defence ministry spokesman Kim Min-Seok told reporters, significantly more than the 2006 and 2009 tests, which both used plutonium.
The explosive yield compared with 15 kilotons in the world's first atomic bomb dropped by the United States on the Japanese city of Hiroshima in 1945.
North Korea's first test yielded less than one kiloton and was widely seen as a dud. The second test yielded between two and six kilotons, according to Seoul.
The third test throws down a stark security and diplomatic challenge to Obama as well as to new Chinese leader Xi Jinping.
Paik Hak-Soon, a North Korea expert at the Sejong Institute in Seoul, said Kim Jong-Un was intent on triggering a crisis that would force the international community to negotiate on his terms.
"The UN is running out of options and probably knows new sanctions would only have a limited impact," Paik said.
"The only real option for curbing further provocation is starting a dialogue with the North, but that will be very difficult given the domestic political pressure on leaders in the US, South Korea and Japan," Paik said.
On top of uranium enrichment, a proven miniaturisation ability would take on added significance following December's rocket launch, which marked a major step forward in ballistic prowess, and provoked still-tighter UN sanctions.
At the UN Security Council, the United States and its allies will push hard for China to get tough with its erratic ally.
But China's leverage is limited, analysts say, by its fear of a North Korean collapse and the prospect of a reunified, US-allied Korea directly on its border.