Skip to main content

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:

  1. Open Local Group Policy Editor (gpedit.msc)
  2. Navigate to Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus > MAPS
  3. Double click on "Send file samples when further analysis is required"
  4. Set it to "Enabled" and in the bottom-left panel select "Never send"

All other Defender settings can be left as on as long:

  1. 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).
  2. (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

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

threatcheck_py-0.1.0.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

threatcheck_py-0.1.0-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

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

Hashes for threatcheck_py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b47de872e9337e998335c7bdaec7e7a051d2dfbb852d95232211c906d4fe2227
MD5 78fecd1a47774d6062b913456ff911fa
BLAKE2b-256 d3e59c87c33986603137c42c4d90db1ca548e8dba6993dfbe463a8ba51cb82a1

See more details on using hashes here.

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

Hashes for threatcheck_py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ffa6527803efe1de231cd5da0382a66f184f5aff4c531ecb57e7df9d6708c0b4
MD5 57e7af75180dc188daa50cd48b73c485
BLAKE2b-256 f360b6a1962c287ecb8a0644dc985acf9c18e072f9e52d1b8bed23400df1e086

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page