In order to check out the code for the current version of the standalone program, you will want to
grab an SVN client for your system (using the command-line version in Linux/Unix/Mac OS X is good
enough, while TortoiseSVN is often used by people under
Windows who do not wish to utilize a command-line client). If you are using the command-line client
then issue the command:
svn co https://scrub-netflows.svn.sourceforge.net/svnroot/scrub-netflows scrub-netflows
This will pull the latest version of the source from the repository. Alternatively, if you are using
TortoiseSVN, then you can just check out a new repository into a directory from the same URL as above.
To invoke the tool, one simply has to issue the following command:
scrub-netflows <input> <output> [options]
The following two options are required:
-r filename | file to be read, pcap format |
-w filename | file to be output, pcap format |
The following are options: | |
-i device | pcap-style device name from which to capture packets |
-o "anonymization sting" | string of anonymization options as explained in the next paragraph |
-k permutation_key | optional permutation key, only necessary if using keyed randomization |
The anonymization options string is composed
of a number of options, in any order, selected from the tables below. Its format follows the pattern of
<field function> pairs, where the field is one of the designators from table 2
below and the function used to anonymize that field is from table 3 below. They must
be paired as per the accepted pairings in Table 1. Errors in pairings will be accepted
by the system with undefined results. An explanation of what each function means in the context of each field
follows table 3. There will always be an even number
of options in this string, the first indicating the field to be anonymized and the second the function to
use in the anonymization process. For example, to anonymize the source IP address with black marker and
all the ports with bilateral classification the anonymization options string should look like:
"srcip bm tcpsrcport bi tcpdstport bi udpsrcport bi udpdstport bi"
and so on. Each of the field designations must be taken from the left-hand column of Table 2
below. The function names must be taken from Table 3 below. It is up to the
user to ensure that the combination of field and function makes sense (i.e. that you do not attempt to use
bilateral classification on an IP address or prefix-preserving pseudonymization on a timestamp, etc) - pairings
that the system supports (although errors will be silently accepted by the system with undefined and probably
nefarious effects) are listed in Table 1.
Below you will find a table of all of the fields that scrub-netflows anonymizes and the methods that can be used to anonymize that field. After that will be a description of how to specify those options to the tool on the command line.
Tabel 1: Fields and Corresponding SCRUB-NetFlows Anonymization Options |
|
---|---|
Field | Anonymizing Options |
IP address — source and destination | |
Time Stamp — beginning and ending timestamp | |
Milliseconds — special millisecond field for some netflows | |
Host ID | |
Number of bytes — sent and received | |
Number of packets — sent and received | |
Duration — for formats without an endtime |
|
Protocol |
The following table lists the fields and their field designations for use in the anonymization string for use with scrub-netflows:
Table 2: Packet Field Entities and Corresponding SCRUB-NetFlows Parameter Strings | |
---|---|
Packet Field Entities | SCRUB-NetFlows Parameter String Specifier |
Source port | srcport |
destination port | dstport |
Source IP address | srcip |
Desination IP address | dstip |
Host ID | AssignedHostID |
Start timestamp | StartTime |
Last timestamp | LastTimeStamp |
Duration | Duration |
Protocol | Protocol |
Total bytes sent | BytesSent |
Total bytes received | BytesRec |
Total packets sent | PktSent |
Total packets received | PktRec |
The following contains the names of the anonymization methods and their specifications for the anonymization string. There is also a brief description of what that anonymization method does.