Project

otx_ruby

0.01
Low commit activity in last 3 years
No release in over a year
AlienVault Open Threat Exchange Threat Intel feed API Wrapper
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.3
~> 5.16
~> 13.0
~> 6.1
~> 3.14

Runtime

~> 2.3
~> 3.13
 Project Readme

Open Threat Exchange (OTX) Ruby Wrapper

Open Threat Exchange is an open community that allows participants to learn about the latest threats, research indicators of compromise observed in their environments, share threats they have identified, and automatically update their security infrastructure with the latest indicators to defend their environment.

This gem provides a wrapper for Ruby applications to pull pulses from OTX and be consumed by the ruby application.

Build Status

security CircleCI

Installation

Add this line to your application's Gemfile:

gem 'otx_ruby'

And then execute:

$ bundle

Or install it yourself as:

$ gem install otx_ruby

Usage

  require 'otx_ruby'

  api_key = '4xxx........'
  otx = OTX::Subscribed.new(apikey)

  # Get all subscribed pulses
  pulses = otx.get_all

  # Read contents of a single pulse
  pulse_id = '56xxxx..........'
  pulses = OTX::Pulses.new(apikey)

  pulse = pulses.get_pulse(pulse_id)

API Key

Library requires your API key this can be found in your settings page https://otx.alienvault.com/settings

API Timestamp

The API uses ISO Format timestamps, however there is a quirk, the API seems to use Python style timestamps as a result it is important to ensure that the sent time stamp uses the UTC format when sent

"2010-10-25T23:48:46Z"

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

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

Copyright

Copyright (c) 2015-2022 Stephen Kapp and Reaper Technologies Limited. See LICENSE for details.