Apparatus for real-time inspecting malicious code in digital rights management environment and recording medium storing program for executing method of the same in computer

PURPOSE: A device for inspecting malicious code in real time in a digital-rights management environment and recording medium storing program for executing a method of the same in a computer are provided to inspect and cure the infection of an encrypted document in which a DRM is applied by loading the vaccine program in a DRM supporting application program through an interface which is connected to a vaccine program. CONSTITUTION: A DRM module(110) checks user authentication about the DRM file based on a handle which is generated by corresponding to the DRM file and decodes/encodes a DRM file while reading/writing the DRM file if a user inputs an execution command about a DRM(Digital Rights Management) file. The DRM module determines the opening of the DRM file according to the inspection result by outputting a test request message which includes the path of the handle and the DRM file to a malicious code checking module(130) through an interface module(120).