Friday, November 22, 2013

Create your own Maltego graph sharing server

In Maltego it is possible to use any public XMPP server with the required features enabled (authentication, conferencing and item discovery) for graph sharing, but having your own private server can also be useful. It might be that you want complete control over the XMPP server or that you want all communication to happen only in 'n LAN behind a firewall. Having your own local server will also reduce the latency for your team if everyone is in the same geographic area. 

In this tutorial I will show how you can configure your own XMPP server and use it for sharing graphs in Maltego. I'll be using Prosody for the server since it is easy to install and configure.

Step 1 - Install Prosody

Have a look at the Prosody download page for instructions on how to install Prosody on different operating systems. 

For this tutorial I used an Ubuntu server as my Prosody server and most of the steps would be similar for other Linux distributions and OS X. Windows would require a little bit more effort only because the Windows version of Prosody does not include the prosodyctl utility for easily adding users.

So firstly install or extract Prosody as described on the download site. For Ubuntu you can run...

   sudo apt-get install prosody

Step 2 - Server name

In the Prosody config file (in the next step) you will have to specify the server name for the server running Prosody. 

If your server will only be accessed from your local LAN you can use the machine name as the server name, otherwise you can use the external domain name of the server. 

SRV records are also supported to resolve the domain name of your XMPP server, for more info about using SRV records for XMPP servers see

Step 3 - Configure Prosody

Prosody is configured by editing the Prosody configuration file (prosody.cfg.lua). The Configuring Prosody page has detailed information about configuring Prosody.

In Windows you can run editconfig.bat to edit the Prosody configuration file.

In Linux the location of the configuration file is... 


If the file does not exist create it and add the following lines, if the file does exist make sure the following lines are present and not commented out (comments start with --)...

   modules_enabled = {
   VirtualHost ""
   Component "" "muc"

Replace in both lines with the server name from the previous step.

Step 4 - Create a user

In Windows you can use an XMPP client like Pidgin to connect to your Prosody server and add users.

In Linux you can create a user by running...

   sudo prosodyctl register anton mypassword

...where you replace anton with your username, with your server name and mypassword with a suitable password.

Step 5 - Start/restart Prosody

In Windows run prosody.bat to start Prosody.

In Linux run...

   sudo /etc/init.d/prosody restart

Step 6 - Connect with Maltego

Start Maltego on a machine that has access to your XMPP server machine through its server name.

Open Share Graph...

Fill in the session info. For this example I'll use the same session info as in the previous blog post (see Remote Graph Sharing with Maltego)...

Next change the server settings. Enter your server name from Step 2 in Server DNS Name. If using SRV records you can leave the port on Auto detect, else choose the Default port 5222 as below.  Also enter your Username and Password and then click Connect...


If everything went as planned then you should have a new graph connected to your new XMPP server with the Collaboration Session window displaying your server's details like in the screenshot below...

In the Server settings you might have noticed a Paterva (Private) option as well. If you are interested in buying your own private server that works the same as the public Paterva communication server with auto-registration and everything included then you can email the Paterva guys at

Anton van Aswegen

Thursday, November 21, 2013

Remote Graph Sharing with Maltego

With the new graph collaboration features in Maltego Tungsten 3.4 and Maltego CaseFile 2.0 it is possible for a whole team of people to work together on the same graph remotely and securely. Graphs are synchronized using the XMPP (Jabber) protocol so the graph is never stored anywhere in the 'cloud', it is only stored on the machines of the users sharing a graph. Communication is encrypted with TLS and 128-bit AES. With some configuration 256-bit encryption can also be used, but it is important to be wary of the cryptography laws in your country.

The best thing about the graph sharing in Maltego is that it's really easy, especially if using the default public Paterva communication server, which comes with all the security mentioned above. With a few clicks your whole team could be collaborating on a graph in no time.

As an example of how to share a graph the following tutorial shows how Bob can share a graph remotely with Alice.

Step 1 - Key Exchange

Bob and Alice decides to collaborate on a research project using Maltego. Beforehand they have to exchange the security key that they will use for sharing graphs. Since the security key must be kept secret they decide to meet up and exchange the key verbally in person.  

Step 2 - Bob shares a new graph

Later on Bob is at home and decides to start doing research. He fires up Maltego.

Step 2a - Share Graph

Bob clicks on Share Graph...

Step 2b - Session Info

Bob enters the following session info and clicks Connect...

Step 2c - Bob notifies Alice

Bob lets Alice know that he shared a graph with the name "Wonderland42".

Step 3 - Alice connects

Alice also fires up Maltego.

Step 3a - Share Graph

Alice clicks on Share Graph...

Step 3b - Session Info

Alice enters the same Session Name and Security Key as Bob but uses "Alice" as her User Alias...

Both Bob and Alice are now be connected to the same graph as shown in the Collaboration window...

Step 4 - Collaborate!

Bob and Alice can now chat using the chat window and both of them can make changes to the same shared graph... 

Bob and/or Alice can then save the graph locally and share it again later to continue collaborating and more than two people can share the same graph in this way.

One thing to note is that attachments are currently not synchronized to the other users. Your current view of the graph (location & zoom level) is also not synchronized to other users so that users can work with different parts of the graph at the same time, but everything else is synchronized including bookmarks, notes and the layout (per Main/Bubble view).

An encrypted XMPP communication channel is used to share a graph between users. When sharing graphs without changing the server settings (as with Bob and Alice) then a public XMPP server hosted by Paterva is used, but it is also possible to use another public XMPP server or configure and use your own XMPP server. If not using the public Paterva server then the server used must be specified in the "Server" tab of the Share Graph dialog.

Anton van Aswegen