Erythritol, the main component of the sweetener Truvia, was discovered to be an effective insecticide. A naturally occurring sugar alcohol, erythritol is found in small amounts in many fruits.
It has been recognized by the US Food and Drug Administration as a safe food additive. For humans, anyway. Erythritol is toxic to fruit flies, which are drawn to it even when other options are available. Researchers at Drexel University are pursuing a patent on erythritol as a human-safe insecticide while continuing to study its effectiveness.