Comments (5)
Hi @getkub,
This is an issue introduced by a recent update to the taxii2client library. Essentially they changed their API such that the default TAXII requests will try to fetch STIX 2.1 content using TAXII 2.1 from the TAXII server. Because our TAXII server uses the TAXII 2.0 spec (and stores STIX 2.0 content) this results in the 406 not acceptable error you're getting.
The correct resolution is to update your import:
from taxii2client.v20 import Collection
This issue is rather tricky for us because it depends on which version of the taxii2client repo users have installed -- only users with new installs get the error, and users who perform the above fix with the older taxii2client version may get errors.
See also #19.
from attack-scripts.
Hi @getkub,
This is an issue introduced by a recent update to the taxii2client library. Essentially they changed their API such that the default TAXII requests will try to fetch STIX 2.1 content using TAXII 2.1 from the TAXII server. Because our TAXII server uses the TAXII 2.0 spec (and stores STIX 2.0 content) this results in the 406 not acceptable error you're getting.
The correct resolution is to update your import:
from taxii2client.v20 import Collection
This issue is rather tricky for us because it depends on which version of the taxii2client repo users have installed -- only users with new installs get the error, and users who perform the above fix with the older taxii2client version may get errors.
See also #19.
Yeah, I tried that. the above logic of
from taxii2client.v20 import Collection
works ok for techniques_data_sources_vis.py
, But NOT for https://github.com/mitre-attack/attack-scripts/blob/master/scripts/technique_mappings_to_csv.py.
But thanks anyway, will downgrade and see
from attack-scripts.
Reopening so that we can investigate the fix for technique_mappings_to_csv.py.
from attack-scripts.
Hi @getkub,
I think the way the taxii2client import is used in technique_mappings_to_csv.py
is slightly different and requires more tweaking. In the case of that file, you can do one of two things:
-
Change line 18 to
collection = taxii2client.v20.Collection(collection_url)
without updating the import.
Let me know if that works for you.
from attack-scripts.
This has been resolved in the v1.5.2 release.
from attack-scripts.
Related Issues (20)
- Documentation of layers module in the root README
- Layer to excel converter
- Export layer to CSV
- Import layer from CSV
- URL format is wrong for sub-techniques in diff_stix HOT 1
- Remove pre-ATT&CK domain
- Remove detection training
- ATT&CK to Excel exporter HOT 1
- Layer files should use the v4.0 schema HOT 1
- Add ics-attack support HOT 1
- ATT&CK to Excel exporter chokes on early versions (1.0 to 4.0) HOT 1
- Machine-parseable diff HOT 2
- stix_diff throws an error on V1.0 HOT 2
- reference error when using attack-scripts as submodule HOT 1
- Data sources support in diff_stix HOT 1
- Track contributor changes in diff_stix HOT 1
- Add a table of contents to diff_stix's markdown output HOT 1
- Full Mitigations Data Dump HOT 1
- [Errno 61] Connection refused 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 attack-scripts.