Skip to content

Threadlinee/Malware-Document-Scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”’ Malware Document Scanner πŸ•΅οΈβ€β™‚οΈ

Malware Document Scanner is a simple and effective C# tool that helps scan documents (like .pptx, .docx, and .pdf) for potential malware or suspicious content. The tool identifies common malware markers such as embedded macros, suspicious keywords, and strange file structures.

Whether you're a security enthusiast or a developer looking to secure documents, this tool can help you detect malware within your files and ensure your documents are clean and safe.

βš™οΈ Features

Suspicious Keyword Detection: Flags documents containing keywords like powershell, cmd.exe, and other common malware terms.

Macro/Embedded Object Detection: Scans for macros or embedded objects in .pptx and .docx files, which are often used for malware execution.

File Structure Anomalies: Looks for unusual file sizes or structural patterns that may indicate tampering or malware.

Simple and User-Friendly: Just input the file path, and the tool will analyze it and give you the result.

πŸš€ Getting Started

  1. Clone the repository To get started, clone the repo to your local machine:

git clone https://github.com/dionabazi/Malware-Document-Scanner.git 2. Build the project Open the solution in Visual Studio.

Build the project (Ctrl+Shift+B).

Run the project directly from Visual Studio.

πŸ’» Usage

Run the program.

Enter the full file path of the document you want to scan (it supports .pptx, .docx, and .pdf).

The tool will:

Scan the document for common malware indicators.

Output whether the document is clean or if it may be malicious.

πŸ“Œ Example Output

image

πŸ” Scanning files for malware... πŸ”

Enter the file path to scan: C:\Users\user\Documents\example.pptx

Scanning file... #⚠️ Possible malware detected!

πŸ” Scan Logic

The Malware Document Scanner uses the following detection techniques:

Suspicious Keywords: Checks the content for dangerous keywords like powershell, cmd.exe, macro, etc.

Macros/Embedded Objects: Scans for embedded objects or macros that can potentially trigger malicious actions in documents.

File Structure: Flags documents with unusual file sizes or structural anomalies which are common indicators of tampered files.

πŸ›  Technologies Used

C# – The primary programming language used.

File I/O – For reading and scanning .pptx, .docx, and .pdf files.

Regex – For matching suspicious patterns within file content.

πŸ€– Contributing

Feel free to open issues and contribute to the project. If you find any bugs or want to add features, please create a pull request. All contributions are welcome!

πŸ“œ License

This project is licensed under the MIT License – see the LICENSE file for details.

About

Simple Malware Document Scanner made in C# by me *_*

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages