Identify AV signatures in files using binary search.
Project description
ThreatCheck-Py
Python port of Rasta-Mouse's ThreatCheck, a tool to identify AV signatures in files.
Requirements
- Python 3.8 or higher
- Windows OS (for Defender and AMSI scanners)
Installation
From Source
git clone https://github.com/ruvolof/threatcheck-py.git
cd threatcheck-py
pip install -e .
Test Environment Setup
It is recommended to force autosubmission of samples to never send them, or the amount of notification can be overwhelming. This can be forced through group policies:
- Open Local Group Policy Editor (gpedit.msc)
- Navigate to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus > MAPS
- Double click on "Send file samples when further analysis is required"
- Set it to "Enabled" and in the bottom-left panel select "Never send"
All other Defender settings can be left as on as long:
- There's a path exception in place for the original location of your samples (otherwise real-time protection will prevent the initial loading of the files).
- (Maybe?) The original location has to be on your C drive. In my experience Defender ignores exception for external drives and I run in problem 1 above.
Usage
Command Line Options
-e, --engine Scanning engine (default: Defender)
Options: Defender, AMSI
-f, --file Analyze a file on disk
-u, --url Analyze a file from a URL
-d, --directory Analyze all files in a directory
--debug Enable debug output
--version Display version information
--help Display help message
Credits
- Original ThreatCheck by Rasta-Mouse
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file threatcheck_py-0.1.0.tar.gz.
File metadata
- Download URL: threatcheck_py-0.1.0.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b47de872e9337e998335c7bdaec7e7a051d2dfbb852d95232211c906d4fe2227
|
|
| MD5 |
78fecd1a47774d6062b913456ff911fa
|
|
| BLAKE2b-256 |
d3e59c87c33986603137c42c4d90db1ca548e8dba6993dfbe463a8ba51cb82a1
|
File details
Details for the file threatcheck_py-0.1.0-py3-none-any.whl.
File metadata
- Download URL: threatcheck_py-0.1.0-py3-none-any.whl
- Upload date:
- Size: 22.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffa6527803efe1de231cd5da0382a66f184f5aff4c531ecb57e7df9d6708c0b4
|
|
| MD5 |
57e7af75180dc188daa50cd48b73c485
|
|
| BLAKE2b-256 |
f360b6a1962c287ecb8a0644dc985acf9c18e072f9e52d1b8bed23400df1e086
|