BFCVEs Partial API
Irena Bojanova, Inventor/Creator, PI & Lead, NIST Bugs Framework (BF), 2014 – ~~~
The BFCVEs Partial API generates datasets of partial BFCVE Specifications based on the NVD CVE-to-CWE and CWE2BF mappings.
Partial BFCVE Specifications → Key required:
https://samate.nist.gov/services/BF/BFCVEPre.xml?key=YOUR_KEY
https://samate.nist.gov/services/BF/BFCVEPre.json?key=YOUR_KEYQueried by CVE ID, CWE ID, CVSS; or BF Class taxon values: Class Tyoe, Class, Operation, Cause, and Conseqeunce– e.g., :
https://samate.nist.gov/services/BF/BFCVEPre.xml?class=MUS&key=YOUR_KEY
https://samate.nist.gov/services/BF/BFCVEPre.json?class=MUS&key=YOUR_KEYC#
HttpClient client = new HttpClient() { BaseAddress = new Uri("https://samate.nist.gov/services/BF") }; //replace YOUR_USER_NAME and YOUR_KEY client.DefaultRequestHeaders.Add("user", YOUR_USER_NAME); client.DefaultRequestHeaders.Add("key", YOUR_KEY); //result in XML var responseXML = await client.GetAsync("BFCVEPre.xml/api"); responseXML.EnsureSuccessStatusCode(); var resultXML = await responseXML.Content.ReadAsStringAsync(); //result in JSON var responseJSON = await client.GetAsync("BFCVEPre.json/api"); responseJSON.EnsureSuccessStatusCode(); var resulJSON = await responseJSON.Content.ReadAsStringAsync();
Python
//to be added//
BF CITATION: