Skip to content

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

2 watching

Forks

Latest commit

 

History

31 Commits

Folders and files

Repository files navigation

LoonSecurity

Loon Cybersecurity or LoonSec is a set of tools to help Application Security and Vulnerability Management engineers quickly solve complex threat detections and provide up to the minute industry analytics.

One area that many scanners and detections fail to lack is having up to date CVE information from NVD or MITRE. The data is also disparte as vendors such as Microsoft intentionally fail to release correct data and defeer to their own systems. Further other 3rd party services contain exposure, exploit, and other data that is helpful in determining your personal or organizational risk.

Features

  • Extract and augument NVD Vulnerabilities from String Objects
  • Extract and augument NVD Vulnerabilities from JSON/Dictionaries
  • Extract and augument NVD Vulnerabilities from other services SDKs.
  • Gather Latest NVD CVE Vulnerability infromation from NVD, LoonSec (pending), or other supported 3rd party Vulnerability Providers
  • Given an NVD CVE ID gather information from 3rd parties about exposure, exploitability, and measurements against.
  • Optimized to work with the NVD API and stability and capacity issues that may present themselves in their API.

Use Cases

NVDValidator

Set of services used to extract vulnerability information from Dictionaries and String Objects.

NVDApi

Set of services used to interact with the NVD API either with a token or not. A token GREATLY improves performance request from the below link

https://nvd.nist.gov/developers/request-an-api-key

Setup

from LoonSec import NVDValidator
s = //Crowdstrike Vulnerability Dict
feather = NVDValidator(nvd_api_key="YourKey")
vulns = feather.find_vuln_ids(s)
print(vulns)

Response:

{
 "key_vulns": ["CVE-2021-11111"],
 "found_vulns": ["CVE-2021-11111", "CVE-2022-99999"],
 "cve_details": {
   "CVE-2021-11111": {"nvd_details": {}, "cve_meta":{}},
   "CVE-2022-99999": {"nvd_details": {}, "cve_meta":{}}
 }
}

Embed NVD Data

from LoonSec import NVDValidator
some_item = {
    "cve_id": "CVE-2024-31497"
}
feather = NVDValidator(nvd_api_key="YourKey")
feather.embed_details(some_item)
print(some_item)

Response:

{
    "cve_id": "CVE-2024-31497",
    "cve_meta": {"nvd_details": {}, "cve_meta":{}}
}

Add NVD Vulnerability to 3rd party scanner result

Query NVD for a Record

from LoonSec import NVDApi
cve_id = "CVE-2022-99999"
feather = NVDApi(nvd_api_key="YourKey")
vuln = feather.querry_cve_id(cve_id)
print(vulns)

Response:

{
  "CVE-2022-99999": {
    "nvd_details": {},
    "cve_meta": {
      "cve_id": "",
      "section": "cve-meta",
      "cvss_severity": "",
      "cvss_severity_source": "",
      "cvss_severity_dtg": null,
      "impact_md5": "",
      "impact_dtg": null,
      "impact_user_interaction_required": null,
      "impact_known_exploit_exists": null,
      "impact_known_exploit_exists_dtg": null,
      "impact_known_exploit_resolution_dtg": null,
      "configurations_md5": "",
      "configurations_dtg": null,
      "configuration_keys": [],
      "nvd_status": "",
      "nvd_status_dtg": null,
      "cisa_due_date": null
    }
  }
}

Feed a large set of CVE's

Documentation

Support LoonSecurity

For the API services Open Collective will be the target platform for funding the API services and further development.

Any issues respond in the issues section of this repository.

Security

Please report any security concerns with this package using the open source TideLift platform https://tidelift.com/docs/security

License

Distributed under the terms of the MIT license, This Repository is free and open source software.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages