After men of Israel had committed halotry with the Moabite and Midianite women Moses seems to blame Balaam for this wayward behaviour
Numbers 31:14-18 NASB
Moses was angry with the officers of the army, the captains of thousands and the captains of hundreds, who had come from service in the war. And Moses said to them, "Have you spared all the women? Behold, these caused the sons of Israel, through the counsel of Balaam, to trespass against the Lord in the matter of Peor, so the plague was among the congregation of the Lord. Now therefore, kill every male among the little ones, and kill every woman who has known man intimately. But all the girls who have not known man intimately, spare for yourselves.
But Moses executes the leaders of the people after the incident of Peor and makes no mention of Balaam at all.
Numbers 25:3-5 NASB
So Israel joined themselves to Baal of Peor, and the Lord was angry against Israel. The Lord said to Moses, "Take all the leaders of the people and execute them in broad daylight before the Lord, so that the fierce anger of the Lord may turn away from Israel." So Moses said to the judges of Israel, "Each of you slay his men who have joined themselves to Baal of Peor."
All of Balaam's prophecies and counselling are recorded (Numbers 23-24) which he gave to Balak.In all his utterances there is no record of him counselling Balak to use women against the Israelites.Instead in their last encounter Balak is actually livid with Balaam for having blessed Israel.
How could Balak have been angry with Balaam if he had been given this counsel?
Was Moses using Balaam as a face saver for the wayward Israelites?