'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