Live data from Hacker News

Python malware on the rise

cyborgsecurity.com

61–70 of 70 posts

Re: Python malware on the rise

#61

I think a lot of people will read 'python malware' and assume packages; that's not what this is about. A lot of exploits are two-stage. Stage one is usually the vulnerability, usually written in C given the low-level and tightly controlled instructions required. The exploit breaks security to run an executable or otherwise gain control. Stage two is usually downloading a python executable to grab the goods. There's n…

Malware authors are just regular developers - they don't want to spend hours trying to hack together a C binary to dump a database when six lines of Python will do it. It used to be that malware authors (virus writers in particular) were characteristically more "hardcore" than the average developer, as in preferring native code (even handwritten Asm) and clever optimisations to make their software smaller and more "t…

> It used to be that malware authors (virus writers in particular) were characteristically more "hardcore" than the average developer, [...]

A subgroup of them still operates like that but I feel like "it used to be" might be a bit outdated. It doesn't seem new for malware authors to utilize low hanging fruits from languages to infrastructure. We've had VBA macros that are or spread malware for decades now, it used to be a pretty regular sight in the early 2000s to see low-effort payloads to be written in some high level language and utilize some random IRC server as a C&C for example. Not everything out there is some state actor level APT nightmare, with more developers in every part of the market and even more users that simply don't care enough it seems like a normal development to see stuff like this more often.

Re: Python malware on the rise

#63
Fascinating read. I almost passed up on this article.

Python’s eval() function reminds me almost of Lisp’s eval/apply feature, which is supposedly at the heart of what makes Lisp so special.

I imagined building a program, that I could teach, to eventually write its own programs. But, I figured I would output it to a separate file, and run that file instead.

Re: Python malware on the rise

#64

I think a lot of people will read 'python malware' and assume packages; that's not what this is about. A lot of exploits are two-stage. Stage one is usually the vulnerability, usually written in C given the low-level and tightly controlled instructions required. The exploit breaks security to run an executable or otherwise gain control. Stage two is usually downloading a python executable to grab the goods. There's n…

Previously it was Delphi, immense bloatware. With python bloat is taken to the next level.

Re: Python malware on the rise

#66
post #58

I think a lot of people will read 'python malware' and assume packages; that's not what this is about. A lot of exploits are two-stage. Stage one is usually the vulnerability, usually written in C given the low-level and tightly controlled instructions required. The exploit breaks security to run an executable or otherwise gain control. Stage two is usually downloading a python executable to grab the goods. There's n…

Author here. Thanks for reading & the feedback. I'll try to unpack some of this. > A lot of exploits are two-stage. Stage one is usually the vulnerability, usually written in C given the low-level and tightly controlled instructions required. The exploit breaks security to run an executable or otherwise gain control. Stage two is usually downloading a python executable to grab the goods. This seems like a gross overs…

Why is it surprising that as interpreted language are used more for code, they are also used more for malicious codes. The same reasons apply to both.

Re: Python malware on the rise

#67

Earlier quoted context omitted.

From the user's submissions, I would assume https://www.symbolcrash.com/podcast/ (but I don't know if the episode is released yet)

Yep, planning on editing it tomorrow It's with Josh Pitts, author of this tool [1] and another payload that caused lots of go projects to be eaten by Kaspersky [2] [1] https://github.com/secretsquirrel/the-backdoor-factory [2] https://github.com/golang/go/issues/16292

Thanks for this, looking forward to it!

Re: Python malware on the rise

#68
If it weren't for your examples, I wouldn't have believed blackhats would waste time using Python. It seems like it would be easier to defend against Python malware isn't precompiled, and if it is precompiled, we're just back to hand analyzing trojans at the assembly level. When you said that SeaDuke was cross-platform, isn't that a huge problem that could easily be detected since the attacker requires target-side interpretation? E.g., more security built into Python about how it is invoked: requiring user interaction to determine whether the user is running something.

Re: Python malware on the rise

#69
post #31

SCYTHE's in-memory client loads an in-memory CPython interpreter/runtime, even, so you do not even have to compile .py to an exe to run on Windows, for example.

Can you tell me more? A google search isn't showing anything relevant

Yeah... I was being hesitant about what to say since I work for the company, to avoid an impression that I'm promoting the technology.

Basically, here's SCYTHE's client architecture: https://www.scythe.io/library/under-the-hood-scythe-architec...

And here's how you would load your python to run on the client: https://www.scythe.io/library/software-development-kit

Re: Python malware on the rise

#70
post #67

Earlier quoted context omitted.

Yep, planning on editing it tomorrow It's with Josh Pitts, author of this tool [1] and another payload that caused lots of go projects to be eaten by Kaspersky [2] [1] https://github.com/secretsquirrel/the-backdoor-factory [2] https://github.com/golang/go/issues/16292

Thanks for this, looking forward to it!

FYI, here's the link

https://www.symbolcrash.com/podcast/interview-with-josh-pitt...

Post reply on HN