Most likely, N.Korea learned some tricks on missile technology from China. China learned a lot from US due to the communist witch hunt. US in turn got some missile technology from Germany in the end of WW2.
The Brits pushed opium as a nation to China with the help of the 8-alliance nation including the US. Now the US/West is suffering from drug addicts. That seems the world is just a big circle as Columbus said.