A non-covalent inhibitor that binds preferentially to the inactive state of KRAS while sparing NRAS and HRAS is reported, indicating that most KRAS oncoproteins cycle between an active state and an inactive state in cancer cells. This evidence concerns the gene KRAS and cancer.