If you're not actively and directly involved in military activities, there's little that you can do about the knock-on effects of whatever it is that you're engaged in; and even if you can quantify the human cost of your activities, it needs to be offset against the positive externalities. For example, the same software that allows Palantir to identify 'bad guys' who are potential targets for military attack is equally capable of identifying peacemakers or other constructive individuals who are good candidates for receiving financial aid or suchlike.
Technology itself is neutral. Don't use it as a stick to beat yourself over the imperfect state of the world.