Next Previous Contents

9. Ad-hoc searches

The Search utility allows an analyst to reach back in time and view network events even if they didn't meet the criteria (filters) to be included in an hourly report. Depending on the search plugin and output format selected, the analyst can display the results of ad-hoc queries textually or graphically, or retrieve the packets that match the query as a composite libpcap dumpfile for further, local, examination.

9.1 The interface

The Search interface is plugin-customized to provide access to important capabilities of the associated utility. For instance, the ngrep search interface provides text boxes in which you can specify regular expressions to match against packet payload, while the tethereal search interface accepts tethereal-specific filters. The plugin-specific interfaces that are included with this distribution will be discussed in "Search plugins", below.

9.2 Standard search options

Not all of the following are available to all plugins, but are general enough to be called "standard":

9.3 Search plugins

The search plugins included with IDABench are by no means the only ones that are possible. As such, these notes may be rather insufficient to describe the settings and options available to you. The three that are provided are:

  1. tcpdump - Additional options provided with for tcpdump(1) deal with output formatting.

  2. ngrep - The ngrep plugin allows content-based searches to be specified, and the output be formatted with a few basic modifiers:

  3. tethereal - tethereal(1) is a text version of the wonderful protocol analyzer, Ethereal. The syntax for specifying packets to output is very rich, and the output itself can be overwhelming in its detail. There is a performance price to pay for all of this capability, do use with caution.

    From the Tethereal manual page:

    When printing a decoded form of packets, Tethereal prints,
    by default, a summary line containing the fields specified
    by the preferences file (which are also the fields dis­
    played in the packet list pane in Ethereal), although if
    it's printing packets as it captures them, rather than
    printing packets from a saved capture file, it won't print
    the "frame number" field.  If the -V flag is specified, it
    prints instead a protocol tree, showing all the fields of
    all protocols in the packet.
    

    See man 1 tethereal for a full description of the read filter syntax. A few examples:

    The tethereal search plugin is a very simple one that can be used as an example of plugin design; hopefully there will be a friendlier IDABench interface to tethereal soon.

9.4 Repeat queries

If a query is submitted that is identical to a prior query, and the image or composite binary dumpfile is still in the web spool directory, the query will NOT be reprocessed. Instead, the cached results will be returned to the browser immediately. This allows one to bookmark or email the URL of a "results" webpage containing an image or postscript or binary results link. These spooled files will be flushed once the IDABENCH_TEMP_FILE_LIFESPAN (in idabench.conf) has been surpassed.


Next Previous Contents