Your first step toward stopping this behavior is to figure out what is causing your dog's aggression. Some dogs growl as someone approaches them while they're eating or chewing a bone, for instance.
"My dog, specifically at nighttime, will randomly growl... I was just petting her gently, and she growled. Other nights, we will just simply move, and she will be lying in her crate, and she'll growl.