'guilt by association' definitions:

Definition of 'guilt by association'

(from WordNet)
noun
The attribution of guilt (without proof) to individuals because the people they associate with are guilty