Comments (5)
hi @RedneckHutch,
Can you try to clear the cache directory and try it again?
And if it still fails, can you please check the content of data/data_source_platforms.json
and check if you see the "ATT&CK Enterprise" entry and within that the "Windows" entry?
from dettect.
root@1100301d1075:/opt/DeTTECT# rm -r ~/.cache/*
root@1100301d1075:/opt/DeTTECT# python3 ./dettect.py ds -fd sample-data/data-sources-endpoints.yaml -l --health
Traceback (most recent call last):
File "/opt/DeTTECT/./dettect.py", line 424, in <module>
_menu(_init_menu())
File "/opt/DeTTECT/./dettect.py", line 304, in _menu
generate_data_sources_layer(file_ds, args.output_filename, args.layer_name, layer_settings)
File "/opt/DeTTECT/data_source_mapping.py", line 199, in generate_data_sources_layer
my_techniques = _map_and_colorize_techniques(my_data_sources, systems, exceptions, domain, layer_settings)
File "/opt/DeTTECT/data_source_mapping.py", line 73, in _map_and_colorize_techniques
applicable_data_sources = get_applicable_data_sources_platform(system['platform'], domain)
File "/opt/DeTTECT/generic.py", line 642, in get_applicable_data_sources_platform
applicable_data_sources.update(data_sources[p])
KeyError: 'Windows'
It doesn't look like windows in included.
{
"ATT&CK-Enterprise": {},
"ATT&CK-ICS": {
"Field Controller/RTU/PLC/IED": [
"Application Log Content",
"Asset Inventory",
"Command Execution",
"Device Alarm",
"File Access",
"File Deletion",
"File Metadata",
"File Modification",
"Firmware Modification",
"Logon Session Creation",
"Logon Session Metadata",
"Network Traffic Content",
"Network Traffic Flow",
"OS API Execution",
"Process Creation",
"Process History/Live Data",
"Process Termination",
"Process/Event Alarm",
"Script Execution",
"Service Creation",
"Software",
"User Account Authentication",
"Windows Registry Key Modification"
],
"Safety Instrumented System/Protection Relay": [
"Application Log Content",
"Asset Inventory",
"Command Execution",
"Device Alarm",
"File Access",
"File Deletion",
"File Metadata",
from dettect.
Added Windows.
{
"ATT&CK-Enterprise": {
"Windows": []
},
"ATT&CK-ICS": {
"Field Controller/RTU/PLC/IED": [
"Application Log Content",
"Asset Inventory",
Now get the following
root@1100301d1075:/opt/DeTTECT# python3 ./dettect.py ds -fd sample-data/data-sources-endpoints.yaml -l --health
Traceback (most recent call last):
File "/opt/DeTTECT/./dettect.py", line 424, in <module>
_menu(_init_menu())
File "/opt/DeTTECT/./dettect.py", line 304, in _menu
generate_data_sources_layer(file_ds, args.output_filename, args.layer_name, layer_settings)
File "/opt/DeTTECT/data_source_mapping.py", line 199, in generate_data_sources_layer
my_techniques = _map_and_colorize_techniques(my_data_sources, systems, exceptions, domain, layer_settings)
File "/opt/DeTTECT/data_source_mapping.py", line 73, in _map_and_colorize_techniques
applicable_data_sources = get_applicable_data_sources_platform(system['platform'], domain)
File "/opt/DeTTECT/generic.py", line 642, in get_applicable_data_sources_platform
applicable_data_sources.update(data_sources[p])
KeyError: 'Linux'
I am going to pull down a new data/data_source_platforms.json
file.
from dettect.
Update:
Replacing data/data_source_platforms.json
with an updated copy appears to have resolved the issue.
root@1100301d1075:/opt/DeTTECT# python3 ./dettect.py ds -fd sample-data/data-sources-endpoints.yaml -l --health
File written: output/data_sources_data-sources-sample.json
from dettect.
Great! The data_source_platforms.json is auto generated by pipelines and I see that for a short time this file was not filled for ATT&CK-Enterprise, maybe beause it couldn't fetch the data from MITRE at that moment of time. Good action to resolve the action by getting the latest version from the repo.
from dettect.
Related Issues (20)
- Feature Request: Export what's missing from Visibility or Detection HOT 3
- Old versions of DeTTECT HOT 5
- unable to open jupyter notebook HOT 5
- error in connecting to MITRE's CTI TAXII server when convert yaml to json HOT 1
- Cannot connect to MITRE's CTI TAXII server HOT 1
- Unable to connect to Mitre Taxii Server HOT 2
- Feature request: add support for ATT&CK Version 14 HOT 2
- Some confusion about the "group" option HOT 1
- Duplicate value for applicable_to HOT 1
- arm64 docker image HOT 2
- Missing Data Sources By Technique
- Seeing some strangeness HOT 2
- Cannot connect to MITRE's CTI TAXII server HOT 2
- Current built mechnism broken - image likely outdated
- Latest techniques not appearing in editor HOT 1
- Mac zsh HOT 5
- Question regarding detection rules/scoring HOT 1
- Question: How to handle non-mappable types of event? HOT 2
- Windows event log is not available while adding data source option. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dettect.