Skip to main content

Generate datasets amd models based on vulnerabilities descriptions from Vulnerability-Lookup.

Project description

VulnTrain

Generate datasets amd models based on vulnerabilities descriptions from Vulnerability-Lookup.

Uses data from the vulnerability-lookup:meta container such as vulnrichment and FKIE.

Usage

Generate datasets

Authenticate to HuggingFace:

huggingface-cli login

Creation of datasets:

$ pipx install VulnTrain

$ vulntrain-create-dataset 
DatasetDict({
    train: Dataset({
        features: ['id', 'title', 'description'],
        num_rows: 4
    })
    test: Dataset({
        features: ['id', 'title', 'description'],
        num_rows: 1
    })
})
Creating parquet from Arrow format: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1317.72ba/s]
Uploading the dataset shards: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00,  1.16it/s]
Creating parquet from Arrow format: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 2233.39ba/s]
Uploading the dataset shards: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00,  1.39it/s]
README.md: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 428/428 [00:00<00:00, 1.70MB/s]

Train:

$ vulntrain-train-dataset 

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vulntrain-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vulntrain-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file vulntrain-0.1.0.tar.gz.

File metadata

  • Download URL: vulntrain-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for vulntrain-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7211a52f5c79ce29fbcb5a626008a0ff7e6db8ec9d6ea9f00cda9949cd252a04
MD5 0419420046eb06f33ee815845e9c01e1
BLAKE2b-256 40a21cc7a7d40bcf116d59a4dc7678a02f0ff5dedb4b8da4c63db844a25968e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for vulntrain-0.1.0.tar.gz:

Publisher: release.yml on vulnerability-lookup/VulnTrain

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vulntrain-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: vulntrain-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for vulntrain-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa6b1e829bdd144c0a73a37a04143f31a75a879ff25eee96e59a9eb8785af2de
MD5 036c8e5f52f90e12ce373baaaad70441
BLAKE2b-256 33c56dc66e8af040562d11f493a3b5a4e71c7ff48f1a1cb36eb3385bd590cf12

See more details on using hashes here.

Provenance

The following attestation bundles were made for vulntrain-0.1.0-py3-none-any.whl:

Publisher: release.yml on vulnerability-lookup/VulnTrain

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page