Use two insecticide applications 7 days apart to control newly hatching larvae and continue to monitor for additional activity. Sprays need to penetrate the canopy to cover the vines to be effective. Home gardeners may have some success with deworming the vines. At the first signs of the sawdust-like frass, vines are slit lengthwise near where the damage is found and the borers removed. The stems should be immediately covered with earth.
Sanitation is also important.
After harvest is complete, vines should be removed from the garden and composted to prevent the remaining borers from completing larval development. Burying a few nodes along each vine will encourage rooting at these nodes. This will lessen the impact if squash vine borers girdle the base of the vine. If you see a vine wilting, slit open the stalk and remove the borer.