Logical fallacy

Guilt by association

A claim or person is discredited merely because of an association with a disliked person, group, or belief. The shared association does not establish the alleged defect.

A link of colored threads from one dark figure to several independent figures

Examples

The accountant once attended a workshop run by a convicted fraudster. That association proves her present figures are fraudulent.
Attending a single workshop supplies no reason to think the accountant used or adopted the organizer’s misconduct.
A person in the choir cheated at cards. The rest sing with him, so their testimony is equally dishonest.