Yes, trick-or-treaters! I have thought of that, too. When they come to a house dressed up in costumes, the dog has double reason to worry and possibly attack: one, they are strangers, two, they look very unusual and therefore threatening. It is a good idea to keep dogs inside for Halloween.