Silkworms are really weird feeders, they have lots of good stuff, but bad stuff they do have too. They contain thiaminase and are on vet warning list for better-not- feed. Beardies and chams owners swear by them however.

I Always better take safer route and say its better to avoid these if in question. By the way most frogs won't eat these anyway, they don't move much and look weird probably from frog perspective.

you can also try hormworms, not a lot, one may be every now and then if they eat.