Here, we proposed a nanomaterial platform based on gold nanobeacons to detect, target and inhibit the expression of a mutant Kras gene in an in vivo murine gastric cancer model. This evidence concerns the gene KRAS and gastric cancer.