Giter VIP home page Giter VIP logo

misp / misp-sighting-server Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 4.0 16 KB

MISP sighting server is a fast sighting server to store and look-up sightings on attributes (network indicators, file hashes, system indicators) in a space efficient way.

Home Page: https://misp.github.io/misp-sighting-server/

Python 100.00%
threat-intelligence information-security sightings misp sighting cti

misp-sighting-server's Introduction

misp-sighting-server

MISP sighting server is a fast sighting server to store and look-up sightings on attributes (network indicators, file hashes, system indicators) in a space efficient way.

Features

  • Simple ReST API to get or set sighting
  • TODO - fast DNS server to allow lookup of sighting via DNS queries
  • TODO - fast import of sighting via pub-sub channel like ZMQ

Back-end database

MISP sighting server rely on kvrocks using RocksDB at the current stage.

The back-end database might change following the evolution of the requirements or capabilities but the objective is to keep a compatibility layer to ensure use of the sighting database have the same API on the long-term.

Install

git submodule init
git submodule update
cd back-end/kvrocks
./x.py build
cd ../..
pip3 install -r REQUIREMENTS

Starting the servers

Starting the back-end

cd back-end/kvrocks
./build/kvrocks -c kvrocks.conf&

Starting the ReST API server

cd cfg
cp server.cfg.sample server.cfg
cd ..
cd ./bin/
python3 sighting-server.py

Testing

Add a sighting

field description
value Value of the sighting or UUID reference to the sighting
type Type of sighting (default is 0)
org_uuid UUID of the organisation recording the sighting
curl --header 'X-API-Key: afdef83f9cc7c87b801c36e4af632ef06af2f2ef' -X PUT  http://127.0.0.1:5000/add -d "value=127.0.0.1&type=0&org_uuid=0acdaad8-b305-482f-a904-78330640636b"  -d "source=honeypot"

Get the sighting of a value

curl -X GET http://127.0.0.1:5000/get -d "value=127.0.0.1"
{
    "1676925347": "honeypot:0:0acdaad8-b305-482f-a904-78330640636b",
    "1676925348": "honeypot:0:0acdaad8-b305-482f-a904-78330640636b",
    "1676925349": "honeypot:0:0acdaad8-b305-482f-a904-78330640636b",
    "1676925350": "honeypot:0:0acdaad8-b305-482f-a904-78330640636b",
    "1676925351": "honeypot:0:0acdaad8-b305-482f-a904-78330640636b",
    "1676925352": "honeypot:0:0acdaad8-b305-482f-a904-78330640636b",
    "1676925353": "honeypot:0:0acdaad8-b305-482f-a904-78330640636b",
    "1676925354": "honeypot:0:0acdaad8-b305-482f-a904-78330640636b",
    "1676925355": "honeypot:0:0acdaad8-b305-482f-a904-78330640636b",
    "1676925356": "honeypot:0:0acdaad8-b305-482f-a904-78330640636b",
    "1676925358": "honeypot:0:0acdaad8-b305-482f-a904-78330640636b",
    "1676925618": "blackhole:0:0acdaad8-b305-482f-a904-78330640636b",
    "1676925619": "blackhole:0:0acdaad8-b305-482f-a904-78330640636b",
    "1676925623": "siem:0:0acdaad8-b305-482f-a904-78330640636b",
    "1676925627": "edr_234:0:0acdaad8-b305-482f-a904-78330640636b"
}

misp-sighting-server's People

Contributors

adulau avatar iglocska avatar tasydevilsky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

misp-sighting-server's Issues

Installation failure

hey ,

I tried to install the module on the same MISP server ubuntu 16.04 . Not sure it matters but instead of "git submodule update" I used "git clone https://github.com/yinqiwen/ardb.git" because of the SSH I can't open. When I finish installing, I try Starting the ReST API server and encounter the "configparser.NoSectionError: No section: 'server'" error.
I changed the file name from server.cfg.sample to server.cfg and did not change the settings inside (need to change them?). Now I'm having the error "redis.exceptions.ConnectionError: Error 2 connecting to unix socket: /tmp/ardb.sock. No such file or directory."
The file really does not exist, should it be created manually? So what settings should I put in it?

Thank you !
Shimi

Got Error 403 when connect from MISP 2.4.177 version

Hello,

I'm using 2.4.177 version of MISP, and still receive same error message 403.
Does anyone knows if this connection between MISP and misp-sighting-server is available already for this version?

Thanks in advance.

Consider adding organisations

Was looking into using this as a plug-in replacement in the future for the sighting system, it indeed looks very good and the performance is insanely fast.

However, in order to fully replicate what we have currently we need to be able to replicate the following:

  • value based sighting
  • id/uuid sighting
  • source
  • types:
    • sighting
    • FP (added just now)
    • expiration (to be added, but tricky due to 1/org limitation - maybe this shouldn't go in here?)
  • timestamp
  • org_id/org_uuid

Once we have all of them covered we can start thinking about phasing out the current implementation (though sharing across instances will still be tricky).

Connection from MISP Error 403

Hi, I would like to ask if I understood this "misp-sighting-server" correctly. I thought that it serves as a database to store "sightings" for individual attributes for multiple MISP instances. But I have a problem with the connection from MISP. The instance is communicating correctly, I tried listening via netcat and MISP is communicating. I get the error message Error 403:, but my "misp-sighting-server" via "curl" responds correctly. ( curl --header 'X-API-Key: afdef83f9cc7c87b801c36e4af632ef06af2f2ef' -X PUT http://127.0.0.1:5000/add -d "value=127.0.0.1&type=0&org_uuid=0acdaad8-b305-482f-a904-78330640636b" -d "source=honeypot")

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.