Parasitized Caterpillar

Parasitized Caterpillar

Observation - Parasitized Caterpillar. Description: Initially this appeared to be a caterpillar laying eggs but knowing this could not be the case, I'm presuming the caterpillar has been parasitized and the parasitic larvae are emerging? The caterpillar did appear to be very much alive which was surprising

Initially this appeared to be a caterpillar laying eggs but knowing this could not be the case, I'm presuming the caterpillar has been parasitized and the parasitic larvae are emerging? The caterpillar did appear to be very much alive which was surprising if the larvae had been feeding off it?