Patent ID: 11954333
Assignee: WESTERN DIGITAL TECHNOLOGIES, INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A data storage device comprising:
a non-volatile storage medium configured to store:
at least one file system control block, the file system control block comprising a first partition of the non-volatile storage medium configured to store:
firmware of the data storage device; and
at least one reference data structure comprised of records for protocol commands or malicious data; and

in a second partition of the non-volatile storage medium, user data blocks to store user data from a host computer system, wherein:
a device controller of the data storage device controls the at least one file system control block; and
the host computer system controls the user data blocks through storage commands to the data storage device;

a read/write device configured to write the user data blocks to the non-volatile storage medium;
a buffer configured to temporarily store user data transferred from the host computer system to the non-volatile storage medium; and
the device controller configured to:
receive, from the host computer system, a write command for user data for the user data blocks;
scan, from the buffer, the user data for the write command for protocol commands or malicious data, wherein scanning comprises comparing the user data for the write command to the records in the at least one reference data structure in the first partition; and
stop the data transfer of user data from the buffer to the second partition of the non-volatile storage medium responsive to at least one of protocol commands or malicious data being detected in the user data for the write command.