This is a Python implementation of the OCSF models. The models are used to represent the data of the OCSF Schema defined in https://schema.ocsf.io/.
Project description
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
Soon ...
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.
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.
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
Built Distribution
File details
Details for the file py_ocsf_models-0.2.0.tar.gz
.
File metadata
- Download URL: py_ocsf_models-0.2.0.tar.gz
- Upload date:
- Size: 29.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/24.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e12648d05329e6776a0e6b1ffea87a3eb60aa7d8cb2c4afd69e5724f443ce03 |
|
MD5 | f3cb9b30c94e62958221f0444b3005e3 |
|
BLAKE2b-256 | 4647e085aaec6e960e20ad0fc4f615af5476dc1d4da230d5e96d092871aea14a |
File details
Details for the file py_ocsf_models-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: py_ocsf_models-0.2.0-py3-none-any.whl
- Upload date:
- Size: 43.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/24.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac75fd21077694b343ebaad3479194db113c274879b114277560ff287d5cd7b5 |
|
MD5 | 4ef66127ff5a17cdb716ff626489842d |
|
BLAKE2b-256 | 6beba1881581a84a75cb7fe6815fe5fc846fd5d5ed82277a86ccd1a793e32b2d |