None Too Smart - But that's the US 'Intelligence' Lot
There are programs used by the US Government departments that have thousands of lines of code written by subcontractors in other countries. And I am thinking China and Russia, as well as India, etc. And these reams of code aren't identified as "Written by Russians" either. One of the few ways to identify such code is to check them for comments buried in the code.
The DPRK is smarter, it will allow NO ONE other than North Koreans to touch the code for either rocket or any other military projects. In fact, Foreign Guest Workers aren't allowed anywhere near any military hardware or software production!
Some of the Russian security services have reverted to using TYPEWRITERS which are very hard to 'hack'.
Obviously this an attempt to persuade US corporations to 'buy American' so the NSA, et al, can deploy THEIR backdoors without having to struggle with decoding the foreign code! Obama went around the word bad-mouthing HuaWei products, whilst the British ALLOWED HuaWei to set up development labs in Banbury, with oversight/cooperation from the GCHQ.
Meanwhile, back in the US of A, things still are akin to Harry Belafonte's "There's a Hole in my Bucket" with all and sundry saving a fortune on R&D stolen from military contractors as the systems remain little changed. Seen the latest Chinese fighter planes?