I have a RIR hen that was often aggressive with me. She didn't attack in the way you described, but she would rush toward me and peck my leg, especially when I turned around. She stopped doing this when I reminded her that I am dominant over her. A couple of times a week, I would put my hand on her back and gently hold her down in a squatting position, like the crouching position hens assume for roosters (and for people who reach down to pet them). She occasionally needs a re-teach, but for the most part the aggressive behavior stopped.