DLL hijacking is an attack that substitutes a legitimate DLL file with a malicious library. It can be delivered either by a special loader embedded in the system or through user files processed by a program using the library. The result of DLL hijacking is the execution of third-party code in the environment of the compromised application.