If it's really for defense you don't have to go to the expense of patenting stuff, disclosure is enough. IBM used to publish Technical Disclosure Bulletins (TDB) - I assume for patent defence.
I do not like it one bit, but that does seem to be state of the software world right now.