Skip to main content

Tools and interface to translate STIX formatted results and queries to different data source formats and to set up appropriate connection strings for invoking and triggering actions in openwhisk

Project description

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.6.x

Installation

The recommended method for installing the STIX-shifter is via pip.

pip install stix-shifter

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 create python executable stix-shifter from source run the following command from stix-shifter parent directory in your python 3 environment: python setup.py install

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.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

stix_shifter-2.9.2.tar.gz (246.9 kB view details)

Uploaded Source

Built Distribution

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

stix_shifter-2.9.2-py2.py3-none-any.whl (370.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file stix_shifter-2.9.2.tar.gz.

File metadata

  • Download URL: stix_shifter-2.9.2.tar.gz
  • Upload date:
  • Size: 246.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.7

File hashes

Hashes for stix_shifter-2.9.2.tar.gz
Algorithm Hash digest
SHA256 cf85f5139fced4bb8ac704477c5e27e8bfbc4047fedce4ba5f87258a55bfe07b
MD5 09e548d752715761ad43f9d192f39597
BLAKE2b-256 c20fb2a85daeada0263e17719f7051db54d883b8982c190e75261b8d2e61f520

See more details on using hashes here.

File details

Details for the file stix_shifter-2.9.2-py2.py3-none-any.whl.

File metadata

  • Download URL: stix_shifter-2.9.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 370.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.7

File hashes

Hashes for stix_shifter-2.9.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ea2ecb464322083ad8454148b98584423babe4982327bb85b38608846873b167
MD5 0b5cf6f3509b004a3cfdf2848d8fc8fa
BLAKE2b-256 9122fe1b8de19a9ac0c8a114c837bdc90499323b78592c9f1a670364c79d72ef

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