how to attach a prefab on animated mesh

hi, im trying to attach a cube to an animated mesh so that the cube follows wherever the head moves, as a headshot collider. is this even possible?

Yes, you attach it to the bone in the hierarchy.