Lol. Sure dude, it's the programmers who are the bad guys, not the people funding the israel/palestine war or in this case the owners of the company who decide to make software that helps assasinate people.
I can't say I know where the line is. For example, would it be unethical to work for Facebook? I don't know and I don't think so. Working for an online casino? In my opinion yes, but others would disagree. Writing software that is used by authorities to hack activists cell phones? Absolutely! It's so far beyond the pale that I can't fathom how anyone could defend it.