BF Graphs API
Irena Bojanova, Inventor/Creator, PI & Lead, NIST Bugs Framework (BF), 2014 – ~~~

The BF Graphs API generates and BF Vulnerability Specifications in graphical formats.

  • BF Vulnerability Specification Graphs → Key required:
    https://samate.nist.gov/services/BF/BFVulnerability/ppt?key=<code>YOUR_KEY</code>

  • Programatically → Key required:

    C# - simplified

    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);
    
    //replace YOUR_FILES_NAMES
    string[] fileNames = YOUR_FILES_NAMES;
    
    var fileContent = new MultipartFormDataContent();
    foreach (var fileName in fileNames)
        fileContent.Add(new StreamContent(File.OpenRead(fileName)), "files", Path.GetFileName(fileName));
    
    var response = await BFClient.SendRequest("BFVulnerability/ppt/api", HttpMethod.Post, fileContent);
    response.EnsureSuccessStatusCode();
    var zipData = await response.Content.ReadAsStreamAsync();
    
    //replace YOUR_FOLDER
    zipData.CopyTo(File.Create(Path.Combine(YOUR_FOLDER, "bfv.zip")));
    

    Python

    //to be added//


BF CITATION:
Bojanova I (2024) Bugs Framework (BF): Formalizing Cybersecurity Weaknesses and Vulnerabilities. (National Institute of Standards and Technology, Gaithersburg, MD), NIST Special Publication (SP), NIST SP 800-231. https://doi.org/10.6028/NIST.SP.800-231