Detection of KRAS mutations is typically performed using techniques such as polymerase chain reaction (PCR), next-generation sequencing (NGS), and Sanger sequencing. These methods allow for the identification of specific mutations within the KRAS gene, aiding in diagnosis and treatment planning.