rabobank-cdc / DeTTECT

Detect Tactics, Techniques & Combat Threats
GNU General Public License v3.0
2.05k stars 333 forks source link

error converting YAML to JSON #48

Closed macarongbadessy closed 3 years ago

macarongbadessy commented 3 years ago

Thank you so much for making this tool. However, I am getting an error message when trying to convert YAML to JSON.

I used the command inside the folder where DETTECT is:

python dettect.py ds -fd a.yaml -l

a.yaml is what I named the file

The error message I get is:

[!] Cannot connect to MITRE's CTI TAXII Server

I've used this command last week and it worked great. I guess with the MITRE changes something happened.

Can you please help?

Thank you.

marcusbakker commented 3 years ago

It seemed like when you ran this command the CTI TAXII server from MITRE was down or you had an internet connection problem: [!] Cannot connect to MITRE's CTI TAXII Server

I do not encounter any issues with the command you provided and the TAXII server is up now.

macarongbadessy commented 3 years ago

Hmm. I still get that same error. It is possible something may be blocked on our firewall. Is there a particular URL that needs to be allowed? I tried it again on another laptop and this is the error message I get now.

image

macarongbadessy commented 3 years ago

I tried reinstalling DETTECT, but that didn't help

marcusbakker commented 3 years ago

URL for the TAXII server: https://cti-taxii.mitre.org/stix/collections/

The exception you get in the shared screenshot is a bug: KeyError: 'PRE'. I pushed a fix.

macarongbadessy commented 3 years ago

It works now. Thank you so much!