Skip to main content

GitHub tag (latest SemVer) GitHub GitHub issues

Threat Analysis Unit Clients

Overview

Threat Analysis Unit Clients (shortened as tau-clients) is a set of clients that can be used to programmatically interface with various VMware products and/or external services or resources, with a focus on threat analysis and intelligence collection.

Try it out

Notes

Build & Run

This package can be installed via pip, just run pip install tau-clients or pip install -e .

To run a simple example just create a valid configuration file using data/tau_clients.ini.template.

import configparser
from tau_clients import nsx_defender

conf = configparser.ConfigParser()
conf.read("./data/tau_clients.ini")
portal_client = nsx_defender.PortalClient.from_conf(conf, "portal")
result = portal_client.get_tasks_from_knowledgebase(
    query_string="file_sha1: 'ba81b98f00168b86578e5f5de93d26ed83769432'",
)

Scripts

This package includes the following console scripts ready to be used (assuming a valid configuration file is also provided):

  • download_artifacts.py: download all the available analysis artifacts given a file has or task uuid.
  • submit_samples.py: submit the samples contained in the provided directory; if a file hash is provided download the sample from VirusTotal.

Contributing

The tau-clients project team welcomes contributions from the community. Before you start working with tau-clients, please read our Developer Certificate of Origin. All contributions to this repository must be signed as described on that page. Your signature certifies that you wrote the patch or have the right to pass it on as an open-source patch. For more detailed information, refer to CONTRIBUTING.md.

Development

Create the virtual env:

python3 -m venv venv

Activate the virtual env:

source ./venv/bin/activate

Install tox:

pip install tox

Run tests:

tox

Due to a bug in tox if you update the dependencies in setup.cfg the environments will not be re-created, leading to errors when running the tests (see https://github.com/tox-dev/tox/issues/93). As workaround, pass the --recreate flag after updating the dependencies.

Before committing, install the package in dev mode (needed by pylint):

pip install -e .

Install pylint and pre-commit:

pip install pylint pre-commit

Install the hook:

pre-commit install

If you want to run pre-commit on all files use the following command:

pre-commit run --all-files

License

BSD 2-Clause

Release files for tau-clients 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tau-clients 0.3.4
File Size Uploaded
tau_clients-0.3.4.tar.gz 38.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tau-clients 0.3.4
File Interpreter ABI Platform
tau_clients-0.3.4-py3-none-any.whl Python 3 none any Details

Total release size: 70.5 kB

Release files / tau_clients-0.3.4.tar.gz

Download URL tau_clients-0.3.4.tar.gz
Size 38.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8ad58aebb9e15346738a7c3912b185b4063a84350a886405a1edc7b18df6c214
BLAKE2b-256 checksum
How to use checksums
c5a15a47866db296748c8be6767697bebec67757795ac30688ab6bba2a830a62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / tau_clients-0.3.4-py3-none-any.whl

Download URL tau_clients-0.3.4-py3-none-any.whl
Size 32.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
10db276e638e6eb6399701f50e609285731d75f389a3746dea4169ff7013835a
BLAKE2b-256 checksum
How to use checksums
306f450e4065b331a278c848774a97640fe4702eeee38af124b0e10532aabbbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

This release

0.3.4 This release

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.0

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page