Module: Aikido::Zen::OutboundConnectionMonitor

Defined in:
lib/aikido/zen/outbound_connection_monitor.rb

Overview

This simple callable follows the Scanner API so that it can be injected into any Sink that wraps an HTTP library, and lets us keep track of any hosts to which the app communicates over HTTP.

Class Method Summary collapse

Class Method Details

.call(connection:) ⇒ nil

This simply reports the connection to the Agent, and always returns nil as it’s not scanning for any particular attack.

Parameters:

Returns:

  • (nil)


13
14
15
16
17
# File 'lib/aikido/zen/outbound_connection_monitor.rb', line 13

def self.call(connection:, **)
  Aikido::Zen.track_outbound(connection)

  nil
end