MalwareFileAnalyzer is a tool for analyzing files to detect indicators of compromise and anomalies. It supports analyzing PE (Portable Executable) and PDF files, as well as checking file hashes with VirusTotal.
- Analyze file properties
- Calculate SHA-256 hash
- In-depth PE header analysis with PeNet.Analyzer
- Analyze PDF content
- Search for indicators of compromise in file content
- Check file hashes with VirusTotal
- .NET 9.0
- VirusTotal API key
- Clone the repository
- Open the solution in Visual Studio 2022.
- Add your VirusTotal API key in the
MalwareAnalyzer.cs
file: private static readonly string VirusTotalApiKey = "YOUR_VIRUSTOTAL_API_KEY";
-
Run the
MalwareFileAnalyzer
project. -
Enter the path of the file to analyze when prompted.
-
The tool will analyze the file and display the results.
Unit tests are written using xUnit and Moq. To run the tests:
-
Open the Test Explorer in Visual Studio.
-
Run all tests.
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a branch for your feature (
git checkout -b feature/my-feature
). - Commit your changes (
git commit -am 'Add my feature'
). - Push your branch (
git push origin feature/my-feature
). - Open a Pull Request.
This project is licensed under the MIT License.