

Isn’t that attack only viable within minutes of a machine being powered down?
Not even, try seconds at most.
All things considered, a cold boot attack is only remotely feasible if the system is powered on when the attack begins. If it’s powered off for any length of time, your memory will have decayed past the point of it being usable for the attack.
FYI, the cold boot attack is only viable for a handful of seconds before your memory decays enough for it to be worthless for that attack.
Powering your system down yourself prevents this. Just make sure your system doesn’t have fastboot enabled or hibernates instead of a true power off.