In vivo CRISPR–Cas9 screening in an immunogenic murine lung cancer model identified mechanisms by which oncogenic KRAS promotes immune evasion, most notably via upregulation of immunosuppressive COX2 in cancer cells. Here, KRAS is linked to lung cancer.