The millipede does possess glands that produce highly toxic chemicals.
The female millipede, sensing danger, emits her secret weapon, cyanide.