I have had three flocks over the years. It's never happened, but If a rooster ever attacks me, there will be a very serious pecking order redo, or a severe slapdown, or beheading.
I have known people who owned cats that have attacked them, and other animals as well. I will have no such nonsense.