Japan isn’t as threatened as Taiwan, but is still liable to earthquakes, tsunamis, and is uncomfortably close to both North Korea and Russia.
North Korea has a main beef with South Korea and is full of starving people equipped with WW2 tech has no airforce and some nukes with questionable functionality, while Russia can't even move past Eastern Ukraine with all its power let alone venture into other areas.
How are they a threat to other nations?
They seem to have ballistic missiles and they don't need to be particularly accurate to hit somewhere in Tokyo.
(Only tiny bit relevant Russia allegedly blew up ammo depo in Czech republic in 2014 https://en.m.wikipedia.org/wiki/2014_Vrbětice_ammunition_war...)
Interestingly a bunch of NK’s aging infrastructure was supposedly built by the Japanese.