Home

Awesome

GraphSense Maltego Transform

This tranform set for GraphSense is from an original idea of our Swiss colleagues and aims at querying GraphSense data directly in Maltego.
The tranforms enable simple queries on GraphSense data and tag-packs to obtain transaction graphs and attribution tags in Maltego.

Graphsense and this transform set work for BTC, BCH, LTC, ZEC and ETH
<img src="images/bitcoin.png" height="80"><img src="images/bitcoincash.png" height="80"><img src="images/litecoin.png" height="80"><img src="images/zcash.png" height="80"><img src="images/ethereum.png" height="80">
A screen copy of the transform result in Maltego

Authors and attribution

Vincent Graber
github/grarbervi
Vincent Danjean
github/VinceICPO
Images on this page are our own, and made from Maltego 4.2.19 Enterprise.

Disclaimer

This set of tools is provided as-is with no guaranty of accuracy.
Check the facts before building your case on the finding from this tool.

Prior to working on this repository and its contents, please make sure your agree to our disclaimer
This repository only contains the code, not the police data. Please do not store your TagPack(s) in this repository.
Please let us know by opening an Issue if you want to suggest a new feature or data source or find a bug.

Prerequisite

Works with Python3

Use the package manager pip to install the below required python librairies.
Install Microsoft Visual C++ 14.0 or higher. It is required to install maltego-trx, below.

pip3 install maltego-trx  
pip3 install requests  

Check the graphsense-python instructions to setup the required Python API tools from GraphSense.
Normally, this is done by running:

pip3 install git+https://github.com/graphsense/graphsense-python.git

Updating a previous install

If you already have PIP, Maltego-TRX, and other prerequisits please make sure you have the latest releases.

python3 -m pip install --upgrade pip  
pip3 install --upgrade maltego-trx requests git+https://github.com/graphsense/graphsense-python.git

All of this was successfully tested with:

Configuration

You need to provide your own token from the GraphSense API.
Simply edit the config.json file to add your own API Token:

Installation of the required transforms inside Maltego

Clone this repository to a local folder on your machine.

In Maltego, from the transform hub, install:

1/ In the Transforms Tab or in Transforms manager, add a New Local Transform.

2/ Fill-in the required fields:
In the Display Name box, enter:
To details [Graphsense]
In the Transform ID box, enter:
graphsense.ToDetails, no space, no special characters here.
In the Author box, enter whatever you like.
In the Input entity type box, choose:
Unknown [maltego.Unknown], as you type, Maltego will propose the corresponding entries.

<img src="images/ConfigureDetails1.png" width="70%"> If all is good, your configuration should look similar to the above.

Click on Next>

3/ In the Command line box, provide the path to your python3 executable:

4/ In the Command parameters box, type:
project.py local todetails
"totags" is one of the transforms available. Please see 6/ below.

5/ In the Working directory box, insert the full path to the folder where you have cloned this project.
<img src="images/ConfigureDetails2.png" width="70%">
If all is good, your configuration should look similar to the above.

Click on Finish

6/ You need to repeat 1/ to 5/ above for each of the transforms contained in this set:

7/ Import the GraphSense Entities:
For this, go to Entities tab, click on Import Entities
Browse to and select the "Graphsense Entities.mtz" file. Click Next>
Tick both the Entities and the Icons boxes to import everything. Click Next>

Click on Finish

-- Done ! --

Use

You can now use this set of transforms in a Maltego Graph starting from a supported cryptocurrency address or cluster.
You may do this on any cryptocurrency address but this set of tranforms works for BTC, BCH, LTC, ZEC and ETH.

As with any other Maltego Transform, all that is needed is a right-click on the entity and choosing the transform you want to run.
<img src="images/Choose%20a%20transform.png" width="300px">
<img src="images/Cluster.png" height="100px">

The illustration above is a cluster in the Graphsense meaning. It is an item that ties together several cryptocurrency adresses that the GraphSense algorithms and euristics have found to be controlled by one same entity.
If the cluster tags is accompanied by a businessman on the top left corner overlay, -like in the illustration above-, this implies that the cluster or some of the cryptocurrencies within have been associated with attribution tags.
In a cluster shows a businessman, use the "to tags" transform to display the associated tag(s).
The number on the left, below the businessman represents the number of cryptocurrency addresses belonging to that cluster.

A normal way of using this to follow the money trail would be:

Contribute

You may help us develop this tool.
The current local transform is possible thanks to the use of paterva/maltego-trx.
It support a few entities but is very flexible in adding custom properties. Refer to the details of supported entities.
The results displayed are from queries to GraphSense OpenAPI.
Feel free to open an Issue or improvement request.
The developement is done in the Dev branch.

Footnotes

  1. Troubleshooting for Mac
    On Mac OS X it is important to check that the above pip is installing the modules in the same python3 as Maltego expects.
    To check which Python Maltego is effectively using, set the tranform with the Command line box as which and the Command parameters box as python3.
    Run the transform once and look for the result in the debug output box.
    This will give you the path to the python version used by the Maltego app.
    It needs to be the same path as the pip used above (check by runing pip -V in terminal).
    If it isn't, try with pip3 instead of pip. You may need to reinstall the Prerequisites above once this pip and python path is fixed.
    If you are unsure which python you are using, run "which python3".
    You may use an alias to point to the correct python or pip.
    Another issue you may face is an error in validating SSL certificates. In this case, run /Applications/Python\ 3.11/Install\ Certificates.command to fix the root certificates on your Mac. Please refer to: https://stackoverflow.com/a/58525755.