<commit_before>malware_inspector
=================

The python script takes advantage of VirusTotal API and Team Cymru services to find any malicious process on the system and sends an e-mail alert.
<commit_msg>Added description in README.md<commit_after>malware_inspector
=================

The python script takes advantage of VirusTotal API and Team Cymru services to find any malicious process on the system and sends an e-mail alert.
The main features are:
1. Monitors all the running processes for malicious activities using Virustotal(https://www.virustotal.com/en/documentation/public-api/) and TeamCymru(http://www.team-cymru.org/Services/MHR/)
2.

Installation
=============
The code has been tested on CentOS distribution but should work on any other platform without any issues.

Running
=======

1. Add virustotal key in the configuration file - etc/malware_inspector.conf
If you do not have the key, you may need to register in Virustotal Community group using https://www.virustotal.com/en/#signup
2. If you are using proxy, set appropriate proxy settings in 'malware_inspector.conf' file.
3. Also, set appropriate e-mail server options if you wish to receive an e-mail when any suspicious process is detected.
4. Make sure that the paths of all the files in 'malware_inspector.conf' are valid.

For running the script, use the following command:
$python malware_inspector.py -c etc/malware_inspector.conf

If any suspicious processes are detected, you will get an e-mail. Also, the results of the process scan are available in malware_results.txt file.


{'fraction_non_alphanumeric': 0.08535031847133757, 'fraction_numerical': 0.003821656050955414, 'mean_word_length': 4.840148698884758, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6752956', 'n_tokens_mistral': 427, 'n_tokens_neox': 406, 'n_words': 202}