Skip to content

MaltegoTech/misp-maltego

Repository files navigation

Introduction

This is for integrating Maltego with a MISP Instance.

Getting Started

  1. There are two possible ways to deploy:

    • Local Deployment
    • iTDS Deployment
  2. Software dependencies:

    • Python v3.12
    • Maltego-trx
    • PyMISP
    • python-dotenv
    • Docker
  3. API references:

Running The Transform Server

Development Deployment:

Edit the extensions.py to point it to the correct transform host server You can start the development server by running the following command:

  python project.py runserver

This will start up a development server that automatically reloads every time the code is changed.

Production Deployment:

You can run a gunicorn transform server after installing gunicorn on the host machine and then running the command:

  gunicorn --bind=0.0.0.0:8080 --threads=25 --workers=2 project:application

For publicly accessible servers, it is recommended to run your Gunicorn server behind proxy servers such as Nginx.

      Local Deployment: Local Transform

      iTDS Deployment: iTDS Transform

Configuration

Create a file named .env in the same directory as your Python script (project.py). This file will store sensitive information like API keys. Alternatively, you can also use transform settings to set the URL and API key.

Follow the instructions here to add seeds, config.mtz files, and transforms. iTDS Transform Setup

Start the development server (for testing):

  python project.py runserver

This will start a server on http://localhost:8080 by default.

For production deployment, consult the Gunicorn documentation for recommended practices

Troubleshooting

Common errors might include:

Connection errors: Verify your MISP URL and ensure the server is reachable.
Authentication errors: Double-check your API key in the .env file.
For detailed error messages, consult the Maltego transform logs and MISP API documentation.

License

This software is licensed under GNU Affero General Public License version 3

Copyright (C) 2018-2024 Christophe Vandeplas Copyright (C) 2024 Maltego Technologies GmbH

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/. Note: Before being rewritten from scratch this project was maintained by Christophe Vandeplas. The code is available here.

The logo is CC-BY-SA and was designed by Françoise Penninckx

The icons are from intelligence-icons licensed CC-BY-SA - Françoise Penninckx, Brett Jordan

Releases

No releases published

Packages

No packages published