Hi, thanks for using Petco Pet Education Center, formerly Petcoach!
If he is attacking you and not trying to play then he should be confined, you should always keep him up to date on Rabies, and you should discuss behavior modification drugs with your Vet, like prozac. I would get it in a liquid form you can put in his food. I would purchase feliway diffusers for around the house, one should go in his room. You can play with him but as soon as he gets over stimulated you need to stop and walk away. If he starts to get aggressive and is coming towards you squirt him with a water bottle. It is inappropriate behavior for a cat to attack you and injury you that badly. You need to strongly consider if this is the kind of relationship you want from a pet. This may not be an easy thing to break him of.