Both Ephraim and Judah have fallen into apostasy and have made 'covenants' with the pagan gods of the underworld. God has laid a cornerstone in Zion which will be the origin of the plumb line of truth. This cornerstone, the Messiah will, sweep away the refuge of lies (pagan gods) that Israel foolishly trusts in.