Call it a conundrum.
Despite Japan being a likely target of freshly erupting North Korean ire, traders still see the yen as a safe-haven play, and they're pushing the currency higher.
The yen has surged, with the dollar fetching around 109 yen, having shed more than four big figures in the last month.
That's in stark contrast to another country likely on the North's target list, South Korea, which saw its currency, the won (Exchange: KRW=), markedly drop. The dollar traded near 1,142 won on Friday, largely within the same upward trend it's seen in recent weeks.
The dollar's gyrations come as fears rise over the possibility of an armed confrontation with North Korea. Earlier this week, markets were roiled by a statement carried by Pyongyang's state news agency that it was "carefully examining an operational plan" for targeting the U.S. island territory of Guam with "enveloping fire."
If Washington wished to avoid military action , it should stop "recklessly" provoking Pyongyang, a separate statement from another military spokesperson said, according to the stat-run outlet.
North Korea's threats comes amid blunt warnings from President Donald Trump , who has used language similar to the North's own frequent saber-rattling: Pyongyang "will be met with fire, fury, and frankly, power, the likes of which this world has never seen before," Trump said this week.
The president's warning followed a Washington Post report, citing a confidential U.S. intelligence assessment, that claimed the pariah state had successfully produced a miniaturized nuclear warhead which could fit inside its missiles.
The current war of words appears so far confined between Pyongyang and Trump, but if the situation escalates, Japan could become a target.
But instead of outflows, the yen has seen safe-haven inflows.
Takuji Okubo, chief economist at Japan Macro Advisors, said that's because Japan is a net overseas investor, both on the retail and institutional levels.
"For those Japanese investors who are invested overseas, having their assets in non-yen is a risk because they are exposed to foreign-exchange volatility," he said on Wednesday. "So when these geopolitical risks, or any risks, get heightened, they want to reduce risk and that means unwinding overseas investments."
The size of Japan's overseas investments has been fairly large: At the end of 2016, Japan had around 159.195 trillion yen ($1.448 trillion) in overseas direct investment and 452.917 trillion yen in portfolio investment, according to data from Japan's Ministry of Finance.
But South Korea's won doesn't have the same support. Okubo noted that South Korea is a net creditor with its financial institutions dependent on foreign credit.
Still, pulling funds back into yen amid a heightened possibility that Japan could be a military target may not be the most logical move.
"People with trigger fingers do a knee-jerk response. Never underestimate that factor," Michael Every, head of financial markets research at Rabobank, said on Wednesday.
But he added, "It's a traditional response, but personally I don't see it as in any way rational."
Indeed, he noted that the U.S. dollar (STOXX: .DXY) also rose overnight, as another likely safe-haven play on the North Korea tensions.
But with both Japan and the U.S. likely drawn into any potential conflict, he pointed to the euro (Exchange: EUR=) and the Swiss franc (Exchange: CHF=) as better safe-haven choices.
Others said that while the yen was seeing inflows as markets turned risk-off, that wasn't necessarily a safe-haven play.
"It's not a safe haven whatsoever," said Jesper Koll, CEO of Wisdom Tree Japan on Tuesday. "It's really sort of the reverse of the carry trade," with global macro speculators paying back their short term borrowings as they cut their risk positions, he said.
Koll noted that since the collapse of Lehman Brothers during the global financial crisis, other regions' banks have made it difficult to borrow for short-term speculation, while Japanese banks have kept open the taps.
But Koll noted that after speaking with sovereign wealth funds, pension funds and insurers, he was more concerned that the latest flare-up of tensions with North Korea presented a more difficult risk situation than investors were accustomed to.
"The key thing that has changed is that there is a regime change in the U.S., where the U.S. is happy to be confrontational and threatening, rather than conciliatory and trying to find a multi-lateral solution," Koll said. "No one can tell you how this can end or what a possible solution is."
So while funds were flowing back into the yen, Koll said investors were holding back from investing in Japanese assets, such as equities, because Japan was at risk from a potential escalation of tensions on the Korean peninsula.
Not everyone was on board, however, with pinning the yen's climb on the tensions over North Korea.
Ed Rogers, CEO of Rogers Investment Advisors, said he doesn't think the missile crisis had anything to do with the dollar/yen moves.
"Japan is one of the two primary targets for North Korean missiles, so why is it a safe-haven?" he asked, noting the U.S. would be the other target. "I'm quite dubious that because North Korea has marginally improved its missile capability, that's having an impact."
Rogers said the yen's move wasn't huge and he expected other news, such as fresh developments in the U.S. Department of Justice's investigation of the Trump campaign's Russia ties may be more relevant to any safe-haven move toward the yen.
"From an economic point of view, [Japan's] economic data continues to be OK. Nothing's fallen apart here," he said. "If it continues on a moderate improvement, and wondering what's going to go on for political troubles in the U.S., that's a more reasonable answer for why the [yen] might start to strengthen."
But others were more certain that the flows in the yen were driven by concerns over North Korea.
Shusuke Yamada, chief Japan foreign-exchange strategist at Bank of America-Merrill Lynch, noted that while the yen's move against the dollar wasn't particularly sharp, the yen had risen notably against other currencies perceived as risky, including the euro, the Australian dollar and South Korea's won.
-Nyshka Chandran contributed to this article.