Giter Site home page Giter Site logo

Comments (8)

FloatingGhost avatar FloatingGhost commented on September 24, 2024

please debug my script that I haven't given you and the details of which are incredibly vague

oh also I'm not going to give you any logs

I swear to god is it THAT hard!?

from misp-taxii-server.

adulau avatar adulau commented on September 24, 2024

@rmeghnagi Could you share technical information such output of logs, Python exceptions or technical details or even the source of your script? That would help us to debug your issue. Thank you.

from misp-taxii-server.

rmeghnagi avatar rmeghnagi commented on September 24, 2024

Case A:

taxii-push -f content_file --dest collection --path path/to/inbox/service

This command works fine. The content is read from the source file and stored within the collection. After that, an event appears on MISP.

I checked the Python code that is executed using the taxii-push: a simple client.push()

Case B:

from cabby import create_client

poll_client = create_client(
        'url',
        use_https=True,
        discovery_path='taxii-discovery-service')
		
poll_client.set_auth(cert_file="cert", key_file="key", username="user", password="pass")
		
content_blocks = poll_client.poll('collection_name')

push_client = create_client(
        '127.0.0.1',
        use_https=False,
        discovery_path='services/discovery')

for block in content_blocks:
	push_client.push(content=block.content, collection_names=["collection_name"], content_binding="urn:stix.mitre.org:xml:1.1", uri="http://localhost:9000/services/inbox")

Data are correctly retrieved from the online service and are correctly stored within the specified collection. Nothing appears on MISP.

I don't have any log or exception cause the script itself works fine.

Did i miss something?

from misp-taxii-server.

rmeghnagi avatar rmeghnagi commented on September 24, 2024

@adulau Do you have any suggestion? Thank you in advance!

from misp-taxii-server.

adulau avatar adulau commented on September 24, 2024

Could you save/print the STIX file and try to import manually using the import in MISP directly? The STIX 1.1 import in MISP has been significantly improved. If you could share the file that would be great too. Thanks.

from misp-taxii-server.

rmeghnagi avatar rmeghnagi commented on September 24, 2024

I'm looking for a way to automate the STIX import in MISP from a certain source. For this reason i wrote this Python script. I cannot understand which is the difference between the taxii-push command and the push inside the script. The first event is loaded in MISP, not the second one.

from misp-taxii-server.

rmeghnagi avatar rmeghnagi commented on September 24, 2024

Resolved.

Thank you all.

from misp-taxii-server.

adulau avatar adulau commented on September 24, 2024

Cool thank you for the feedback.

from misp-taxii-server.

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.