Skip to content

EngineFactoryObjectInterface

Amy Bowersox edited this page May 14, 2020 · 3 revisions

The Engine Factory Object Interface

Create an object implementing this interface to send binary data to an analysis engine other than the built-in YARA one in order to find Indicators of Compromise (IOCs). This object is responsible for creating and configuring your engine object.

The fully-qualified class name of the class implementing this interface should be inserted as the value of the _provider: property of the engine: section of the configuration file.

Your object must implement all methods defined in this reference.

Your implementation can inherit from the class cbc_binary_toolkit.engine.manager.LocalEngineFactory (defined here), to ensure that the protocol is properly implemented.

create_engine method

def create_engine(self, config):

This method is called when the toolkit is initialized, so your factory object can create and configure the engine object instance that will be used.

Parameters:

  • config (type: Config) - Reference to a Config object pointing at the engine: section of the configuration.

Returns:

(type: object) Instance of your engine object.