Analysis by Poul Jenson and Masaki Suenega
Spotted by Karthik Selvaraj
Here at Symantec Security Response we have discovered Python.Pytroj, a proof-of-concept virus that infects .pyc files with arbitrary code.
In case you are unfamiliar with Python here is a brief description. Python is a programming language which can run on most major operating systems. Python scripts have the extension .py and, once executed, create .pyc files—Python compiled files.
So a quick test to see how it works!
We can see in the screenshot below that we have three files:
- exploit.py
- b.py
- c.py

When we import the files via the “python –c” command the files are interpreted, run, and the .pyc files are generated....