Skip to main content

Tools and Python API for accessing Kaspersky OpenTIP

Project description

OpenTIP scanner

The script is a Python 3 client to the OpenTIP service.

It can scan files and directories and provide the category (clean, malware, adware). For unknown files, it will also upload them to the service for scanning and Sandbox processing (optional).

To run the script, you need to obtain a valid API key from OpenTIP and set it with the --apikey command line switch or the OPENTIP_APIKEY environment variable.

Building

python3 -m build

Installation

Install the package via pip.

pip3 install opentip

Command line switches

OpenTIP file scanner

usage: opentip [-h] [--no-upload] [--exclude EXCLUDE] [--log LOG] [--apikey APIKEY] [--quiet] path [path ...]

Check files and directories with OpenTIP.kaspersky.com, optionally upload and scan unknown files

positional arguments:
  path               File or directory location to scan

optional arguments:
  -h, --help         show this help message and exit
  --no-upload        DO NOT upload unknown files to scan with the Sandbox, default behaviour is to upload
  --exclude EXCLUDE  Do not scan or upload the files matching the pattern
  --log LOG          Write results to the log file
  --apikey APIKEY    OpenTIP API key, received from https://opentip.kaspersky.com/token
  --quiet            Do not log clean files

IOC checker

usage: check_iocs [-h] [--apikey APIKEY] [--out OUT] type value

Check IOCS (file hashes, IP addresses, domain names, URLs using the service OpenTIP.kaspersky.com

positional arguments:
  type               hash, ip, domain, url
  value              Value of the IOC (hash, ip, domain, url, filename with the iocs)

optional arguments:
  -h, --help         show this help message and exit
  --apikey APIKEY    OpenTIP API key, received from https://opentip.kaspersky.com/token
  --out OUT, -o OUT  Write output as JSON to this filename

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

opentip-1.2.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

opentip-1.2-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file opentip-1.2.tar.gz.

File metadata

  • Download URL: opentip-1.2.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for opentip-1.2.tar.gz
Algorithm Hash digest
SHA256 96249d6923be334407f93f0c8e54273f5e99f7a2ebe3c832bda545e93c172a08
MD5 3588263f3b15a392bb6c407bd04db521
BLAKE2b-256 9807caef33b3becccff73c50bc1478ac8ca99a8f11ff474b5e4f6d60a142c6ab

See more details on using hashes here.

File details

Details for the file opentip-1.2-py3-none-any.whl.

File metadata

  • Download URL: opentip-1.2-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for opentip-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 82849c0268eb21a0bf98bc949eb18d03d9bd4be881bf720ccde7dec0fada9fd7
MD5 79ec00a8c6b05b8d2393b16c1aae8457
BLAKE2b-256 fcef8fca75d3a719e51e5ce59789313c5cd0c72df5250b4eb3ef4bf22ae7fdba

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