Skip to main content

Helper utilities for building Maltego transforms that consume or produce data in STIX2 format.

Project description

![alt text](./assets/card.png)

# Maltego STIX2 entities

This project allows you to generate a set of Maltego entities generated from official STIX 2 schemas. It also contains generic transforms to explore the properties of STIX 2 entities. The set of entities with the default configuration provided here is also distributed in the official [Maltego Transform Hub](https://www.maltego.com/transform-hub/).

## Dependencies in submodules

We are using the following assets to generate STIX2 Maltego entities:

## Usage

If you are only using the default Maltego entities and don’t want to customize anything, you can install the entities distributed in the official [Maltego Transform Hub](https://www.maltego.com/transform-hub/).

If you want to customize these entities (heritage with other entities, default transform to explore STIX2 properties), you can use this project to generate your own set of entities.

If you want to build your own transforms using these entities, you can install the maltego_stix2 python package to help you write them. It contains the definition of the entities to be able to return them in your transforms, as well as utility functions to translate a Maltego entity into and from a STIX2 object. A template for such a transform is provided in [./trx-demo](./trx-demo).

## Configuration

  • To customize the STIX2 schemas used for the generation of entities, see [./maltego_stix2/config.py](./maltego_stix2/config.py), the submodule [./cti-stix2-json-schemas](./cti-stix2-json-schemas) and the manual [./cti-stix2-json-schemas-extended](./cti-stix2-json-schemas-extended) currently set-up for OpenCTI compatibility

  • To customize the icons used for Maltego-STIX2 entities, see [/maltego_stix2/config.py](./maltego_stix2/config.py), the submodule [./stix2-graphics](./stix2-graphics) and the manual [./stix2-graphics-extended](./stix2-graphics-extended)

  • To customize heritage between Maltego-STIX2 entities and other Maltego entities, see the mapping in [./maltego_stix2/config.py](./maltego_stix2/config.py)

  • To use local transforms which handle the exploration of STIX2 properties, see [./local_config.py](./local_config.py) and [./transforms.csv](./transforms.csv)

  • To generate custom entities, properties and transforms for the OpenCTI-STIX2 compatibility, add the argument –with-opencti on all bash scripts

## Generation

` $ git clone https://github.com/amr-cossi/maltego-stix2 $ cd maltego-stix2 $ git submodule init `

### Requirements

Please install the following requirements before generating the Maltego-STIX2 entities:

  • Python >= 3.6

  • Libraries in ./requirements.txt

` $ pip3 install -r requirements.txt `

### Generate

To generate the entities.mtz file:

` $ git submodule update --remote $ ./build_entities.sh (--with-opencti) `

To generate the transforms.mtz file (the transforms require installing this library in your environment):

` $ python3 setup.py install $ ./build_transforms.sh (--with-opencti) `

To run the transforms locally, make sure the path to TRX project.py is set up in [./local_config.py](./local_config.py)

### Import

Import the files output/entities.mtz and output/transforms.mtz in Maltego using the “Import config” menu.

## Contributing

### Code of Conduct

We follow a standard [Code of Conduct](CODE_OF_CONDUCT.md) that we expect project participants to adhere to. Please read the [full text](CODE_OF_CONDUCT.md) so that you can understand what actions will and will not be tolerated.

### How to contribute

This module is not a huge project with an intense roadmap. Feel free to contribute through issues linked to pull requests for new features and bug solving.

### TODO: known wanted enhancements

  • Rely on external library to parse JSON-ref files

  • Add missing icons for some observables

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

maltego-stix2-2.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distributions

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

maltego_stix2-2.0-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

maltego_stix2-2.0-1-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file maltego-stix2-2.0.tar.gz.

File metadata

  • Download URL: maltego-stix2-2.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for maltego-stix2-2.0.tar.gz
Algorithm Hash digest
SHA256 04d730af41a8abda157849d5fa857317a73735459fc44ef2b110ec0f2f323fc7
MD5 4c473a046b6592cc61a39bf40dcd1b6e
BLAKE2b-256 5b743950935f8b8fde7dacc590a84845c74b7e417633b79795968b3cbb004572

See more details on using hashes here.

File details

Details for the file maltego_stix2-2.0-py3-none-any.whl.

File metadata

  • Download URL: maltego_stix2-2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for maltego_stix2-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eeac35e2f36c5ac5f3ae0679ecc1008fbb308e2882d99f48ffbcbd101cd25953
MD5 2a1b08d4f16b2b39ffd7990ec44f221e
BLAKE2b-256 1abba88ae542f2925c5ca7f5b0e66fd1508cde1e1b95bbb831d4d2671f799b2b

See more details on using hashes here.

File details

Details for the file maltego_stix2-2.0-1-py3-none-any.whl.

File metadata

  • Download URL: maltego_stix2-2.0-1-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for maltego_stix2-2.0-1-py3-none-any.whl
Algorithm Hash digest
SHA256 49f4412abc68ddb809476353e971c4dc94c855125b071da8eb39a83eab308bb1
MD5 5538eb422cd6cab165001030994d1e53
BLAKE2b-256 39b0a433f065033d7974a66b1f7b4ee89c5ca44e4352b2c7454527ae6a3d537c

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