Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement plugins, transforms #284

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

CapacitorSet
Copy link
Contributor

As discussed in chat.

This implements plugins (in the Go sense) for the following features:

  • Services;
  • Transforms;
  • Channels.

Currently, plugins are searched for in the data directory, and are expected to be .so files exporting a certain symbol (Service for services, Transform for transforms, Channel for channels).

Transforms are a new component that generalizes the notion of filters. They are functions that take one event and return zero, one or more events (which do not necessarily include the original one) - conceptually, it's a flatmap. They are the groundwork for supporting Yara matching (addressed in another PR), Lua scripting, and possibly other extensions.

@CapacitorSet CapacitorSet mentioned this pull request Apr 22, 2018
This was referenced Apr 26, 2018
@CapacitorSet CapacitorSet changed the title Implement plugins, transforms [WIP] Implement plugins, transforms May 2, 2018
@CapacitorSet CapacitorSet changed the title [WIP] Implement plugins, transforms Implement plugins, transforms May 9, 2018
@CapacitorSet CapacitorSet force-pushed the plugins branch 2 times, most recently from 0f442e3 to 4ba06a1 Compare July 10, 2018 11:28
@codecov-io
Copy link

codecov-io commented Jul 10, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@1b595a7). Click here to learn what that means.
The diff coverage is 3.44%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #284   +/-   ##
=========================================
  Coverage          ?   41.75%           
=========================================
  Files             ?       77           
  Lines             ?     8780           
  Branches          ?        0           
=========================================
  Hits              ?     3666           
  Misses            ?     4689           
  Partials          ?      425
Impacted Files Coverage Δ
services/dns-proxy.go 0% <ø> (ø)
services/counterstrike.go 0% <ø> (ø)
services/tftp.go 0% <ø> (ø)
services/memcached.go 0% <ø> (ø)
server/honeytrap.go 3.1% <0%> (ø)
services/services.go 8.82% <6.25%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b595a7...2c63797. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants