In a masquerade attack, the attacker uses another identity to gain access to a system or network. This type of deception relies primarily on using a fake identity to be successful.