KRAS inhibitors are used to treat certain types of non-small cell lung cancer and colorectal cancer. KRAS inhibitors work by targeting and blocking mutated KRAS proteins, helping to stop the spread of cancer cells. These medications are available in oral forms. Examples include Krazati (adagrasib) and Lumakras (sotorasib).