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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7211a52f5c79ce29fbcb5a626008a0ff7e6db8ec9d6ea9f00cda9949cd252a04
|
|
| MD5 |
0419420046eb06f33ee815845e9c01e1
|
|
| BLAKE2b-256 |
40a21cc7a7d40bcf116d59a4dc7678a02f0ff5dedb4b8da4c63db844a25968e7
|
Provenance
The following attestation bundles were made for vulntrain-0.1.0.tar.gz:
Publisher:
release.yml on vulnerability-lookup/VulnTrain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vulntrain-0.1.0.tar.gz -
Subject digest:
7211a52f5c79ce29fbcb5a626008a0ff7e6db8ec9d6ea9f00cda9949cd252a04 - Sigstore transparency entry: 172480927
- Sigstore integration time:
-
Permalink:
vulnerability-lookup/VulnTrain@bb53ba1967633ba246a9242454a5871f2ab1c700 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/vulnerability-lookup
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@bb53ba1967633ba246a9242454a5871f2ab1c700 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa6b1e829bdd144c0a73a37a04143f31a75a879ff25eee96e59a9eb8785af2de
|
|
| MD5 |
036c8e5f52f90e12ce373baaaad70441
|
|
| BLAKE2b-256 |
33c56dc66e8af040562d11f493a3b5a4e71c7ff48f1a1cb36eb3385bd590cf12
|
Provenance
The following attestation bundles were made for vulntrain-0.1.0-py3-none-any.whl:
Publisher:
release.yml on vulnerability-lookup/VulnTrain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vulntrain-0.1.0-py3-none-any.whl -
Subject digest:
aa6b1e829bdd144c0a73a37a04143f31a75a879ff25eee96e59a9eb8785af2de - Sigstore transparency entry: 172480929
- Sigstore integration time:
-
Permalink:
vulnerability-lookup/VulnTrain@bb53ba1967633ba246a9242454a5871f2ab1c700 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/vulnerability-lookup
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@bb53ba1967633ba246a9242454a5871f2ab1c700 -
Trigger Event:
release
-
Statement type: