1. A storage device with hardened security features for safe execution of scripts, the storage device comprising: a storage medium; an interface adapted to communicatively couple the storage device to a host system and to transport interface commands and information between the host system and the storage device; a set of safe commands stored on the storage medium; and a script interpreter within the storage device for processing scripts based on one or more received interface commands, the script interpreter adapted to enforce a strict ordering of script execution and to terminate script execution and roll back any changes associated with the script execution if an interface command invokes a script in violation of the strict ordering.