The title mentions "sandbox" but VMWare or QEMU is usually not called that, so the question seems to be more about "how do I analyze it without a danger of infection?"
There are three broad categories of tools and approaches you could take here.
1. User-mode sandboxes
A user-mode sandbox basically runs the sample being investigated but intercepts all or ...
I am the author of JSDetox, thanks to Jurriaan Bremer for mentioning it!
As already said every obfuscation scheme is different. JSDetox does not try to deobfuscate everything automatically - the main purpose is to support manual analysis.
It has two main features: static analysis tries to optimize code that is "bloated up", e.g. statements like
Bochs if you don't need speed but lots of flexibility. You can use Bochs with GDB.
Qemu if you need more speed and less flexibility (it does dynamic translation so you gain bit of speed but lose the acutal sequence of the instructions) possibly a bit less safe than bochs. Its similar to Vmware and virtualbox actually derives from it. You can use GDB with ...
Here's a tutorial using Malzilla to decode a LuckySploit attack.
You can download the pre-built binary for Malzilla on SourceForge, here.
Gilles provided some great links and I want to discuss the use a virtual machines for malware analysis a bit more. While a VM breakout certainly is a possibility, I have yet to come across such a case or even heard about one and I assume this would make some buzz should someone find one. To be safe, simply run your VM software on an isolated computer and ...
Your best bet is to use an environment (eg FireFox) in which eval() can be overridden by using a proxy function, and the function just prints the output. That way, there is no risk in missing anything, even if the malware aliases it. Unfortunately, eval() is not designed to be overridden (and I believe is explicitly forbidden by recent ECMAScript spec), ...
Well, after online tools, You may use Revelo by KahuSecurity
It's have less automation in process, but more powerful in de-obfuscation of customized js.
Documentation is included in ZIP, you also may see examples of it's usage in Kahu blog as well:
p.s. don't forget to use VM!
Literally, for a first look on malware, you won't need anything special locally installed.
There are enough online sandboxes you may use:
virustotal.com have their sandbox implemented using Cuckoo Sandbox. When you apply new sample, it automatically executed as part of analysis. After about 10-15 mins you can see the result in "Behavioural information"
For JSDetox you can give the html as input through the ...
For learning purposes, I would recommend you the following Github projects to start with:
Paranoid Fish by a0rtega
Al-Khaser v0.60 by Noteworthy
Colection by AlicanAkyol
Grab one you like, compile and analyze.
In case you look for in ...
You might try http://jsunpack.jeek.org/ which works for some stuff. I personally just use Chrome's built-in JS console in a VM, replacing eval()s.
This might be helpful too, although it is more for improving readability.
In addition to the other useful links here, I recommend to try Malware-Jail
malware-jail is written for Node's 'vm' sandbox. Currently implements WScript (Windows Scripting Host) context env/wscript.js, at least the part frequently used by ...
I want to know how to test malware files with out using virtual
Check out the answers in the following, similar, question:
Analysing malware in a real environment (non-virtual environment)
TL;DR: Check out Faronics Depp Freeze for example.
I recommend reading the answers as a whole.
In addition, read the answers to the following question on ...
The following call stack can be found in MrmCoreR.dll:
Seems like it's used by Metro applications to know if they were run in the sandbox. And RtlCheckSandboxedToken() checks the token if it can be accessed via some specific ...
If you are analyzing ELF binaries, then the open source online sandbox detux may prove useful:
Detux is a sandbox developed to do traffic analysis of the Linux malwares and capture the IOCs by doing so.
Detux logs network data including IP addresses the program sends signals to, DNS queries, URLs accessed and TCP raw streams:
If you are performing ...
For the last year I've been developing box-js, and I found it to be the most accurate tool when analyzing JScript droppers. Internally, it uses UglifyJS2 to run a static analysis and simplify many obfuscation techniques; the rest is achieved through emulation in a V8 sandbox.