An ad hominem attack
is a personal attack
in the form of an ad hominem argument
Ad hominem attacks are often used in a debate or discussion where the speaker wishes to avoid the substance of the discussion and instead resorts to smearing the character of their opponent.
It is considered a logical fallacy and is one of the modes of spreading propaganda.