A storage device with hardened security features for safe execution of
scripts has a storage medium, an interface, a set of safe commands, and a
script interpreter. The interface is 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. The set
of safe commands is stored on the storage medium. The script interpreter
is disposed within the storage device for processing scripts based on one
or more received interface commands. The script interpreter is 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.