Skip to main content

ODM models for CVE, CWE, and CPE management

Project description

CIRM ODMs

CIRM ODMs is a Python package developed by CyberSecurity S.r.l. to centralize and validate data models used in the CIRM project — a framework for managing cyber risk, with a specific focus on software vulnerability management.

This package contains all the Object Document Mappers (ODMs) built with Pydantic and Beanie, designed to work with MongoDB and ensure reliable, strongly-typed data validation.

The goal is to support internal use within the CIRM ecosystem, while also making the models publicly available for reuse in other CyberSecurity-related projects.


Project Context

The CIRM (Continuous Improvement Risk Management) platform automates the handling of software vulnerabilities by integrating:

  • Official data sources such as the National Vulnerability Database (NVD), which provides CVE records, CWE categorizations, and CPE identifiers.
  • AI models for automatically predicting important parameters, such as:
    • CVSS scores (vulnerability severity),
    • CWE classes (weakness types),
    • Affected CPEs (platforms or software).

The extracted and predicted data is stored in a MongoDB database and validated through the Pydantic/Beanie models provided in this package.


Package Features

  • ODMs for CVE, CWE, and CPE entities
  • MongoDB-compatible schemas
  • Automatic data validation
  • Modern packaging with pyproject.toml and Flit

Technology Stack

  • Python
  • Pydantic / Beanie
  • Flit for packaging and publishing
  • Central configuration via pyproject.toml

Project Structure

.
├── .github/workflows/         # GitHub Actions for build & publish
├── .devcontainer/             # VSCode DevContainer setup
│   ├── Dockerfile
│   └── devcontainer.json
├── .vscode/settings.json      # Project-specific VSCode settings
├── src/                       # Source code of the package
├── tests/                     # Unit tests for ODMs
├── pyproject.toml             # Project metadata and config
└── README.md                  # Project documentation

Installation

Once published to PyPI:

pip install cirm-odm

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

cirm_odm-0.1.8.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

cirm_odm-0.1.8-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file cirm_odm-0.1.8.tar.gz.

File metadata

  • Download URL: cirm_odm-0.1.8.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for cirm_odm-0.1.8.tar.gz
Algorithm Hash digest
SHA256 1ac2fee8848a281bd28aea9098e2bc0ba18111a39e1b8d46a62f195ee31efc0e
MD5 2149ffcc35f8fc3ff11d8a1cb43c9e4c
BLAKE2b-256 3597bf83ea0ce95d245ad24b545107a3b8ae20e54ef17ad3e2f07d334b55d7c0

See more details on using hashes here.

File details

Details for the file cirm_odm-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: cirm_odm-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for cirm_odm-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 165ab0517aedb2eb04bf4116eb1658c050f5f97a4cdde8b21b10969d8ef3a317
MD5 c5360db00972823fbb365952ce8640de
BLAKE2b-256 b8c8cc4f85883a475452fb5e3f56818e8d0a191059b5f3d24c60c3c6a9f0ed96

See more details on using hashes here.

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