A storage device is protected, when interfaced with a host device, by
operating a security processor of the storage device in a "security" mode
in which the security processor filters commands that are received from
the host device and are targeted to the storage controller, and upon
determining by the security processor that the "security" mode is no
longer required, by operating the security processor in a "safe" mode in
which the security processor (i) does not filter commands it receives
from the host device and (ii) forwards to a storage controller of the
storage device such unfiltered commands.