To dream of being attacked represents people or situations that you feel are hurting you emotionally or that threaten your sense of security. It may also reflect fears that you are giving in to. Other people may be angry or defensive with you. Issues that threaten a loss of some kind or increase unwanted risk (like illness, a financial loss, or something that threatens your relationship.)
An attack might also point to damage that has already occurred physically, financially, or to a relationship.
To dream that you attack someone reflects confrontation with an issue or a defensive attitude. You may be overcoming problems, or taking action against something you feel poses a threat to you.
Attacks in a dream may also represent your feelings about the current relationships.
Example: A man dreamed of rescuing his wife from being attacked. In real life he rejected a gift that a relative he didn’t like was offering her. He felt that the gift would reopen old conflicts that they had moved past.
Example 2: A young boy dreamed of being attacked. In waking life he feared his father’s angry outbursts.
Example 3: A young woman dreamed of seeing her friend being attacked and doing nothing. In waking life she had witnessed her friend being attacked for his personal views on race and did nothing to defend him.