# Metasploit URLs, Hash Lookups, & More in Unfurl v2021.06.15

> A new Unfurl release is here! v2021.06.15 adds decoding of some Metasploit URLs, hash identification and API lookups, & more!

- Author: Ryan Benson
- Published: 2021-06-15
- Tags: Unfurl, Open Source Tools
- Canonical URL: https://hindsig.ht/blog/metasploit-urls-and-hash-lookups-in-unfurl/

A new Unfurl release is here! v2021.06.15 adds decoding of some Metasploit URLs, hash identification and API lookups, more control over remote lookups, better UUID parsing, and a few more shortlink expansions. It also has a number of smaller fixes, code cleanups, and tests.

[Get it now](#get-it), or read on for more details about the new features!

## Metasploit URLs

[Didier Stevens](https://twitter.com/DidierStevens) has written about ([and made a tool for!](https://github.com/DidierStevens/Beta/blob/master/metatool.py)) decoding different Metasploit artifacts: [payload UUIDs](https://isc.sans.edu/forums/diary/Metasploits+Payload+UUID/23555/) and [shellcode URLs](https://isc.sans.edu/forums/diary/Finding+Metasploit+Cobalt+Strike+URLs/27204/). Thanks to his excellent work (that's he published as open source), I was able to see how those Metasploit artifacts are constructed and build decoders into Unfurl:

![](https://hindsig.ht/content/images/2021/06/unfurl_metasploit-checksum-url.png)

![](https://hindsig.ht/content/images/2021/06/unfurl_metasploit-payload-uuid-url.png)

Unfurl decoding two different types of URLs generated by Metasploit

You can read his blog posts for the details on the artifacts ([payload UUIDs](https://isc.sans.edu/forums/diary/Metasploits+Payload+UUID/23555/) and [shellcode URLs](https://isc.sans.edu/forums/diary/Finding+Metasploit+Cobalt+Strike+URLs/27204/)), but the super abbreviated version is that we can often extract at least the platform that was targeted (Windows in both examples above) - and sometimes more! It's another great example of extracting useful information from the way identifiers are generated.

Live Unfurl Examples:

-   [Metasploit payload UUID URL](https://hindsig.ht/unfurl/?url=https://example.com/4PGoVGYmx8l6F3sVI4Rc8g1wms758YNVXPczHlPobpJENARSuSHb57lFKNndzVSpivRDSi5VH2U-w-pEq_CroLcB--cNbYRroyFuaAgCyMCJDpWbws/)
-   [Metasploit shellcode URL](https://hindsig.ht/unfurl/?url=https://example.com/WsJH)

## Hash Identification and Remote Lookup

This release also adds the ability to identify potential hashes: MD5, SHA-1, SHA-256, & SHA-512. The detection is based on characters and length, so it's not high fidelity (for example, MD5 hashes are the same length as UUIDs, so some nodes will be identified as potentially both).

To aid with determining what's an actual hash and what's not, Unfurl can query remote services to see if they've seen that value before. At present, two services are supported: [VirusTotal](https://www.virustotal.com/) and [Nitrxgen's MD5 lookup database](https://www.nitrxgen.net/md5db).

The VirusTotal integration is fairly basic; if a (free) VirusTotal API key is set in the Unfurl config file, Unfurl will query the VirusTotal API with potential file hash values and add a child node with file type & name (if found).

Nitrxgen's MD5 lookup database is a bit different; it's a dataset of plaintext → MD5 hashes with over a trillion values. Unfurl can query it with potential MD5 values to see if it corresponds with a known plaintext string. This is different than the VirusTotal lookup (which queries hashes of file content), as the Nitrxgen lookup is for hashed text strings. However, sometimes both can be true, as in the image below:

<figure>
<img src="https://hindsig.ht/content/images/2021/06/unfurl_md5-hash-with-lookups-3.png" alt="">
<figcaption>Unfurl identifying an MD5 hash value and looking it up on VirusTotal and Nitrxgen</figcaption>
</figure>

These remote lookups can add value to Unfurl, but they also come with risk (as Unfurl is sending out potentially-sensitive hashes to 3rd parties). To give the user control over this, Unfurl has a new `remote_lookups` setting. Users can change it (from the default, `false`) in the `unfurl.ini` file. There's also a command line option to allow lookups (`-l` or  `--lookups`) from `unfurl_cli.py`. The CLI tool will fall back to the value specified in `unfurl.ini` if no command line option is set. Users **need to set this option to enable any remote lookups** (it's disabled by default). Shortlink resolution and MAC address vendor lookups are now also controlled by this option, as they are remote lookups as well.

Live Unfurl Examples:

-   [MD5 hash detection and lookup in both VirusTotal and Nitrxgen](https://hindsig.ht/unfurl/?url=https://dfir.blog/?test=5f4dcc3b5aa765d61d8327deb882cf99)
-   [SHA256 lookup on VirusTotal](https://hindsig.ht/unfurl/?url=b69049b7576687c0efed9b3cb9fa8f3beb218e31c30d200c1a67ad46bd06fcf0)

## UUIDv1 Random Node ID Detection

Unfurl has been able to detect and expand UUIDs since its beginning. Version 1 UUIDs have been particularly interesting, with their embedded timestamp and MAC address. This release adds the ability to determine if the Node ID contained in the UUIDv1 is an actual MAC address or a random number.

<figure>
<img src="https://hindsig.ht/content/images/2021/06/unfurl_uuid-v1-with-random-node-id.png" alt="">
<figcaption>Unfurl parsing a UUIDv1 with a random Node ID</figcaption>
</figure>

Live Unfurl Example:

-   [UUIDv1 with random Node ID](https://hindsig.ht/unfurl/?url=94c73940-6bd1-11e6-899a-ff601ec855b4)

## Get it!

To get Unfurl with these latest updates, you can:

-   use [hindsig.ht/unfurl/](https://hindsig.ht/unfurl/) online
-   if using pip, `pip install dfir-unfurl -U` will upgrade your local Unfurl to the latest
-   View the release on [GitHub](https://github.com/obsidianforensics/unfurl/releases/tag/v2021.06.15)

All features work in both the web UI and command line versions (**unfurl\_app.py** & **unfurl\_cli.py**).

[Let me know](https://twitter.com/_RyanBenson) what you think!
