How it works
This is a passive sentence — the snake is what acts, but the focus is on being on the receiving end. に (by) marks the agent doing the biting (蛇 (snake)), and 噛む (bite) shifts into its passive past 噛まれた (was bitten). The person who got bitten is left unsaid — context carries it.