Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A Common Weakness Enumeration (CWE) Node.js SDK compliant with MITRE / CAPEC

License

NotificationsYou must be signed in to change notification settings

lunasec-io/cwe-sdk-javascript

 
 

A Common Weakness Enumeration (CWE) Node.js SDK compliant with MITRE / CAPEC

npm versionlicensedownloadsbuildcodecovKnown VulnerabilitiesResponsible Disclosure PolicyOWASP CWE Toolkit

Install

yarn add cwe-sdk

Usage

Require the CweManager class and use its methods

const{ CweManager}=require('cwe-sdk')

Example

const{ CweManager}=require('cwe-sdk')constcweManager=newCweManager()constresult=cweManager.isChildOf({weaknessId:'117',parentId:'116'})console.log(result)// true

Build

This CWE SDK has a build process that prepares the JSON data by downloading the latest version of the CWE archive (e.g.https://cwe.mitre.org/data/xml/cwec_v4.1.xml.zip) and then crunches it to create the following data snapshots:

  1. A mirror JSON object, available at./raw/cwe-archive.json
  2. A JSON dictionary to easily access CWEs by their ID, available at./raw/cwe-dictionary.json
  3. A JSON array for the relationship hierarchy between CWEs, available at./raw/cwe-hierarchy.json

This work is made possible thanks to scripts in./build/

Contributing

Please consultCONTRIBUTING for guidelines on contributing to this project.

Author

cwe-sdk ©Liran Tal, Released under theApache-2.0 License.

About

A Common Weakness Enumeration (CWE) Node.js SDK compliant with MITRE / CAPEC

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript94.4%
  • JavaScript5.6%

[8]ページ先頭

©2009-2025 Movatter.jp