Skip to content

VulnTrain 3.5.0

Latest

Choose a tag to compare

@cedricbonhomme cedricbonhomme released this 04 Nov 16:10
· 12 commits to main since this release
Immutable release. Only release title and notes can be modified.
v3.5.0
ffe89d9

Release 3.5.0: CVSS v3/v4 scores in Vulnerability-FSTEC, clean cve_id, leakage check on CVE ids, warmup for large models

CVSS scores in CIRCL/Vulnerability-FSTEC, reported and fixed by Christian
Bucher. BDU stores its v3 and v4 vectors without the CVSS:3.x/ /
CVSS:4.0/ prefix, the parser rejected them silently, and every published
row was labelled from CVSS 2.0. Reading them changes 21,457 of the 82,960
labels of the previous revision (25.9%).
The dataset is rebuilt as revision a104085 (98,523 rows, group-aware
80/10/10 split), and the Russian model retrained on it
(CIRCL/vulnerability-severity-classification-russian-ruRoberta-large
revision 5268240) reaches 69.95% test accuracy, macro F1 0.585. This is not
comparable with the 74.17% of the previous model, as both the labels and the
split changed.

  • FSTEC v3 and v4 vectors are read: the missing prefix is added and a
    vector that still cannot be read is reported.
  • FSTEC v4.0 as CVSS-B, through cvss4_score() like the other sources.
  • FSTEC cve_id holds the first CVE id of the BDU field of other
    identifiers (zero-width spaces and typographic dashes removed); the field
    itself is kept in the new other_identifiers column.
  • No-impact FSTEC vectors (score 0.0, a BDU placeholder) are treated as
    missing instead of giving a Low label.
  • Leakage check: tools/dataset/check_split_leakage.py also reads the
    cve_id and cve_ids columns, as the group split does, so it checks FSTEC,
    CNVD and CERT-FR rows for the same CVE.
  • Training of large models: vulntrain-train-severity-classification
    now trains models whose name contains large (ai-forever/ruRoberta-large)
    at a learning rate of 1e-5 with a warmup over the first 10% of the steps.
    The first retraining of the Russian model on the corrected FSTEC dataset
    (revision a104085) collapsed at 3e-5 without warmup: it predicted a single
    class for four of its five epochs and only started to learn in the last
    one, as the learning rate decayed, reaching 65.4% test accuracy. That model
    (00f08f5) should not be used. roberta-base and DistilBERT keep their
    settings.
  • Python 3.14 and 3.15 are supported (requires-python = ">=3.12,<3.16"),
    and dependencies are updated.