Mass. Gen. Laws ch. 272, § 77C
(a) For the purposes of this section, the following words shall, unless the context clearly requires otherwise, have the following meanings:
''Animal'', a living nonhuman mammal, bird, reptile, amphibian, fish or invertebrate.
''Sexual contact'', (i) any act between a person and an animal that involves contact between the sex organs or anus of one and the mouth, anus or sex organs of the other; (ii) touching or fondling by a person of the sex organs or anus of an animal, either directly or through clothing, without a bona fide veterinary or animal husbandry purpose; (iii) any transfer or transmission of semen by the person upon any part of the animal; or (iv) the insertion, however slight, of any part of a person's body or any object into the vaginal or anal opening of an animal or the insertion of any part of the animal's body into the vaginal or anal opening of the person.
(d) Upon a conviction for a violation of this section and in addition to any other penalties as may be provided by law, the defendant shall forfeit the animal whose treatment was the basis of the conviction to the custody of an entity incorporated under the laws of the commonwealth for the prevention of cruelty to animals or for the care and protection of homeless or suffering animals.
Upon a conviction for a violation of this section, the defendant shall not: (i) work in any capacity that requires the person to be in contact with an animal, including a commercial boarding or training establishment, shelter, animal control facility, pet shop, grooming facility, commercial breeder service, veterinary hospital or clinic or animal welfare society or other nonprofit organization incorporated for the purpose of providing for and promoting the welfare, protection and humane treatment of animals; or (ii) harbor, own, possess or exercise control over an animal, reside in a household where any animals are present or engage in an occupation, whether paid or unpaid, or participate in a volunteer position at any establishment where animals are present for any length of time that the court deems reasonable for the protection of all animals; provided, however, that the length of time shall not be less than 5 years after the person's release from custody.