Here is what you should do when analyzing a new threat:
- Identify the language. There are multiple ways to do this, as follows:
- Look at the file extensions used
- Use the file tool
- Search for the header signature online
- Check strings as they may give additional clues
- If the script requires some particular OS, make sure that you have a proper VM image set up.
- If the script language is compiled, search for tools such as decompilers or disassemblers to make static analysis possible.
- If the code is not compiled and the source code has been obtained, check for the best IDE or syntax highlighter available. Use your preferred solution that supports debugging to make dynamic analysis more convenient.
- Search for manuals on how to read the code—either the original or the one coming from the help files for the corresponding tools. Additionally, check whether there are some APIs available.
- If the code is obfuscated, try existing deobfuscators if there are any; then,...