In San Francisco, it’s illegal to own livestock, but it was very popular at one point to have miniature pigs as house pets. Let’s say I’m attacked by livestock that isn’t owned legally? What does the case look like, how is it different, and what is the insurance company going to argue? Are they going to cover it?
With animal attacks the insurance company is very unlikely to cover that loss. As a rule, the pet has to be legally owned.
California Penal Code Section 399 says that a person is criminally liable if a dangerous animal he or she owns injures or kills another person. This could apply to dangerous dogs, but also other animals such as wild animals people tend to own and domesticate.