GithubHelp home page GithubHelp logo

File "/home/dev/DeTTACT/group_mapping.py", line 179, in get_group_techniques json_platform = e['platform'] KeyError: 'platform' about dettect HOT 10 CLOSED

rabobank-cdc avatar rabobank-cdc commented on July 23, 2024
File "/home/dev/DeTTACT/group_mapping.py", line 179, in get_group_techniques json_platform = e['platform'] KeyError: 'platform'

from dettect.

Comments (10)

marcusbakker avatar marcusbakker commented on July 23, 2024

Hi Sri-telstra,

Could you provide the exact command you've executed? I'm unable to replicate this issue by executing the following command:

python3.7 dettact.py g -g all
Written layer: output/attack_windows_all.json

Regards,
Marcus

from dettect.

sri-telstra avatar sri-telstra commented on July 23, 2024

Sure no problem. The command and the output are provided below.

dev@ubuntu:~/DeTTACT$ python3 dettact.py g
Traceback (most recent call last):
File "dettact.py", line 202, in
menu(init_menu())
File "dettact.py", line 153, in menu
generate_group_heat_map(args.groups, args.overlay, args.overlay_type, args.stage, args.platform, args.software_group)
File "/home/dev/DeTTACT/group_mapping.py", line 452, in generate_group_heat_map
groups_dict = get_group_techniques(groups, stage, platform, groups_file_type)
File "/home/dev/DeTTACT/group_mapping.py", line 179, in get_group_techniques
json_platform = e['platform']
KeyError: 'platform'

from dettect.

marcusbakker avatar marcusbakker commented on July 23, 2024

Which version of Python are you running?

You could try to delete the folder 'cache'. This folder contains a cached version of the MITRE ATT&CK data retrieved through their STIX/TAXII API (after 24 hours cached data is cleared automatically). Maybe there is a fault in this data that causes this error.

from dettect.

sri-telstra avatar sri-telstra commented on July 23, 2024

python3 --version
Python 3.6.7

Yes, I believed this could be the case and tested after clearing (and deleting) the cache folder. However, the error continues to remain. Interestingly, this particular command did work once and since then it has failed with the same error. Is there a keyword definition conflict?

Many thanks for your help mate!

from dettect.

rubinatorz avatar rubinatorz commented on July 23, 2024

Hi sri-telstra,

I've tested around and found that when using attackcti version 0.1.7, I'm getting the exact same error as you have. So I would advise to check your attackcti version (with "pip3 list" for example). You should use the latest release version: 0.2.1.

Regards,
Ruben

from dettect.

sri-telstra avatar sri-telstra commented on July 23, 2024

Thank you Ruben, it appears the attackcti package version is the latest, however, the install has probably not gone thru since there is a segmentation fault.

Let me get to the root of this issue and get back reg the status of command in discussion.

Cheers.

from dettect.

rubinatorz avatar rubinatorz commented on July 23, 2024

Hi @sri-telstra

Did you succeed in getting around this error? Can we close the issue?

Regards,
Ruben

from dettect.

sri-telstra avatar sri-telstra commented on July 23, 2024

Hi @sri-telstra

Did you succeed in getting around this error? Can we close the issue?

Regards,
Ruben

Apologies Gents, The error continues to persist. I haven't yet managed to root-out the problem. Clearing the cache also doesn't resolve it. The only part that I'm held up on is the attack-all map being generated, others work fine. You may close the issue for now. Will try and resolve it in the down time.

from dettect.

marcusbakker avatar marcusbakker commented on July 23, 2024

@sri-telstra may be interesting for you. DeTT&CT is now available as Docker image: https://github.com/rabobank-cdc/DeTTECT/wiki/Installation-and-requirements#docker

from dettect.

sri-telstra avatar sri-telstra commented on July 23, 2024

Thank you Marcus, this is indeed interesting. Will try it out. Cheers.

from dettect.

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.