New C# Ransomware Compiles Itself at Runtime (bleepingcomputer.com)
From a report: A new in-development ransomware was discovered that has an interesting characteristic. Instead of the distributed executable performing the ransomware functionality, the executables compiles an embedded encrypted C# program at runtime and launches it directly into memory.
Solve the problem at one stroke.
So does it work with Mono, too?
Of course. Mono is a virus.
>> does it work with Mono
.NET Framework tools: the result was instant custom C# programs without having anything more than normal end user "no install" permissions. (You could easily do something similar with gcc or whatnot on Linux too; if the goal is to lock up the current user's files, then anything running as yourself ought to do it.)
OK, I'll bite. It might work. The implementation uses the "CSharpCodeProvider class" which is included in the handy-dandy ".NET Framework ICodeCompiler compiler execution interface" installed on most Windows boxes. However, Mono also implements ICodeCompiler (http://docs.go-mono.com/index.aspx?link=T%3ASystem.CodeDom.Compiler.ICodeCompiler). The question would be, "why bother" since you'd have to write multi-OS ransomware (covering Mac/Windows/some Linux OS's) anyway to take full advantage of Mono.
I ran into this "anyone can compile C# programs" ability myself a while back when one of my new dev VDIs was locked down to the point that no one could install Visual Studio. So...I just pulled down a portable text editor and then compiled the C# code I wanted through the local
Regards,
I don't quite understand how this was "discovered". It's source code, not something that has been found infecting anyone's computer in the wild. It looks like a proof-of-concept, and it's also trivial and isn't any kind of new idea. Any programming language that has any kind of "eval" or "compile" functionality could do this, including for example Shell Scripts, Perl, Python, ..the list goes on..., Lisp. That's why the program is about two lines long.
malware = "abcdefnsaiassur123";
eval malware.decryptString("probablytrumpsfault")
Just include the above code in some program that you can get someone to download from some place they should not be downloading software, and Wow Amazing!
The slightly more interesting version of this is that the program could just as well download the malware over the internet and run it, rather than have it included in a big long string.
Assuming you're going to let someone download and run programs like this, only way to prevent this is to scan the executable and see if it makes any calls to the handy "eval" type function, and refuse to run it. This analysis could get tricky, depending on the language being used and the interpreter/compiler runtime implementation.
NEWS FLASH: In general, downloading malware is a bad idea! You may not be able to detect it before running it.
I don't get this article, really. I guess it's just some security vendor stating the obvious in order to get their name in the press?
You should not be running untrusted code outside of some security container. Such containers should be built-in to the OS. "HotPornoPromise wants to access your files, Okay?" OBTW all software is untrusted code. Eventually people will comprehend this.
Seems like it would be easier and just as effective to use an encrypted binary instead. Then the procedure would be:
I would certainly not trust a piece of downloaded code that included code to do either, so I'm not sure the first one has any additional advantages as malware.
where is the compiler ?
I read the article. I can see the string hiding technique, which should be scanable.
so if they are sending source code, there has to be a compiler/interpreter installed, right ?
This is my opinion based on what little I know and understand of the rumors and lies Thanks, Randal
Star Wars Galaxy of Heroes does this as well. I foresee that it will become a common practice to protect mobile games against reverse-engineering and proxying
Finally, some open source ransomware! I had held off on downloading ransomware because everything was always closed source bullshit but now, I'll have my data held hostage with the software freedom I demand! ;)
Anons need not reply. Questions end with a question mark.
Ha ha, look at this clown impersonating APK and doing a perfect job.
Just cruising through this digital world at 33 1/3 rpm...
Different OS have different AV and third party software. Connection alerts. https://www.obdev.at/products/...
Software detecting requests for any software to get persistently installed https://objective-see.com/prod...
That adds to the complexity when trying to make software work on different OS.
Malware can try and see if an OS has such software and not install to try and not get detected.
Thats more complexity to look after over different OS.
Domestic spying is now "Benign Information Gathering"