Skip to content

The Simple Malware Scanner is an open-source Python tool designed to identify potentially malicious executable files on Windows systems. By scanning .exe files for known patterns and hashes associated with malware, this script helps users detect and respond to potential security threats.

License

Notifications You must be signed in to change notification settings

bimantaraz/Simple-Malware-Scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Simple Malware Scanner for Executable Files

Overview

The Simple Malware Scanner is a lightweight Python script designed to detect potentially malicious .exe files on your Windows system. This tool scans executable files for known patterns and hashes associated with malware. Ideal for users seeking a straightforward way to monitor their system for potential threats, it provides alerts for suspicious files based on content and hash values.

Features

  • Malware Content Detection: Scans .exe files for patterns and indicators commonly associated with malware.
  • Hash-based Malware Detection: Compares file hashes against a list of known malware hashes.
  • Color-Coded Alerts: Provides clear, color-coded alerts for detected malware and errors.
  • Interactive Exit: Waits for user input before closing, allowing you to review the results of the scan.

Getting Started

Requirements

  • Python 3.x
  • No additional libraries required

Installation

  1. Clone the Repository:

    git clone https://github.com/bimantaraz/Simple-Malware-Scanner.git
    cd your-repository
    
  2. Run the Script:

    python scanner.py
    

    The script will start scanning executable files in your user profile directory for potential malware.

Compiling to an Executable

To convert the Python script into a standalone executable file, you can use PyInstaller. Follow these steps:

  1. Install PyInstaller:

    Open your command prompt or terminal and install PyInstaller using pip:

    pip install pyinstaller
    
  2. Compile the Script:

    Navigate to the directory containing your script and run the following command:

    pyinstaller --onefile scanner.py
    

    This will generate a single executable file in the dist directory.

  3. Locate the Executable:

    After PyInstaller completes, you will find the executable file in the dist folder within your project directory. The file will be named scanner.exe.

  4. Run the Executable:

    You can now run the .exe file directly from the command line or by double-clicking it in Windows Explorer.

Usage

Upon execution, the script will:

  1. Begin scanning for .exe files in the user profile directory.
  2. Check each file for suspicious content and hash values associated with malware.
  3. Provide a summary report of any detected malware.
  4. Pause and wait for user input before closing the terminal.

Example Output

Starting malware scan...
[ALERT] Malware detected: C:\Path\To\MaliciousFile.exe
[ERROR] Failed to calculate hash: [error details]
Scan completed. Malware detected:
[ALERT] C:\Path\To\MaliciousFile.exe
Press any key to exit.

Test on windows 11

Screenshot (38)

Video Test on windows 10

https://video.anugrahbimantara.my.id/videos/anti-malware.mp4

About

The Simple Malware Scanner is an open-source Python tool designed to identify potentially malicious executable files on Windows systems. By scanning .exe files for known patterns and hashes associated with malware, this script helps users detect and respond to potential security threats.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages