Ok thanks I will try that!First off, are your sure she us attacking you and not just pecking at shiny or interesting things on you?
If you are sure then this method might work.
Bop her on the head with your fingers. This
imitates a high up hen scolding a lower one. Do it every time she does the behavior. She should stop eventually. And if she starts again later then repeat the same method.
Hope that helps.