State public health officials said Tuesday that a fox that attacked a 2-year-old over the weekend in a Hope Mills yard tested positive for rabies.