Comments (6)
Thanks! Will fix the cpe matching.
from bron.
How can I change the code?
from bron.
We are still working on a fix. We need to make sure the the cpe_match
take into account the possiblity of mutiple nested cpes
from bron.
Because of my data needs, I need to get all the capec:Consequences:Consequence:Scope. but the code will only extract the last occurrence of the Scope in the loop.
I tried to use storing the Scope in a list form, but it would cause problems with the subsequent data formatting, and finally i modified the code to use the clunky method for data extraction.
ds = el.findall("./capec-3:Consequences/capec-3:Consequence", ns)
for d in ds:
info = {}
values["Consequences"].append(info)
info['Scope'] = ''
for t in d:
key = _remove_namespace(t.tag, ns["capec-3"])
if key == 'Scope':
info['Scope'] = info['Scope'] + t.text + ','
else:
info[key] = t.text
from bron.
I have pushed an update that hopefully fixes the CPE parsing
from bron.
thank you
from bron.
Related Issues (20)
- Steps in order to populate a local arangodb HOT 1
- BRON\example_data\example_input_data\starting_point_tactic.csv Why does the file have no data? HOT 1
- FileNotFoundError: [Errno 2] No such file or directory: 'example_data/example_input_data/tactic_id_name_map.json'
- Getting capec_id instead of bron_id in the final Graph
- ModuleNotFoundError: No module named 'meta_analysis' HOT 2
- Is BRON contains mobile tactics on MITRE ATT&CK ? HOT 2
- Duplicates in cve collection? HOT 1
- Cannot download threat info through neither docker's "bootstrap" nor "build_bron.py" manually. HOT 6
- About the error when parsing CAPEC and CWE connection. The error message is the same as before, indicating that the specified column cannot be found in the DataFrame. HOT 3
- TechniqueCapec.json is empty HOT 3
- In the CweCve edge collection file, all '_from' are linked to 'cwe_02029' locally
- Bootstrap docker cannot populate DB HOT 1
- Lot's of incorrect linkings from CWE to CVE HOT 6
- D3fend Mitigation JSON Schema Error HOT 3
- Local deployment not working as the public version HOT 7
- Check the timestamp of threat data sources
- Error start bootstrap container for BRON HOT 1
- Add BRON paper reference to README
- Populate the webpage
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 bron.