-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lot's of incorrect linkings from CWE to CVE #44
Comments
It should be the cve data source version, you can download the latest cve data package, integrate its associated cwe, and update the data of cwecve. |
I actually tried all of these on the public version of BRON available at http://bron.alfa.csail.mit.edu:8529/. When I downloaded BRON I had some other issue(#41) that's why I used the public version |
I think you can look at the specific code in the parse_cve_file function in the file parse_cve.py within your local, docker to see if there is a problem. |
We have tried to address this issue with the |
Is the public version of BRON updated with v4? |
Yes, it should be |
I wanted to get the list of all the CVE's linked for a particular CWE, so I referred to the Linking Threat Tactics paper itself for a CWE and took CWE-787 as an example and queried it( In the paper it was mentioned that CWE-787 has a total of 1150 CVE's linked to it approximately)
![image](https://private-user-images.githubusercontent.com/47687778/263036732-7e8693b7-2760-4040-842a-cfee0edc9af0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzODQzNTQsIm5iZiI6MTczOTM4NDA1NCwicGF0aCI6Ii80NzY4Nzc3OC8yNjMwMzY3MzItN2U4NjkzYjctMjc2MC00MDQwLTg0MmEtY2ZlZTBlZGM5YWYwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE4MTQxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTExM2FmNTQxZDI1MGI1NTJjNTQ4YjhkNzQyZjc1YjNlYTc0ZjFhMDY2NjExZjEyZDk2Y2Y4NDA4YTEzYmZmYmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.dLaIBVaYQnOuWPnWQ1LXTnkY6xd9rTopJoaMkpuvGV4)
I knew that I would be getting more CVE's linked to it because of the addition of new vulnerability for that particular weakness but there were actually 132999 CVE's linked to CWE-787. So when I randomly checked if the following CVE's where linked to CWE-787( for that I actually took the respective id's of the CVE's and googled them and checked with the NVD website) , in the list of 132999 the first 1000 - 1500 where ALMOST linked to CWE-787 but after that only 2/10 or something like that were linked to CWE-787, and after that they were linked to some other CWE's
So I queried BRON as follows:
![image](https://private-user-images.githubusercontent.com/47687778/263036988-51962dc8-ac05-4d3c-95c0-de2e4a6fe000.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzODQzNTQsIm5iZiI6MTczOTM4NDA1NCwicGF0aCI6Ii80NzY4Nzc3OC8yNjMwMzY5ODgtNTE5NjJkYzgtYWMwNS00ZDNjLTk1YzAtZGUyZTRhNmZlMDAwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE4MTQxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYxZDhjMzI0ZTA1MDU1MTQwNTkyMTYwZWI1N2YzYzU3NDk0MDFhMmJiMjEzNzBjOGExNjgzNDI0YzgzYzBkYmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.dwNPlwc_5_6fZxQFTsxxoWlXcB-ZvOfODuDsMQGMCNA)
![image](https://private-user-images.githubusercontent.com/47687778/263037048-738f7a5b-04e8-454f-bc2a-8222400721e2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzODQzNTQsIm5iZiI6MTczOTM4NDA1NCwicGF0aCI6Ii80NzY4Nzc3OC8yNjMwMzcwNDgtNzM4ZjdhNWItMDRlOC00NTRmLWJjMmEtODIyMjQwMDcyMWUyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE4MTQxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY0MzY0ODBhZDk1ZjI2NDA0ZTkyMTQ1YjllNzEyZWRkYTQ4MDk1NDMwNTYzMjExOTUyYWY0M2ZkOGNlOWQwMmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.72vnLD-B7V21mUcC8hFl9c4oZQ4nd3cofyJOG_iVaeE)
First got the CWE _id for CWE-787
Then used _id to get all the CVE's linked to it
![image](https://private-user-images.githubusercontent.com/47687778/263037332-c275742e-1f3e-49d2-b489-a49b37641b71.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzODQzNTQsIm5iZiI6MTczOTM4NDA1NCwicGF0aCI6Ii80NzY4Nzc3OC8yNjMwMzczMzItYzI3NTc0MmUtMWYzZS00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YzZkOTAzM2ZmMWIyNTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.BlblEDt_02kUkJpTS63MUvwWVbD50iEGgj2ZwXAJRKw)
and this was the result
(There were too many duplicates over here, so I filtered them by using return distinct v._to)
So when I randomly took the below CVE _id
![image](https://private-user-images.githubusercontent.com/47687778/263037697-a41b6424-b26b-466d-8815-64626514cc93.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzODQzNTQsIm5iZiI6MTczOTM4NDA1NCwicGF0aCI6Ii80NzY4Nzc3OC8yNjMwMzc2OTctYTQxYjY0MjQtYjI2Yi00NjZkLTg4MTUtNjQ2MjY1MTRjYzkzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE4MTQxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY4OWRiZTc0YWZjMGU5MmYzMWY5NjcxOTcyYjIxYzIyZWI2MWU5Nzc3YmYzMWIxMDU5NzBmYjU4OTcxMmQ4Y2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Hh2Kjj0x1l7T9A4h9XkFSVfkqatVb3gQiKuo_gRIA6A)
![image](https://private-user-images.githubusercontent.com/47687778/263037894-07a4a8b7-cc31-4bf2-95fa-7e92310519c6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzODQzNTQsIm5iZiI6MTczOTM4NDA1NCwicGF0aCI6Ii80NzY4Nzc3OC8yNjMwMzc4OTQtMDdhNGE4YjctY2MzMS00YmYyLTk1ZmEtN2U5MjMxMDUxOWM2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE4MTQxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM2NmJjYjk5Y2NhZWZkMzQyMmE0YTE5NmZiMWViMGM2OTBlYzhjYWQ4OTRhMjdiMjBiYzgxNDgwMjFkMzUyZmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ieNOKLImr4bnFxvRh9VdMEprzB6t9ofGdAegiinKEbM)
![image](https://private-user-images.githubusercontent.com/47687778/263038037-d4bc7bdc-9785-4930-b89b-389bf6caf8f8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzODQzNTQsIm5iZiI6MTczOTM4NDA1NCwicGF0aCI6Ii80NzY4Nzc3OC8yNjMwMzgwMzctZDRiYzdiZGMtOTc4NS00OTMwLWI4OWItMzg5YmY2Y2FmOGY4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDE4MTQxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk3YTcwMDhiZjRjYTRhNDQzMGNiNjNlMzdmODQzMjViZGQyYzkxNDY1YjVlMWM3Nzk1YzI2ZGE2ZjZjNjdlOWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.MJKU8FDLHcKOdTQAjXW672W7Ss1q8lVrzniV4nQ_YWU)
took the corresponding CVE number and googled it
So this particular one was linked with CWE-476
I even tried checking if CWE-476 and CWE-787 were linked together in the CweCwe collection, but unfortunately they were not.
So this is just an example for one particular CWE. I tried the above methods on 8-9 CWE's and all of them produced the same results
The text was updated successfully, but these errors were encountered: