Gaining privileges, also known as privilege escalation, is a cyberattack technique that allows attackers to gain more administrative rights on a system or network.