Dark Patterns are unethical design tricks that try to take advantage of human psychology to get users to do things they don't really want to do. Companies utilize dark partners in websites and apps, and there are 11 types known according to darkpatterns.org: Sneak into Basket, Roach Motel, Privacy Zuckering, Price Comparison Prevention, Misdirection, Hidden Costs, Bait & Switch, Confirmshaming, Disguised Ads, Forced Continuity and Friend Spam, that will be explained in future posts. For example, when airline apps include travel insurance by default and hide the deselect option or when unexpected charges appear in the last step of the checkout.
To not become a victim of dark paterns, it's important to be aware of the dark patterns that are out there to be able to recognize when companies use them. Businesses that practice these deceptive methods should get shamed. In Harry Brignull words: ""Dark patterns are not bad design are evil design,"" because in dark UX color theory is manipulated to misdirect, language is used to confuse rather than to clarify, and the user is exploited to boost company reach or profits.
• Dark patterns in UX: how designers should be responsible for their actions
• #150 Dark Patterns with Harry Brignull Podcast
Design Details did a great job of breaking down the ethics of it — importantly noting this is not just a "design" issue. It's includes Product Management, Engineering, and others who have a say in the development cycle. The analogy to military orders is quite appropriate.
Also relevant is James' post on Ethics