To expand, I think you may be (intentionally or unintentionally) referring to loitering munitions. These are munitions (not just SAMs but other bits of kit) that are launched in theatre with no specific target set on the ground, then reconfigured in-flight after relaying information back to the ground.
Traditional SAMs aren't quite the same thing and serve different purposes.
Traditional SAMs aren't quite the same thing and serve different purposes.