The JSON License famously includes a provision stating that “The Software shall be used for Good, not Evil”.
This article explores why such provisions are not useful or meaningful in the greater software licensing conversation.
“Evil” is largely part of the software licensing conversation today because of a much earlier line drawn in the sand by open source software licensing proponents demanding that compliant licenses permit use for “Evil” (and consequently, placing a hard restriction on the individual freedom to refuse).
This is the most ridiculous part, if they ever try to enforce the license against someone the definition of evil is going to be decided by a court. In that context a humanitarian organization using your software to help Palestinians is more likely to be condemned than a military contractor that kills Palestinians.