WORK IN PROGRESS - HERE BE DRAGONS
This project is under active development. Features, APIs, and data formats may change without notice. Use at your own risk in production environments.
The Boann OCSF Security Data Platform provides tools and converters for processing security findings into the OCSF (Open Cybersecurity Schema Framework) format. This platform serves as a foundation for ingesting, converting, and enriching security data from various sources.
- SARIF to OCSF Conversion - Convert security scan results to OCSF format
- Enrichment System - Extensible plugin architecture for metadata augmentation
- Finding UID Generation - Stable unique identifiers for deduplication
- Database Ingestion - PostgreSQL storage with append-only INSERT strategy
- File Monitoring - Automated processing from local filesystem or Google Cloud Storage (GCS)
# Convert SARIF to OCSF
python scripts/sarif_to_ocsf.py input.sarif output.ocsf.json
# Ingest into PostgreSQL
python scripts/ingest_raw_ocsf_findings.py --input-file findings.ocsf.json
# Monitor local directory for automatic processing
python scripts/ocsf_monitor.py \
--source-folder /path/to/files/ \
--processed-folder /path/processed/ \
--failed-folder /path/failed/
# Monitor GCS bucket for automatic processing (backend auto-detected from gs:// URIs)
python scripts/ocsf_monitor.py \
--source-folder gs://my-bucket/input/ \
--processed-folder gs://my-bucket/processed/ \
--failed-folder gs://my-bucket/failed/
# Enable optional OCSF schema validation
python scripts/ocsf_monitor.py \
--source-folder /path/to/files/ \
--processed-folder /path/processed/ \
--failed-folder /path/failed/ \
--validator /path/to/validate-ocsf-file \
--schema-file schemas/ocsf_schema.jsonSee scripts/README.md for detailed usage and examples.
- Scripts Documentation - Detailed usage for all tools and scripts
- SARIF to OCSF Conversion - Field mappings and conversion details
- Contributing Guide - How to extend and contribute
scripts/
├── converters/ # Format converters (SARIF → OCSF)
├── enrichments/ # Enrichment plugins (UID generation, etc.)
├── helpers/ # Utility modules (GCS, logging)
├── sarif_to_ocsf.py # Conversion CLI
├── ingest_raw_ocsf_findings.py # Database ingestion
└── ocsf_monitor.py # File monitoring (local/GCS)
docs/ # Additional documentation
- Python 3.12+
- PostgreSQL (for ingestion features)
- See individual scripts for specific dependencies
This project is licensed under the MIT License - see the LICENSE file for details.
This is an initial release with the following known limitations:
- Not all SARIF fields are converted
- API and data formats subject to change
- Downstream enrichment required for organization-specific data
For issues and questions, please use the GitHub issue tracker.