mitre-attack / mitre-attack/attack-workbench-frontend
Bug when integrating with ATT&CK Website
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 438
- Forks
- 79
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 3
Description
So, this is a weird one. When I try to create my own technique and link it to the ICS domain and connect it to the initial access tactic, I receive the following error,
File "update-attack.py", line 229, in
ptr"run_module"
File "/home/yash/Downloads/attack-website-master/modules/techniques/init.py", line 32, in run_module
return (techniques.generate_techniques(), techniques_config.module_name)
File "/home/yash/Downloads/attack-website-master/modules/techniques/techniques.py", line 55, in generate_techniques
check_if_generated = generate_domain_markdown(
File "/home/yash/Downloads/attack-website-master/modules/techniques/techniques.py", line 101, in generate_domain_markdown
generate_technique_md(technique, domain, side_nav_data, tactics[domain], notes)
File "/home/yash/Downloads/attack-website-master/modules/techniques/techniques.py", line 129, in generate_technique_md
technique_dict = generate_data_for_md(technique_dict, technique, tactic_list)
File "/home/yash/Downloads/attack-website-master/modules/techniques/techniques.py", line 247, in generate_data_for_md
f"Technique: {technique_dict['name']} is in Tactic: {phase_name}, but that is an unknown Tactic for domain: {technique['domain']}!"
File "/home/yash/.local/lib/python3.8/site-packages/stix2/base.py", line 251, in getitem
return self._inner[key]
KeyError: 'domain'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with modules/techniques/techniques.py, especially generate_data_for_md around the reported KeyError, and trace how update-attack.py invokes it. Reproduce the custom technique using the ICS domain and initial access tactic, then determine why the generated technique lacks the expected domain data. Done means generation completes without the KeyError for this case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100