Abstract: An image processing apparatus includes: an image processing part; a storage part including a nonvolatile region that stores data in a nonvolatile manner; and a hardware processor that controls the image processing part, wherein the nonvolatile region includes a plurality of storage regions, the storage part stores setting information indicating whether each of the plurality of storage regions is a target of malicious code detection processing, and the hardware processor performs the malicious code detection processing only on a storage region that is the target of the malicious code detection processing based on the setting information among the plurality of storage regions.