KRAS mutations are typically detected through molecular diagnostic techniques such as PCR (Polymerase Chain Reaction) and sequencing. In histological samples, these techniques can be applied to paraffin-embedded tissues, allowing for accurate mutation analysis.