I would feed or inject the larvae with the suspected pathogen at various doses and see if they (the larvae) get sick (stop eating, stop moving, lose weight, turn color, ...) and/or die. This would be classified as a bioassay.
First of all, Identification the causative if its Microorganism or Chemical, by Koch's Postulates: to Identify the Causative Agent of an Infectious Disease, and bioassays ,there are kits for different causal agents, also you could detect it by microscope , isolate it on different medium. even the larvae alive you could get some blood by syringe or culture there Stools caterpillar droppings, you may found some bacterial exudates .
Pls. find the attached files, may help in your research. Good luck
T. W. Fisher, Thomas S. Bellows, L. E. Caltagirone, D. L. Dahlsten, Carl B. Huffaker, G. Gordh. 1999. Handbook of Biological Control: Principles and Applications of Biological Control Academic Press,Pp. 1046. ISBN0080533019, 9780080533018
We tested virulence of Vibrio anguillarum strains in sea bass larvae. The protocol is described in the paper below. It is a robust assay to assess the virulence.