I don't want this to come across as if I support these particular programs, but I would imagine some tech comes out through veterans and takes on consumer applications.
Does the NSA file patents? If not, usage of tech is probably enforced by the honor code