The question is, is can our pet snakes attack us? And the simple answer is yes. One of the most common reasons a pet snake will attack you is when you get a new snake they are a little bit nervous and if they're not used to you when you reach in, they can attack you. Remember that they are solitary creatures and they need to relax for a few days to understand where they are, get comfortable with their environment. Be confident in the way you pick them up. Never pick them up in the front third of their body, always in the back, and they'll be much more confident with you, but they can attack that way.
The second most common reason a snake will attack you if you will, is in feeding. Remember that our pet snakes sense their food, heat and odor and if you are handling the food, and then you reach in with your hand the snake will perceive heat and the odor of bait and you can get bitten. That probably is the most common reason that the snake will attack you. For a snake to be aggressive to attack us, our pet snakes are much more shy, and are more likely to move away from you, and find a hiding spot than aggressively attack you.