1. A method to detect a potential attack on a memory of a memory device, the method comprising, by a hardware processor: sending a request to the memory device, wherein the request includes a request for information that relates to memory writes to the memory of the memory device; receiving a response from the memory device, wherein the response includes the information that relates to the memory writes; determining, based on the response, an amount of the memory of the memory device written to during an interval of time; detecting the potential attack on the memory by: assigning a data threshold and a time threshold to each application of a plurality of applications executing on the memory device, wherein the data threshold and the time threshold are different for the plurality of applications; comparing, for a particular application of the plurality of applications, the amount of the memory of the memory device written to during the interval of time with the data threshold assigned to the particular application; and in response to the amount of the memory being written to equaling or exceeding the data threshold assigned to the particular application, comparing the interval of time with the time threshold assigned to the particular application to detect the potential attack when the interval of time exceeds the time threshold assigned to the particular application, wherein the potential attack on the memory includes a potential attack on a data block of the memory, and wherein the potential attack, if successful, would disable the data block to no longer store information; generating an alert based on the detection of the potential attack; and preventing, based on the generation of the alert, the particular application from accessing the memory of the memory device.