I know some of my readers are single woman, they live alone, they are thinking about getting a dog for personal protection. Dogs can be great security guards, but you have to train them for it.
Training your dog attack command is not an easy task. Mainly because you do not want your dog to behave aggressively all the time, you want him to attack the intruders.
Professional trainers are raising security dogs for years. You can take your dog to a training center. Or you can also train him at home.
The idea is to make your dog understand he will have to attack intruders. But needs to understand he can only get violent when you say attack. He cannot attack you or your family members.
I am saying this from personal experience; please do not feed your security dog raw meat as this can make him really violent.