Project

nwsdk

0.0
No commit activity in last 3 years
No release in over 3 years
allows users to run queries, extracts, and generate cef alerts
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

= 2.1.1pre
>= 0
 Project Readme

Nwsdk

Simplified wrapper + cli for NetWitness REST endpoints

Build Status

Installation

Add this line to your application's Gemfile:

gem 'nwsdk'

And then execute:

$ bundle

Or install it yourself as:

$ gem install nwsdk

Usage

Module documentation is non-existent. Best bet is to look at the specs and/or the cli driver invocations.

To get up and running, invoke 'nw config' and edit ~/.nwsdk.json

The cli is mainly used from the nw command:

Commands:
  nw cef CONDITIONS --loghost=LOGHOST            # send cef alerts for query conditions
  nw configure [$HOME/.nwsdk.json]               # write out a template configuration file
  nw content CONDITIONS                          # extract files for given query conditions
  nw help [COMMAND]                              # Describe available commands or one specific command
  nw pcap CONDITIONS                             # extract PCAP for given query conditions
  nw query CONDITIONS                            # execute SDK query
  nw timeline CONDITIONS                         # get a time-indexed histogram for conditions
  nw values CONDITIONS                           # get value report for specific meta key

Options:
  [--config=CONFIG]  # JSON file with endpoint info & credentials
                     # Default: $HOME/.nwsdk.json
  [--host=HOST]      # hostname for broker or concentrator
  [--port=N]         # REST port for broker/concentrator
                     # Default: 50103
  [--span=N]         # max timespan in seconds
                     # Default: 3600
  [--limit=N]        # max number of sessions
                     # Default: 10000
  [--start=START]    # start time for query
                     # Default: $now-1h
  [--end=END]        # end time for query
                     # Default: $now-ish

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ryanbreed/nwsdk.

Any fixtures/mocks/etc for the actual REST traffic would be highly welcome additions.

License

GPLv3 (see LICENSE)