First Python virus found

By
Follow google news

But its venom isn't fatal.

What is said to be the first trojan targeting the Python programming language has been discovered.

First Python virus found

The Trojan, Python.Pytroj, infected .pyc Python files with arbitrary code and was discovered in a proof of concept form by Symantec researchers.

It was not considered a "serious risk", researcher Stephen Doherty said.

The virus when executed scans and infects any .pyc Python files it found. and displays the message "you have been exploited".

The malware worked by interleaving viral code into binary code, deserialised and disassembled by the marshal module of Python.

The module then reassembled and serialised the infected code.

"The malicious code in the binary is not simply added or inserted, but interleaved into the existing binary," Doherty said.

He said the Python attack vector could become a threat if it was used with dangerous payloads.

Symantec has a detailed analysis on its blog.

The module then reassembled and serialised the infected code.

"The malicious code in the binary is not simply added or inserted, but interleaved into the existing binary," Doherty said.

Add iTnews as your trusted source

Got a news tip for our journalists? Share it with us anonymously here.

Copyright © SC Magazine, Australia

Tags:

Most Read Articles

Fixes for Google Brotli flaw arrive for Microsoft .NET, PHP and Linux

Fixes for Google Brotli flaw arrive for Microsoft .NET, PHP and Linux

Apple rains on MIE-bypassing iPhone jailbreak parade with iOS update

Apple rains on MIE-bypassing iPhone jailbreak parade with iOS update

Parliamentary Information and Cyber Resilience upgrade has $40m budget

Parliamentary Information and Cyber Resilience upgrade has $40m budget

Node2Shell flaw embedded in apps and dev tools far beyond Node.js

Node2Shell flaw embedded in apps and dev tools far beyond Node.js

Log In

  |  Forgot your password?