This defense mechanism occurs when people disguise their own threatening impulses by attributing them to others. this is known as:

Respuesta :

Ivka93
Projection. Projection is defense mechanism which implies tendency and inclination of a person to project she's own wishes, impulses or contents of subconsciousness which is not acceptable to she's own ego, to other by attributing similar characteristics to them.
Q&A Education