"Good friends with NK which has just tested an UCBM, right?"
Good friends is stretching it a bit I think - they have some common enemies (the USA etc) but they also have different interests - NOK doesn't seem interested in threatening Israel for example
There has been a long history of people selling missile technology especially for hard cash - we dress it up as "joint design" or "joint manufacture" but it's much of a muchness