
The insertion of the malicious code occurs when the installation of the malware force open a pdf file to install a bogus antivirus on your system. After which the activities of the virus varies from keylog down your passwords or downloading more malwares into your system. The next time you install an unknown application, think twice.