Skip to main content

alt text

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.

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.

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.

Configuration

Generation

$ git clone https://github.com/maltegotransforms/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

For any customization of the heritage configuration of the entities, a custom version of the maltego-stix2 package has to be installed:

$ pip3 install .

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

For any customization of the types of the entities, a custom version of the maltego-stix2 package has to be re-installed:

$ pip3 install .

Import

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

If you use an iTDS, import the file output/importable_itds_config.csv in your iTDS management platform.

Contributing

Code of Conduct

We follow a standard Code of Conduct that we expect project participants to adhere to. Please read the full text 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

Metadata

Release files for maltego-stix2 2.1.7

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

Source distribution (sdist)

Source distribution for maltego-stix2 2.1.7
File Size Uploaded
maltego-stix2-2.1.7.tar.gz 15.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for maltego-stix2 2.1.7
File Interpreter ABI Platform
maltego_stix2-2.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 30.5 kB

Release files / maltego-stix2-2.1.7.tar.gz

Download URL maltego-stix2-2.1.7.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b3cef1f14c8b175a27cd0b80496b93a2cd354abd9e5c332dbc65e491b07e4d4d
BLAKE2b-256 checksum
How to use checksums
79784ac26530adeaf1ef593101f6d11cb3608d3d1dc980e244a48f47cd4d4813
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release files / maltego_stix2-2.1.7-py3-none-any.whl

Download URL maltego_stix2-2.1.7-py3-none-any.whl
Size 15.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50296730d963ca62ecf1fcc3bd0109c09e88e541d691e731b5fd2801bf18ab50
BLAKE2b-256 checksum
How to use checksums
e8072185dac3dfa77f54daf199712c1e4cef8856bb613a3e72cac18702c91cd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Release history Release notifications | RSS feed

This release

2.1.7 This release

2 release files

2.1.6

1 release file

2.1.5

2 release files

2.1.4

3 release files

2.1.3

1 release file

2.1.1

2 release files

2.1

3 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

3 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