You sound like me--I'm not quite as radical wrt Microsoft and Apple (the devil you know), but a long time ago I made up a list of "places I won't work for and why" and the MIC was on the top, you know, the Lockheeds and the Raytheons who help murder innoncents and subjugate Americans (looking at you Level III System and your asinine naked body scanners in the airports that you just
had to sell to the government).
I know some of it is not completely ratioanal--Boeing makes civilian aircraft as well as military. And I accept that not all "defense" products are bad. We need a strong defense. What we don't need is bombs falling 24x7 for 17 years now jus so some a-holes can make billions of dollars off the suffering of others.
And yes, Microsoft, Oracle, and even Apple and Google products run a lot of military systems that enable that killing.
What I found in this exercise is that many of the companies I worked for were indirectly compromised--it's amazing how many firms take money from government sales, money handouts from government/military programs, etc. It's truly amazing how little "private" there is in the private sector.
All developers should take a course in ethics and not stray from those teachings. It would also be helpful to get some philosophy in your toolbox as well. And then maybe, maybe, some of this bullshit would finally cease.