Shelob is a child of Ungoliant, the primordial spider, and is actually independent of Sauron's will though still decidedly evil in her own right. Frodo and Sam encounter her on the path to Mordor and she is fended away with the phial of Galadriel and Sting.