This is the thing that you shall do: you shall utterly destroy every male, and every woman who has lain by man.
The way to determine the rightness or wrongness of Israel’s actions is to compare them with God’s revealed will in the Mosaic Law.