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

Realtime feed generator #204

Merged
merged 17 commits into from
Mar 12, 2018
Merged

Realtime feed generator #204

merged 17 commits into from
Mar 12, 2018

Conversation

mokaddem
Copy link
Contributor

@mokaddem mokaddem commented Mar 12, 2018

Hi,
After a discussion with iglocska, adding lots of ephemeral attributes in a short time in MISP seems to be a bad idea.
Such a case can arise if we directly connect a honeypot to MISP.
Fortunately, MISP feeds could be a nice alternative.

Also, adding attributes and objects to daily generated events seems to be a common practice.

This PR provides scripts to ease the process of creating such a feed from the data producer, up to serving generated files to MISP.

Below is a brief summary of the files:

  • generator.py exposes a class allowing to generate a MISP feed in real time, where each items can be added on daily generated events.
  • fromredis.py uses generator.py to generate a MISP feed based on data stored in redis.
  • server.py is a simple script using Flask_autoindex to serve data to MISP.
  • MISPItemToRedis.py permits to push (in redis) items to be added in MISP by the fromredis.py consumer script.
  • CowrieMISPObject.py constructor for the MISP cowrie object.

Any remarks or requests are more than welcome. :)

@codecov
Copy link

codecov bot commented Mar 12, 2018

Codecov Report

Merging #204 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #204   +/-   ##
=======================================
  Coverage   64.28%   64.28%           
=======================================
  Files          23       23           
  Lines        3408     3408           
=======================================
  Hits         2191     2191           
  Misses       1217     1217

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 658b149...6553519. Read the comment docs.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 64.29% when pulling 6553519 on mokaddem:redis-feed-generator into 658b149 on MISP:master.

1 similar comment
@coveralls
Copy link

coveralls commented Mar 12, 2018

Coverage Status

Coverage remained the same at 64.29% when pulling 6553519 on mokaddem:redis-feed-generator into 658b149 on MISP:master.

@adulau adulau merged commit ba98c71 into MISP:master Mar 12, 2018
@adulau
Copy link
Member

adulau commented Mar 12, 2018

Cool! Thank you very much.

@iglocska
Copy link
Member

iglocska commented Mar 13, 2018 via email

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

4 participants