Skip to main content

py-ocsf-models

The py-ocsf-models package offers a Python implementation of the Open Cybersecurity Schema Framework (OCSF) models, facilitating the manipulation and understanding of cybersecurity data within Python applications. This package provides a rich set of models covering various aspects of cybersecurity events, findings, objects, and profiles as defined by the OCSF Schema, enabling developers to work with structured cybersecurity data efficiently.

In Prowler, we leverage the py-ocsf-models package to generate JSON formatted OCSF outputs, specifically focusing on Detection Findings. This integration facilitates the standardization and sharing of cybersecurity findings in a structured and widely-accepted format, enhancing the interoperability between different security tools and platforms.

Features

  • Comprehensive OCSF Schema Implementation: Includes models for events, findings, objects, and profiles, covering the entire OCSF Schema.
  • Easy Data Manipulation: Easily create, modify, and interact with cybersecurity data structures.
  • Serialization and Deserialization Support: Convert OCSF model instances to and from JSON for easy storage and transmission.
  • Extensible Design: Extend and customize models to fit specific requirements while staying compliant with the OCSF schema.

OCSF Coverage

  • Detection Finding
  • Compliance Finding
  • Application Security Posture Finding

Installation

Install py-ocsf-models using pip:

pip install py-ocsf-models

Import the package in your Python application:

import py_ocsf_models

Usage Examples

You can find ready-to-run examples demonstrating how to generate events using the OCSF schema in the examples folder.

How to Release

To release a new version of py-ocsf-models:

  1. Create a PR with version update: Update the version number in pyproject.toml and create a pull request with the changes.

  2. Create a GitHub release: Once the PR is merged into the master branch, create a new release in GitHub from the master branch. This will automatically trigger the pypi-release.yml workflow to publish the package to PyPI.

Contributing

Contributions are welcome! Whether you're fixing a bug, adding new features, or improving the documentation, please feel free to make a pull request or open an issue.

License

This project is licensed under the Apache-2.0 License - see the LICENSE file for details.

Acknowledgments

This package is built to support and encourage the adoption of the Open Cybersecurity Schema Framework (OCSF) and facilitate the handling of cybersecurity data in Python applications.

Support

For support, questions, or feedback, please open an issue on the GitHub repository.

Download files

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

Source Distribution

py_ocsf_models-0.10.0.tar.gz (36.5 kB view details)

Uploaded Source

Built Distribution

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

py_ocsf_models-0.10.0-py3-none-any.whl (64.3 kB view details)

Uploaded Python 3

File details

Details for the file py_ocsf_models-0.10.0.tar.gz.

File metadata

  • Download URL: py_ocsf_models-0.10.0.tar.gz
  • Upload date:
  • Size: 36.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for py_ocsf_models-0.10.0.tar.gz
Algorithm Hash digest
SHA256 29abaa5a3d4ebba0e2a21757508a4848fa5e1d57da233af57e580f97f0223c59
MD5 b547e35fb5ea68268f967806ed53f920
BLAKE2b-256 70d6f0787cbe953e3cf6ef4430f3cc7d66cbbaabe4b20cb82cc27cc2d21e622a

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_ocsf_models-0.10.0.tar.gz:

Publisher: pypi-release.yml on prowler-cloud/py-ocsf-models

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

File details

Details for the file py_ocsf_models-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: py_ocsf_models-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 64.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for py_ocsf_models-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9d1e245b1c9fba1d2cb8c042253ef1b83a2dbfec30ed69975bbce599b4510bb
MD5 6760b0c72ac3b82ded99dd10e925e7e5
BLAKE2b-256 7556eca45ec87a02f930cc7eaa7cb36660f69fb00c3d77bb4a84bb92d6c94c25

See more details on using hashes here.

Provenance

The following attestation bundles were made for py_ocsf_models-0.10.0-py3-none-any.whl:

Publisher: pypi-release.yml on prowler-cloud/py-ocsf-models

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

Release history Release notifications | RSS feed

This release

0.10.0 This release

2 files

0.9.0

2 files

0.8.1

2 files

0.8.0

2 files

0.7.1

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

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