The porn industry has been doing this for a while. I remember about 4-5 years ago were services available to content producers that scanned tube sites and newsbins for copyrighted content. You had to pay for it though (SaaS, they wouldn't sell the code). It was somewhat of a racket, because the people selling the detection service were also running the tube sites that were condoning piracy.
It's amazing how the porn industry is often on the front line of technology. They rarely get any notice though.
Israel already does this, both offense and defense. They have university initiatives that teach "cyber" (I hate that term).
It would probably be difficult to get DoD brass to care about this. They're used to their defense products being physical items (warheads, tanks, drones, etc) that are harder to steal. Sure, you can steal the schematics and such, but then you can track purchases of restricted components and guess who's building what.
With software, the schematic/code is the weapon. You don't really have to put it together, but perhaps do some poking around to understand it. This is why it's so devastating when the NSA's arsenal gets scooped up by foreign belligerents.
It's amazing how the porn industry is often on the front line of technology. They rarely get any notice though.