I can't tell what kind of worm ot leaf you have there. Did you get it form an area that you are certain would be free of and kind of pesticide? That is your first question. If you can tell me the kind of tree it was on, that will help.
We have a lot of people who can answer you much more completely than I have. Maybe one of them will chime in.