SSMA – Simple Static Malware Analyzer

December 3, 2016 | Views: 5585

Begin Learning Cyber Security for FREE Now!

FREE REGISTRATIONAlready a Member Login Here

SSMA is a simple malware analyzer written in Python 3.


  • Searches for websites, e-mail addresses, IP addresses in the strings of the file.

  • Looks for Windows functions commonly used by malware.

  • Get results from VirusTotal and/or upload files.

  • Malware detection based on Yara-rules –

  • Detect well-known software packers.

  • Detect the existence of cryptographic algorithms.

  • Detect anti-debug and anti-virtualization techniques used by malware to evade automated analysis.

  • Find if documents have been crafted to leverage malicious code.


git clone


sudo pip3 install -r requirements.txt

python3 -h

You can just statically scan the file or upload to VirustTotal using your API-KEY.


python3 file.exe
python3 -k api-key file.exe




Scan documents (i.e. MS Office Word):


python3 -d doc.docx

To get ssdeep hashes use requirements_with_ssdeep.txt

Python 3

Share with Friends
Use Cybytes and
Tip the Author!
Share with Friends
Ready to share your knowledge and expertise?
  1. I’m getting “http.client.IncompleteRead” in “, line 18, in ransomware_and_malware_domain_check”.

    So I put a try,catch and a loop to make retries. After few tries, it worked.

  2. For Windows there is Sysinternals, but for Linux users this fills a hole. Some users may prefer Python 2.5, but can’t please everyone. I’ll look into the code for this.


  3. That is an extremely helpful program and article.
    I had to tip 5 Cybytes for this. There isn’t much out here on Malware Analysis.
    Thank you for the great information. I am going to dig in more shortly.
    Great work and I cannot wait to see more from you

Comment on This

You must be logged in to post a comment.

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Support Cybrary

Donate Here to Get This Month's Donor Badge


We recommend always using caution when following any link

Are you sure you want to continue?