Unless yu are referring to a seriously feral cat - I am quite sure she is not "wild."

Even most ferals started their lives as domestic pets or as the offspring of domestic pets. And I have never in my life met a cat who attacks for no known reason. There HAS to be a reason.
In this case, it may well be that it is learned behaviour. She may not have been corrected as a kitten and now she attacks to get what she wants. You will need to retrain her so that she does not engage in that behavious. Also, as Amber said an indoor cat is a safe cat. Outdoors is no place for a cat - there are too many dangers - automobiles, mean humans, other predators, poisons... - it is just not safe. Cats are go outside have a lifespan of only one third that of an indoor cat.