North Korea , which rattled regional security with a May 25 nuclear test , is preparing to test a long-range missile that could hit U.S. territory and mid-range missiles that could hit all of South Korea , a South Korean presidential Blue House official said last week .