https://en.wikipedia.org/wiki/Polydnaviriformidae#Life_cycle

Parasitoid wasps serve as hosts for the virus, and Lepidoptera serve as hosts for these wasps. The female wasp injects one or more eggs into its host along with a quantity of virus. The virus and wasp are in a mutualistic symbiotic relationship: expression of viral genes prevents the wasp's host's immune system from killing the wasp's injected egg and causes other physiological alterations that ultimately cause the parasitized host to die. Transmission routes are parental.[2]