It could be worms. Or just as likely impacted anal glands. A quick trip to the Vet would answer whether the anal glands are impacted. If so then the Vet can express them.

I have my critters on Sentinel for heartworm year around. It also knocks out, just about every other worm except whipworms and tapeworms.