A Python 3 script using DSP3 SDK for Deep Security to create a Security automation for hash files.
Following the current functionalities:
- Add Hashes through TEXT file
- Search by Hash
- Delete File Hash by Hash
- Delete File Hash by text file
- List File Hashes
- Close Session
OBS:. Use "python3 block_by_hash_sec_automation.py" to run the script. Python 3 is required.
python 3
suds-py3 >= 1.2.0.0
requests >= 2.9.1
dsp3🚨To make it easy there is an install bash file that you could run to install everything automatically
$ ./install.shCreate a virtualenv to install DSP3
$ virtualenv -p python3 --no-site-packages DS_block_by_hash
$ . DS_block_by_hash/bin/activateInstall DSP3 inside the virtualenv
- Check if the virtualenv have these following requirements installed:
suds-py3 >= 1.2.0.0
requests >= 2.9.1OBS:. If not, install using pip install.
- Install DSP3 inside virtualenv
$ pip install dsp3| Files Name | Description |
|---|---|
| install.sh | Bash script to install (pip, virtualenv and DSP3) and create the virtualenv automatically |
| block_by_hash_sec_automation.py | The main python3 script with the API calls automation |
| add_file_hash.txt | TEXT file example to use in option 1 to add one or more hash file with description to Deep Security |
- Add Hash directly withou TEXT file
- Support API Key authentication on Deep Security
OBS:. This is an Open Source project that can anyone help to develop for security automation.