proverb

A rotten apple spoils the barrel.

bad

suggests that

A dishonest or immoral person can have a bad influence on the whole group.