Counterfit is a red team tool for finding and exploiting machine learning systems. This is a rewrite of the Counterfit tool found here.
- Python 3.7+
- Ubuntu 18.04+
- Windows 10+
- Windows is supported by Counterfit, but not necessarily officially supported by each individual framework. Choose your own adventure
- On Windows the Visual C++ 2019 redistributable is required
It's highly recommended you use a virtual env of some kind.
$> python -m venv cf-venv
$> git clone https://github.com/moohax/counterfit.git
$> cd counterfit
$> source /cf-venv/bin/activate
$> cf-venv\Scripts\activate.[bat, ps1]
$> pip install .
Most ML frameworks will initialize a .
folder somewhere. These folders are used to cache data and models. For example, textattack
will pull NLTK packages into a local directory.
- Logo by @monoxgas
- Original code from @rdheeko, @drhyrum, and @nmspinach
Counterfit leverages excellent open source projects, including,