Stick insect
When threatened, some phasmids have femoral spines on the front legs (O. martini, Eurycantha calcarata, Eurycantha horrida, D. veiliei, D. covilleae). They curl the abdomen upward and repeatedly swinging the legs together, grasping at the threat.  If the menace is caught, the spines can draw blood and inflict considerable pain.