Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

codecov

Join us on Slack!

Click here and fill out the form to receive an invite to the Open Cybersecurity Alliance slack instance, then join the #stix-shifter channel, to meet and discuss usage with the team.

Introduction Webinar!

Click here to view an introduction webinar on STIX Shifter and the use cases it solves for.

Introduction

STIX-shifter is an open source python library allowing software to connect to products that house data repositories by using STIX Patterning, and return results as STIX Observations.

For more information about this project, see the STIX-shifter Overview

Dependencies

This stix-shifter has the following dependencies:

Your development environment must use Python 3

Installation

The recommended method for installing the STIX-shifter is via pip. Two prerequisite packages needs to be installed inlcuding the package of stix-shifter connector module to complete a stix-shifter connector installation. Run below commands to install all the packages-

  1. Main stix-shifter package: pip install stix-shifter

  2. stix-shifter-utility package: pip install stix-shifter-utils

  3. Desired stix-shifter connector module package: pip install stix-shifter-modules-<module name> Example: pip install stix-shifter-modules-qradar

Usage

As A Script

The STIX-Shifter comes with a bundled script which you can use to translate STIX Pattern to a native datasource query. It can also be used to translate a JSON data source query result to a STIX bundle of observable objects. You can also send query to a datasource by using a transmission option.

More details of the command line option can be found here

$ stix-shifter translate <MODULE NAME> query "<STIX IDENTITY OBJECT>" "<STIX PATTERN>" "<OPTIONS>"

Example:

$ stix-shifter translate qradar query {} "[ipv4-addr:value = '127.0.0.1']" {}

Note: In order to build stix-shifter packages from source follow the below prerequisite steps:

  1. Go to the stix-shifter parent directory
  2. Generate latest requirements.txt: python3 generate_requirements.py
  3. Install the dependencies in your python 3 environment: pip install -r requirements.txt
  4. Alternatively you can create a Python 3 virtual environemnt: virtualenv -p python3 virtualenv && source virtualenv/bin/activate && pip install -r requirements-dev.txt

As A Library

You can also use this library to integrate STIX Shifter into your own tools. You can translate a STIX Pattern:

from stix_shifter.stix_translation import stix_translation

translation = stix_translation.StixTranslation()
response = translation.translate('<MODULE NAME>', 'query', '{}', '<STIX PATTERN>', '<OPTIONS>')

print(response)

Contributing

We are thrilled you are considering contributing! We welcome all contributors.

Please read our guidelines for contributing.

Guide for creating new connectors

If you want to create a new connector for STIX-shifter, see the developer guide

Licensing

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

stix_shifter_utils-3.4.6.dev557-py2.py3-none-any.whl (80.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file stix_shifter_utils-3.4.6.dev557-py2.py3-none-any.whl.

File metadata

  • Download URL: stix_shifter_utils-3.4.6.dev557-py2.py3-none-any.whl
  • Upload date:
  • Size: 80.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.10

File hashes

Hashes for stix_shifter_utils-3.4.6.dev557-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b51141634da17073526f0cefe178d6090c3a34b0b1aa82b1f68f41c2b60a83b4
MD5 5440db57bdb84a3ba9d3e85ba47c3805
BLAKE2b-256 cca40869d9f144af265e37e42061f7613b351ddf9dc6c0614fd86d7c60da67c4

See more details on using hashes here.

Release history Release notifications | RSS feed

8.1.2

1 file

8.1.1

1 file

8.1.0

1 file

8.0.4

1 file

8.0.3

1 file

8.0.2

1 file

8.0.1

1 file

8.0.0

1 file

7.1.6

1 file

7.1.5

1 file

7.1.4

1 file

7.1.3

1 file

7.1.2

1 file

7.1.1

1 file

7.1.0

1 file

7.0.12

1 file

7.0.11

1 file

7.0.10

1 file

7.0.9

1 file

7.0.7

1 file

7.0.6

1 file

7.0.4

1 file

7.0.2

1 file

7.0.1

1 file

7.0.0

1 file

6.3.0

1 file

6.2.2

1 file

6.2.1

1 file

6.2.0

1 file

6.1.1

1 file

6.1.0

1 file

6.0.4

1 file

6.0.3

1 file

6.0.2

1 file

6.0.1

1 file

6.0.0

1 file

5.3.2

1 file

5.3.1

1 file

5.3.0

1 file

5.2.1

1 file

5.1.1

1 file

5.1.0

1 file

5.0.2

1 file

5.0.1

1 file

5.0.0

1 file

4.6.10

1 file

4.6.8

1 file

4.6.7

1 file

4.6.6

1 file

4.6.5

1 file

4.6.4

1 file

4.6.3

1 file

4.6.2

1 file

4.6.1

1 file

4.6.0

1 file

4.5.2

1 file

4.5.1

1 file

4.4.0

1 file

4.3.1

1 file

4.3.0

1 file

4.2.6

1 file

4.2.5

1 file

4.2.4

1 file

4.2.3

1 file

4.2.2

1 file

4.2.1

1 file

4.2.0

1 file

4.1.1

1 file

4.1.0

1 file

4.0.17

1 file

4.0.16

1 file

4.0.15

1 file

4.0.14

1 file

4.0.13

1 file

4.0.12

1 file

4.0.11

1 file

4.0.10

1 file

4.0.9

1 file

4.0.8

1 file

4.0.7

1 file

4.0.6

1 file

4.0.5

1 file

4.0.4

1 file

4.0.3

1 file

4.0.2

1 file

4.0.1

1 file

4.0.0

1 file

3.6.11

1 file

3.6.10

1 file

3.6.9

1 file

3.6.8

1 file

3.6.6

1 file

3.6.5

1 file

3.6.4

1 file

3.6.3

1 file

3.6.2

1 file

3.6.1

1 file

3.6.0

1 file

3.5.6

1 file

3.5.5

1 file

3.5.4

1 file

3.5.3

1 file

3.5.2

1 file

3.5.1

1 file

3.5.0

1 file

3.4.8

1 file

3.4.7

1 file

3.4.6

1 file

This release

3.4.6.dev557 This release

1 file

3.4.5

1 file

3.4.4

1 file

3.4.3

1 file

3.4.2

1 file

3.4.1

1 file

3.4.0

1 file

3.3.13

1 file

3.3.12

1 file

3.3.11

1 file

3.3.10

1 file

3.3.9

1 file

3.3.8

1 file

3.3.7

1 file

3.3.6

1 file

3.3.5

1 file

3.3.4

1 file

3.3.3

1 file

3.3.2

1 file

3.3.1

1 file

3.3.0

1 file

3.2.11

1 file

3.2.10

1 file

3.2.9

1 file

3.2.8

1 file

3.2.6

1 file

3.2.5

1 file

3.2.4

1 file

3.2.3

1 file

3.2.2

1 file

3.2.1

1 file

3.2.0

1 file

3.1.8

1 file

3.1.7

1 file

3.1.5

1 file

3.1.4

1 file

3.1.3

1 file

3.1.2

1 file

3.1.1

1 file

3.1.0

1 file

3.0.9

1 file

3.0.3

2 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