Pull the indicators out of a file TRAWL
The first move on an unknown binary is to run strings and comb the output for indicators. TRAWL does both: it lifts the readable text, ASCII and UTF-16, and picks out the IPs, URLs, hashes and keys worth pivoting on.
The file
Drop a binary, dump or document to run strings and pull the indicators out, or
…or paste text below
How it works
From strings to a lead
A binary does not hand you a tidy list of what it does, but it leaks: the domain it phones home to, a hard-coded IP for when DNS fails, the path it drops a file to, the registry key it sets to survive a reboot, the hash of what it downloads next. Those are the indicators you pivot on and the ones a detection is written around. TRAWL lifts the readable text and pulls them out in one pass, counted, so the address that appears twenty times is not lost among the noise.
Questions people ask about TRAWL
What does running strings on a file do?
It prints every run of printable characters at least a set length long, wherever it sits in the file, without understanding the file’s format. On a binary that turns up the text the program carries: messages, paths, addresses, URLs, registry keys.
TRAWL does the same for printable ASCII, bytes 0x20 to 0x7E, and for UTF-16, with the offset and encoding of each string. A tab, a line break or any letter outside ASCII ends a run. The table shows the first 5,000 strings; all of them are searched for indicators.
Why does a Windows program need the UTF-16 option?
Because Windows keeps most of its text as UTF-16 little-endian, two bytes to a character, so an ASCII letter is followed by a zero byte. A strings pass that reads ASCII only sees C, a zero, :, a zero, and finds nothing. UTF-16LE is on by default for that reason; big-endian is rarer and off by default.
Which indicators does it find?
IPv4 and IPv6 addresses, URLs, domains, email addresses, MD5, SHA-1 and SHA-256 hashes, Windows paths that start with a drive letter, registry keys, CVE IDs and Bitcoin addresses, in both the older forms starting with 1 or 3 and the bc1 form. Each is counted and listed most frequent first.
It does not pick out UNC or Unix paths, mutex names or bare file names; look for those in the strings table.
Why does it list private addresses and version numbers as IPs?
Because TRAWL keeps every valid dotted quad it finds. A private address such as 10.0.0.5 can matter in a sample, and a file version such as 1.2.3.4 looks exactly like an address. Parts with a leading zero, such as 01.2.3.4, are rejected. Names ending in a common file extension, such as .exe, .dll or .js, are dropped from the domains as file names.
For a list with the private ranges taken out, ready to share as STIX, paste the result into PARCEL.
What should I set the minimum length to?
Four, the usual default of strings, is right for most files. It can be set from 1 to 50. Lower finds more and fills the table with noise from code and compressed data; higher cuts the noise and can lose short strings.
Each string is searched on its own, so an indicator split across two runs by an unprintable byte or a character outside ASCII will not be found.
What do the un-defang and defang options do?
Un-defang input, on by default, undoes the usual disguises before searching, so hxxps://bad-domain[.]com is found as a URL and a domain. It reads hxxp, [.], (.), [dot], [:], [@], [at] and [://].
Defang on export does the reverse to URLs, domains, email addresses and IP addresses: a leading http becomes hxxp, dots become [.] and @ becomes [@]. It applies to the list on screen and to both exports, the CSV (type, indicator, count) and the JSON, which groups them by kind. The colons of an IPv6 address are left as they are.
Is it safe to open a malware sample here?
Nothing in the file is run: its bytes are read and searched as bytes. The URLs and addresses it lists are shown as plain text, not links, so nothing is opened by a stray click. That does not make the sample safe anywhere else.
The whole file is read into memory at once, so a very large memory dump is limited by what the browser will hold.
Doing this often? The Sovereign Console pulls every string, indicator and timestamp out of a whole case at once, and exports a report. On its own, US$2 a month; with everything else, US$5 a month or US$48 a year.