I'm already quite far in the game and just realized something. Since the beginning of the game, I have never been attacked while resting. I wonder if this mechanic even exists or the game is just lying.