Rootkits can be detected through a rootkit scan, which is typically part of antivirus solutions. They search for known attack signatures and rootkit behaviors.