Anyone who chose to openly associate with either of the Dolohovs was in danger. Hermione hated herself for allowing Hannah to talk her into going for a walk. Their home would've been safer. At the very least, no one would've seen them so boldly out together. Hannah was just begging for a target to be placed on her back. Everyone Hermione associated with ended up regretting it eventually.