When threatened, crushed, or even just handled, stink bugs release a pungent chemical from glands on their bodies to ward off predators. A sudden bad smell usually means a bug was disturbed or squashed nearby, or that there are enough of them around for the odor to build.