In Joshua ch. 7, Achan’s family was punished for their apparent complicity in his crimes. Seems like a pretty good rule.
In pre-Christian Ireland they lived by a code called the Brehon laws. When anyone was found guilty of a crime, their family had to serve the sentence with them.