Giter Site home page Giter Site logo

Comments (16)

imereau avatar imereau commented on June 20, 2024 2

cool, it works fine again! Many thanks for the quick fix! :-)

from misp-book.

iglocska avatar iglocska commented on June 20, 2024

Interesting. That should work via ZMQ. Could you update to the latest version just in case?

from misp-book.

imereau avatar imereau commented on June 20, 2024

OK, sure, I will.
I am actually using both ZMQ and STIX export to populate the TAXII server. I realise that also the STIX export doesn't contain objects information (e.g. hashes related to an uploaded sample are not present, even when marked for IDS).
Is there something I am missing? I am using the /events/stix/download URL without additional parameters.

thanks a lot again!
Irving

from misp-book.

iglocska avatar iglocska commented on June 20, 2024

Hmm it should include them as of the latest version, @RichieB2B added it afaik ;)

from misp-book.

imereau avatar imereau commented on June 20, 2024

hmhm weird..
I am on:

misp@misp:/var/www/MISP$ cat .git/HEAD
ba71effd12c93d26579d1508d91fcbcb275e7a26
misp@misp:/var/www/MISP$ cat VERSION.json
{"major":2, "minor":4, "hotfix":81}

But still I can't find objects hashes e.g. in the STIX export :-(
Any advise is welcome..

Irving

from misp-book.

RichieB2B avatar RichieB2B commented on June 20, 2024

It should.. what object type are you using?

from misp-book.

imereau avatar imereau commented on June 20, 2024

I am actually uploading samples, which nicely creates an object with filename, hashes and file size as attributes. And I would need these attributes to be exported in STIX.
I did not try with another object type to be honest.

Thx again!
Irving

from misp-book.

RichieB2B avatar RichieB2B commented on June 20, 2024

The subject of this issue says ZMQ. Are you using the MISP TAXII service by any chance?

from misp-book.

imereau avatar imereau commented on June 20, 2024

Yes, I am. Indeed, it was the original issue. Just a bit of context, I'm using ZMQ to publish events to the MISP TAXII server and the STIX export with custom scripts to freshly load the TAXII server. And I noticed that the objects attributes were not included. Sorry for mixing up the 2 subjects. Actually, more important to me is the STIX export using the MISP API. I can do it all with that functionality only. ZMQ is bonus :)

Many thanks again for your help!
Irving

from misp-book.

RichieB2B avatar RichieB2B commented on June 20, 2024

STIX via TAXII (via ZMQ) is an entire different code path. It doesn't support many of the mapping that the straight "Download as..." STIX export does.

I suspect ZMQ itself does pass the MISP objects but the MISP STIX converter from https://github.com/MISP/MISP-STIX-Converter does not.

from misp-book.

imereau avatar imereau commented on June 20, 2024

OK understood.
But what about the STIX export via the API? Is it supposed to include objects info?

from misp-book.

RichieB2B avatar RichieB2B commented on June 20, 2024

API as in downloading the /events/stix/download URL will include the objects. Using PyMISP will not include the objects in the STIX format (as it uses the external MISP STIX converter).

from misp-book.

imereau avatar imereau commented on June 20, 2024

Well... I upgraded to the latest version and now I get a "An internal Error has Occured" when trying to access /events/stix/download.

2017-10-27 09:36:45 Error: [Exception]
Request URL: /events/stix/download
Stack Trace:
#0 [internal function]: EventsController->stix('download')
#1 /var/www/MISP/app/Lib/cakephp/lib/Cake/Controller/Controller.php(491): ReflectionMethod->invokeArgs(Object(EventsController), Array)
#2 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(193): Controller->invokeAction(Object(CakeRequest))
#3 /var/www/MISP/app/Lib/cakephp/lib/Cake/Routing/Dispatcher.php(167): Dispatcher->_invoke(Object(EventsController), Object(CakeRequest))
#4 /var/www/MISP/app/webroot/index.php(92): Dispatcher->dispatch(Object(CakeRequest), Object(CakeResponse))
#5 {main}

from misp-book.

iglocska avatar iglocska commented on June 20, 2024

Pushed a fix, git pull and it should work again.

Thanks for the heads-up!

from misp-book.

ShimiCohen avatar ShimiCohen commented on June 20, 2024

hi , i working with zmq to update the taxii server .
you can tell me which script you use for sync stix api to zmq ?

from misp-book.

ShimiCohen avatar ShimiCohen commented on June 20, 2024

cool, it works fine again! Many thanks for the quick fix! :-)

hi , i working with zmq to update the taxii server .
you can tell me which script you use for sync stix api to zmq ?

from misp-book.

Related Issues (20)

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.