You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2026/01/26 13:47:54 UTC
(camel) branch main updated: CAMEL-22903 - Add OCSF (Open Cybersecurity Schema Framework) DataFormat component (#21062)
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 36ee8fabb2fe CAMEL-22903 - Add OCSF (Open Cybersecurity Schema Framework) DataFormat component (#21062)
36ee8fabb2fe is described below
commit 36ee8fabb2fe3d1454150c4aa1d544cdbe699e8d
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jan 26 14:47:47 2026 +0100
CAMEL-22903 - Add OCSF (Open Cybersecurity Schema Framework) DataFormat component (#21062)
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
bom/camel-bom/pom.xml | 5 +
catalog/camel-allcomponents/pom.xml | 5 +
.../apache/camel/catalog/dataformats.properties | 1 +
.../org/apache/camel/catalog/dataformats/ocsf.json | 30 +
.../org/apache/camel/catalog/models.properties | 1 +
.../org/apache/camel/catalog/models/marshal.json | 2 +-
.../org/apache/camel/catalog/models/ocsf.json | 27 +
.../org/apache/camel/catalog/models/unmarshal.json | 2 +-
.../apache/camel/catalog/schemas/camel-spring.xsd | 253 +++++---
.../apache/camel/catalog/schemas/camel-xml-io.xsd | 253 +++++---
components/camel-ocsf/pom.xml | 107 ++++
.../dataformat/ocsf/OcsfDataFormatConfigurer.java | 119 ++++
.../org/apache/camel/dataformat/ocsf/ocsf.json | 30 +
.../org/apache/camel/configurer/ocsf-dataformat | 2 +
.../org/apache/camel/dataformat.properties | 7 +
.../services/org/apache/camel/dataformat/ocsf | 2 +
.../camel-ocsf/src/main/docs/ocsf-dataformat.adoc | 314 ++++++++++
.../camel/dataformat/ocsf/OcsfConstants.java | 92 +++
.../camel/dataformat/ocsf/OcsfDataFormat.java | 456 ++++++++++++++
.../src/main/resources/schema/Account.json | 42 ++
.../src/main/resources/schema/AccountChange.json | 65 ++
.../src/main/resources/schema/Actor.json | 42 ++
.../src/main/resources/schema/Agent.json | 46 ++
.../src/main/resources/schema/Analytic.json | 58 ++
.../camel-ocsf/src/main/resources/schema/Api.json | 31 +
.../src/main/resources/schema/ApiActivity.json | 55 ++
.../src/main/resources/schema/Attack.json | 35 ++
.../src/main/resources/schema/AuthFactor.json | 50 ++
.../src/main/resources/schema/Authentication.json | 111 ++++
.../src/main/resources/schema/Authorization.json | 18 +
.../main/resources/schema/AuthorizeSession.json | 61 ++
.../src/main/resources/schema/Certificate.json | 59 ++
.../src/main/resources/schema/Cloud.json | 37 ++
.../src/main/resources/schema/Compliance.json | 98 +++
.../main/resources/schema/ComplianceFinding.json | 79 +++
.../src/main/resources/schema/Container.json | 65 ++
.../camel-ocsf/src/main/resources/schema/Cve.json | 75 +++
.../camel-ocsf/src/main/resources/schema/Cvss.json | 56 ++
.../camel-ocsf/src/main/resources/schema/Cwe.json | 23 +
.../main/resources/schema/DatastoreActivity.json | 69 ++
.../main/resources/schema/DetectionFinding.json | 131 ++++
.../src/main/resources/schema/Device.json | 250 ++++++++
.../src/main/resources/schema/DhcpActivity.json | 89 +++
.../src/main/resources/schema/Display.json | 31 +
.../src/main/resources/schema/DnsActivity.json | 103 +++
.../src/main/resources/schema/DnsQuery.json | 35 ++
.../src/main/resources/schema/EmailActivity.json | 89 +++
.../src/main/resources/schema/Endpoint.json | 93 +++
.../src/main/resources/schema/Enrichment.json | 59 ++
.../main/resources/schema/EntityManagement.json | 65 ++
.../camel-ocsf/src/main/resources/schema/Epss.json | 28 +
.../src/main/resources/schema/Extension.json | 23 +
.../src/main/resources/schema/Feature.json | 23 +
.../camel-ocsf/src/main/resources/schema/File.json | 171 +++++
.../src/main/resources/schema/FileActivity.json | 62 ++
.../src/main/resources/schema/FindingInfo.json | 128 ++++
.../src/main/resources/schema/Fingerprint.json | 24 +
.../src/main/resources/schema/FtpActivity.json | 109 ++++
.../src/main/resources/schema/Group.json | 38 ++
.../src/main/resources/schema/GroupManagement.json | 61 ++
.../src/main/resources/schema/HttpActivity.json | 95 +++
.../src/main/resources/schema/HttpHeader.json | 19 +
.../src/main/resources/schema/HttpRequest.json | 72 +++
.../src/main/resources/schema/HttpResponse.json | 46 ++
.../camel-ocsf/src/main/resources/schema/Idp.json | 69 ++
.../src/main/resources/schema/Image.json | 42 ++
.../src/main/resources/schema/IncidentFinding.json | 119 ++++
.../src/main/resources/schema/Ja4Fingerprint.json | 39 ++
.../src/main/resources/schema/KbArticle.json | 66 ++
.../src/main/resources/schema/KernelActivity.json | 40 ++
.../resources/schema/KernelExtensionActivity.json | 40 ++
.../src/main/resources/schema/KillChainPhase.json | 19 +
.../src/main/resources/schema/Location.json | 86 +++
.../src/main/resources/schema/Logger.json | 71 +++
.../src/main/resources/schema/Malware.json | 92 +++
.../src/main/resources/schema/MemoryActivity.json | 55 ++
.../src/main/resources/schema/Metadata.json | 164 +++++
.../src/main/resources/schema/Module.json | 42 ++
.../src/main/resources/schema/ModuleActivity.json | 39 ++
.../src/main/resources/schema/NetworkActivity.json | 81 +++
.../src/main/resources/schema/NetworkEndpoint.json | 135 ++++
.../main/resources/schema/NetworkFileActivity.json | 85 +++
.../main/resources/schema/NetworkInterface.json | 57 ++
.../src/main/resources/schema/NtpActivity.json | 94 +++
.../src/main/resources/schema/Observable.json | 38 ++
.../src/main/resources/schema/OcsfEvent.json | 144 +++++
.../src/main/resources/schema/Organization.json | 27 +
.../camel-ocsf/src/main/resources/schema/Os.json | 63 ++
.../src/main/resources/schema/Package.json | 78 +++
.../src/main/resources/schema/Policy.json | 50 ++
.../src/main/resources/schema/Process.json | 124 ++++
.../src/main/resources/schema/ProcessActivity.json | 70 +++
.../src/main/resources/schema/Product.json | 46 ++
.../src/main/resources/schema/RdpActivity.json | 118 ++++
.../src/main/resources/schema/Remediation.json | 44 ++
.../main/resources/schema/RemediationActivity.json | 48 ++
.../src/main/resources/schema/Reputation.json | 27 +
.../src/main/resources/schema/Request.json | 41 ++
.../src/main/resources/schema/ResourceDetails.json | 114 ++++
.../src/main/resources/schema/Response.json | 53 ++
.../camel-ocsf/src/main/resources/schema/Rule.json | 35 ++
.../camel-ocsf/src/main/resources/schema/San.json | 19 +
.../camel-ocsf/src/main/resources/schema/Scan.json | 27 +
.../src/main/resources/schema/ScanActivity.json | 84 +++
.../resources/schema/ScheduledJobActivity.json | 40 ++
.../src/main/resources/schema/SecurityFinding.json | 156 +++++
.../src/main/resources/schema/Service.json | 38 ++
.../src/main/resources/schema/Session.json | 66 ++
.../src/main/resources/schema/SmbActivity.json | 119 ++++
.../src/main/resources/schema/SshActivity.json | 97 +++
.../src/main/resources/schema/SubTechnique.json | 23 +
.../src/main/resources/schema/Tactic.json | 23 +
.../src/main/resources/schema/Technique.json | 23 +
.../src/main/resources/schema/Ticket.json | 46 ++
.../camel-ocsf/src/main/resources/schema/Tls.json | 88 +++
.../camel-ocsf/src/main/resources/schema/Url.json | 152 +++++
.../camel-ocsf/src/main/resources/schema/User.json | 102 +++
.../src/main/resources/schema/UserAccess.json | 62 ++
.../main/resources/schema/VendorAttributes.json | 19 +
.../src/main/resources/schema/Vulnerability.json | 146 +++++
.../resources/schema/VulnerabilityFinding.json | 72 +++
.../resources/schema/WebResourcesActivity.json | 61 ++
.../src/main/script/generate-ocsf-schemas.py | 692 +++++++++++++++++++++
.../camel/dataformat/ocsf/OcsfDataFormatTest.java | 203 ++++++
.../dataformat/ocsf/OcsfEventExampleTest.java | 308 +++++++++
.../src/test/resources/log4j2.properties | 28 +
.../resources/ocsf-detection-finding-example.json | 168 +++++
components/pom.xml | 1 +
.../org/apache/camel/model/dataformat/ocsf.json | 27 +
.../META-INF/org/apache/camel/model/marshal.json | 2 +-
.../META-INF/org/apache/camel/model/unmarshal.json | 2 +-
.../services/org/apache/camel/model.properties | 1 +
.../org/apache/camel/model/dataformat/jaxb.index | 1 +
.../camel/builder/DataFormatBuilderFactory.java | 8 +
.../org/apache/camel/builder/DataFormatClause.java | 19 +
.../org/apache/camel/model/MarshalDefinition.java | 4 +
.../apache/camel/model/UnmarshalDefinition.java | 4 +
.../camel/model/dataformat/OcsfDataFormat.java | 414 ++++++++++++
.../reifier/dataformat/DataFormatReifier.java | 2 +
.../reifier/dataformat/OcsfDataFormatReifier.java | 43 ++
.../org/apache/camel/main/dataformats.properties | 1 +
.../java/org/apache/camel/xml/in/ModelParser.java | 15 +
.../java/org/apache/camel/xml/out/ModelWriter.java | 21 +
.../org/apache/camel/yaml/out/ModelWriter.java | 21 +
.../modules/dataformats/examples/json/ocsf.json | 1 +
docs/components/modules/dataformats/nav.adoc | 1 +
.../modules/dataformats/pages/ocsf-dataformat.adoc | 1 +
.../dsl/yaml/deserializers/ModelDeserializers.java | 118 ++++
.../deserializers/ModelDeserializersResolver.java | 2 +
.../generated/resources/schema/camelYamlDsl.json | 106 ++++
parent/pom.xml | 5 +
151 files changed, 10816 insertions(+), 148 deletions(-)
diff --git a/bom/camel-bom/pom.xml b/bom/camel-bom/pom.xml
index 2c4a3edcd3c8..ef796794bedb 100644
--- a/bom/camel-bom/pom.xml
+++ b/bom/camel-bom/pom.xml
@@ -1702,6 +1702,11 @@
<artifactId>camel-observation</artifactId>
<version>4.18.0-SNAPSHOT</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-ocsf</artifactId>
+ <version>4.18.0-SNAPSHOT</version>
+ </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-ognl</artifactId>
diff --git a/catalog/camel-allcomponents/pom.xml b/catalog/camel-allcomponents/pom.xml
index d6b44a79065b..83fff97272da 100644
--- a/catalog/camel-allcomponents/pom.xml
+++ b/catalog/camel-allcomponents/pom.xml
@@ -1502,6 +1502,11 @@
<artifactId>camel-observation</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-ocsf</artifactId>
+ <version>${project.version}</version>
+ </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-ognl</artifactId>
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/dataformats.properties b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/dataformats.properties
index 95f2e595b066..ba3381db70dd 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/dataformats.properties
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/dataformats.properties
@@ -30,6 +30,7 @@ jsonApi
jsonb
lzf
mimeMultipart
+ocsf
parquetAvro
pgp
pqc
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/dataformats/ocsf.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/dataformats/ocsf.json
new file mode 100644
index 000000000000..7c6f91004514
--- /dev/null
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/dataformats/ocsf.json
@@ -0,0 +1,30 @@
+{
+ "dataformat": {
+ "kind": "dataformat",
+ "name": "ocsf",
+ "title": "OCSF",
+ "description": "Marshal and unmarshal OCSF (Open Cybersecurity Schema Framework) security events to\/from JSON.",
+ "deprecated": false,
+ "firstVersion": "4.18.0",
+ "label": "dataformat,transformation,json,security",
+ "javaType": "org.apache.camel.dataformat.ocsf.OcsfDataFormat",
+ "supportLevel": "Preview",
+ "groupId": "org.apache.camel",
+ "artifactId": "camel-ocsf",
+ "version": "4.18.0-SNAPSHOT",
+ "modelName": "ocsf",
+ "modelJavaType": "org.apache.camel.model.dataformat.OcsfDataFormat"
+ },
+ "properties": {
+ "id": { "index": 0, "kind": "attribute", "displayName": "Id", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The id of this node" },
+ "objectMapper": { "index": 1, "kind": "attribute", "displayName": "Object Mapper", "group": "advanced", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Lookup and use the existing ObjectMapper with the given id when using Jackson." },
+ "useDefaultObjectMapper": { "index": 2, "kind": "attribute", "displayName": "Use Default Object Mapper", "group": "common", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether to lookup and use default Jackson ObjectMapper from the registry." },
+ "unmarshalType": { "index": 3, "kind": "attribute", "displayName": "Unmarshal Type", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Class name of the OCSF event type to use when unmarshalling. Defaults to OcsfEvent." },
+ "collectionType": { "index": 4, "kind": "attribute", "displayName": "Collection Type", "group": "advanced", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Refers to a custom collection type to lookup in the registry to use. This option should rarely be used, but allows to use different collection types than java.util.Collection based as default." },
+ "useList": { "index": 5, "kind": "attribute", "displayName": "Use List", "group": "common", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "To unmarshal to a List of OCSF events." },
+ "allowUnmarshallType": { "index": 6, "kind": "attribute", "displayName": "Allow Unmarshall Type", "group": "common", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If enabled then the unmarshal type can be specified via the CamelOcsfUnmarshalType header. This should only be enabled when desired to be used." },
+ "prettyPrint": { "index": 7, "kind": "attribute", "displayName": "Pretty Print", "group": "common", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "To enable pretty printing output nicely formatted. Is by default false." },
+ "enableFeatures": { "index": 8, "kind": "attribute", "displayName": "Enable Features", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Set of features to enable on the Jackson com.fasterxml.jackson.databind.ObjectMapper. The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.Deserializatio [...]
+ "disableFeatures": { "index": 9, "kind": "attribute", "displayName": "Disable Features", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Set of features to disable on the Jackson com.fasterxml.jackson.databind.ObjectMapper. The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.Deserializa [...]
+ }
+}
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models.properties b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models.properties
index 0b18bc571da9..a7d37b28f16d 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models.properties
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models.properties
@@ -112,6 +112,7 @@ mutualTLS
mvel
noErrorHandler
oauth2
+ocsf
ognl
onCompletion
onException
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/marshal.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/marshal.json
index 0c72b2805408..bcd99af51a31 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/marshal.json
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/marshal.json
@@ -16,7 +16,7 @@
"note": { "index": 1, "kind": "attribute", "displayName": "Note", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Sets the note of this node" },
"description": { "index": 2, "kind": "attribute", "displayName": "Description", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Sets the description of this node" },
"disabled": { "index": 3, "kind": "attribute", "displayName": "Disabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Disables this EIP from the route." },
- "dataFormatType": { "index": 4, "kind": "element", "displayName": "Data Format Type", "group": "common", "required": true, "type": "object", "javaType": "org.apache.camel.model.DataFormatDefinition", "oneOf": [ "asn1", "avro", "barcode", "base64", "beanio", "bindy", "cbor", "crypto", "csv", "custom", "dfdl", "fhirJson", "fhirXml", "flatpack", "fory", "grok", "groovyXml", "gzipDeflater", "hl7", "ical", "iso8583", "jacksonXml", "jaxb", "json", "jsonApi", "lzf", "mimeMultipart", "parque [...]
+ "dataFormatType": { "index": 4, "kind": "element", "displayName": "Data Format Type", "group": "common", "required": true, "type": "object", "javaType": "org.apache.camel.model.DataFormatDefinition", "oneOf": [ "asn1", "avro", "barcode", "base64", "beanio", "bindy", "cbor", "crypto", "csv", "custom", "dfdl", "fhirJson", "fhirXml", "flatpack", "fory", "grok", "groovyXml", "gzipDeflater", "hl7", "ical", "iso8583", "jacksonXml", "jaxb", "json", "jsonApi", "lzf", "mimeMultipart", "ocsf", [...]
"variableSend": { "index": 5, "kind": "attribute", "displayName": "Variable Send", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "To use a variable as the source for the message body to send. This makes it handy to use variables for user data and to easily control what data to use for sending and receiving. Important: When using send variable then the message body is tak [...]
"variableReceive": { "index": 6, "kind": "attribute", "displayName": "Variable Receive", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "To use a variable to store the received message body (only body, not headers). This makes it handy to use variables for user data and to easily control what data to use for sending and receiving. Important: When using receive variable th [...]
}
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/ocsf.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/ocsf.json
new file mode 100644
index 000000000000..51e0dcdc6397
--- /dev/null
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/ocsf.json
@@ -0,0 +1,27 @@
+{
+ "model": {
+ "kind": "model",
+ "name": "ocsf",
+ "title": "OCSF",
+ "description": "Marshal and unmarshal OCSF (Open Cybersecurity Schema Framework) security events to\/from JSON.",
+ "deprecated": false,
+ "firstVersion": "4.18.0",
+ "label": "dataformat,transformation,json,security",
+ "javaType": "org.apache.camel.model.dataformat.OcsfDataFormat",
+ "abstract": false,
+ "input": false,
+ "output": false
+ },
+ "properties": {
+ "id": { "index": 0, "kind": "attribute", "displayName": "Id", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The id of this node" },
+ "objectMapper": { "index": 1, "kind": "attribute", "displayName": "Object Mapper", "group": "advanced", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Lookup and use the existing ObjectMapper with the given id when using Jackson." },
+ "useDefaultObjectMapper": { "index": 2, "kind": "attribute", "displayName": "Use Default Object Mapper", "group": "common", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether to lookup and use default Jackson ObjectMapper from the registry." },
+ "unmarshalType": { "index": 3, "kind": "attribute", "displayName": "Unmarshal Type", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Class name of the OCSF event type to use when unmarshalling. Defaults to OcsfEvent." },
+ "collectionType": { "index": 4, "kind": "attribute", "displayName": "Collection Type", "group": "advanced", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Refers to a custom collection type to lookup in the registry to use. This option should rarely be used, but allows to use different collection types than java.util.Collection based as default." },
+ "useList": { "index": 5, "kind": "attribute", "displayName": "Use List", "group": "common", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "To unmarshal to a List of OCSF events." },
+ "allowUnmarshallType": { "index": 6, "kind": "attribute", "displayName": "Allow Unmarshall Type", "group": "common", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If enabled then the unmarshal type can be specified via the CamelOcsfUnmarshalType header. This should only be enabled when desired to be used." },
+ "prettyPrint": { "index": 7, "kind": "attribute", "displayName": "Pretty Print", "group": "common", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "To enable pretty printing output nicely formatted. Is by default false." },
+ "enableFeatures": { "index": 8, "kind": "attribute", "displayName": "Enable Features", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Set of features to enable on the Jackson com.fasterxml.jackson.databind.ObjectMapper. The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.Deserializatio [...]
+ "disableFeatures": { "index": 9, "kind": "attribute", "displayName": "Disable Features", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Set of features to disable on the Jackson com.fasterxml.jackson.databind.ObjectMapper. The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.Deserializa [...]
+ }
+}
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/unmarshal.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/unmarshal.json
index d7585f33bc1c..c8ab481d6647 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/unmarshal.json
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/unmarshal.json
@@ -16,7 +16,7 @@
"note": { "index": 1, "kind": "attribute", "displayName": "Note", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Sets the note of this node" },
"description": { "index": 2, "kind": "attribute", "displayName": "Description", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Sets the description of this node" },
"disabled": { "index": 3, "kind": "attribute", "displayName": "Disabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Disables this EIP from the route." },
- "dataFormatType": { "index": 4, "kind": "element", "displayName": "Data Format Type", "group": "common", "required": true, "type": "object", "javaType": "org.apache.camel.model.DataFormatDefinition", "oneOf": [ "asn1", "avro", "barcode", "base64", "beanio", "bindy", "cbor", "crypto", "csv", "custom", "dfdl", "fhirJson", "fhirXml", "flatpack", "fory", "grok", "groovyXml", "gzipDeflater", "hl7", "ical", "iso8583", "jacksonXml", "jaxb", "json", "jsonApi", "lzf", "mimeMultipart", "parque [...]
+ "dataFormatType": { "index": 4, "kind": "element", "displayName": "Data Format Type", "group": "common", "required": true, "type": "object", "javaType": "org.apache.camel.model.DataFormatDefinition", "oneOf": [ "asn1", "avro", "barcode", "base64", "beanio", "bindy", "cbor", "crypto", "csv", "custom", "dfdl", "fhirJson", "fhirXml", "flatpack", "fory", "grok", "groovyXml", "gzipDeflater", "hl7", "ical", "iso8583", "jacksonXml", "jaxb", "json", "jsonApi", "lzf", "mimeMultipart", "ocsf", [...]
"variableSend": { "index": 5, "kind": "attribute", "displayName": "Variable Send", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "To use a variable as the source for the message body to send. This makes it handy to use variables for user data and to easily control what data to use for sending and receiving. Important: When using send variable then the message body is tak [...]
"variableReceive": { "index": 6, "kind": "attribute", "displayName": "Variable Receive", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "To use a variable to store the received message body (only body, not headers). This makes it handy to use variables for user data and to easily control what data to use for sending and receiving. Important: When using receive variable th [...]
"allowNullBody": { "index": 7, "kind": "attribute", "displayName": "Allow Null Body", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Indicates whether null is allowed as value of a body to unmarshall." }
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
index dd4276567137..128ded86d9c8 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
@@ -1120,6 +1120,15 @@ To not use an error handler.
<xs:documentation xml:lang="en">
<![CDATA[
Rest security OAuth2 definition
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="ocsf" type="tns:ocsfDataFormat">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+Marshal and unmarshal OCSF (Open Cybersecurity Schema Framework) security events to/from JSON.
]]>
</xs:documentation>
</xs:annotation>
@@ -7619,6 +7628,7 @@ messages, or any custom logic needed before the looping executes.
<xs:element ref="tns:jsonApi"/>
<xs:element ref="tns:lzf"/>
<xs:element ref="tns:mimeMultipart"/>
+ <xs:element ref="tns:ocsf"/>
<xs:element ref="tns:parquetAvro"/>
<xs:element ref="tns:protobuf"/>
<xs:element ref="tns:rss"/>
@@ -7634,6 +7644,7 @@ messages, or any custom logic needed before the looping executes.
<xs:element ref="tns:univocityTsv"/>
<xs:element ref="tns:xmlSecurity"/>
<xs:element ref="tns:pgp"/>
+ <xs:element ref="tns:pqc"/>
<xs:element ref="tns:yaml"/>
<xs:element ref="tns:zipDeflater"/>
<xs:element ref="tns:zipFile"/>
@@ -9828,6 +9839,102 @@ if headersInline is set to true. Default is to include no headers.
<![CDATA[
Defines whether the content of binary parts in the MIME multipart is binary (true) or Base-64 encoded (false) Default is
false. Default value: false
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="ocsfDataFormat">
+ <xs:complexContent>
+ <xs:extension base="tns:dataFormat">
+ <xs:sequence/>
+ <xs:attribute name="objectMapper" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+Lookup and use the existing ObjectMapper with the given id when using Jackson.
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="useDefaultObjectMapper" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+Whether to lookup and use default Jackson ObjectMapper from the registry. Default value: true
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="unmarshalType" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+Class name of the OCSF event type to use when unmarshalling. Defaults to OcsfEvent.
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="collectionType" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+Refers to a custom collection type to lookup in the registry to use. This option should rarely be used, but allows to
+use different collection types than java.util.Collection based as default.
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="useList" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+To unmarshal to a List of OCSF events. Default value: false
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="allowUnmarshallType" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+If enabled then the unmarshal type can be specified via the CamelOcsfUnmarshalType header. This should only be enabled
+when desired to be used. Default value: false
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="prettyPrint" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+To enable pretty printing output nicely formatted. Is by default false. Default value: false
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="enableFeatures" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+Set of features to enable on the Jackson com.fasterxml.jackson.databind.ObjectMapper. The features should be a name that
+matches a enum from com.fasterxml.jackson.databind.SerializationFeature,
+com.fasterxml.jackson.databind.DeserializationFeature, or com.fasterxml.jackson.databind.MapperFeature Multiple features
+can be separated by comma.
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="disableFeatures" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+Set of features to disable on the Jackson com.fasterxml.jackson.databind.ObjectMapper. The features should be a name
+that matches a enum from com.fasterxml.jackson.databind.SerializationFeature,
+com.fasterxml.jackson.databind.DeserializationFeature, or com.fasterxml.jackson.databind.MapperFeature Multiple features
+can be separated by comma.
]]>
</xs:documentation>
</xs:annotation>
@@ -10865,6 +10972,78 @@ required: The PGP message must contain at least one signature; if this is not th
thrown. A signature verification is executed. ignore: Contained signatures in the PGP message are ignored; no signature
verification is executed. no_signature_allowed: The PGP message must not contain a signature; otherwise an exception
(PGPException) is thrown.
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="pqcDataFormat">
+ <xs:complexContent>
+ <xs:extension base="tns:dataFormat">
+ <xs:sequence/>
+ <xs:attribute name="keyEncapsulationAlgorithm" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+The Post-Quantum KEM algorithm to use for key encapsulation. Supported values: MLKEM, BIKE, HQC, CMCE, SABER, FRODO,
+NTRU, NTRULPRime, SNTRUPrime, KYBER. Default value: MLKEM
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="symmetricKeyAlgorithm" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+The symmetric encryption algorithm to use with the shared secret. Supported values: AES, ARIA, RC2, RC5, CAMELLIA,
+CAST5, CAST6, CHACHA7539, etc. Default value: AES
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="symmetricKeyLength" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+The length (in bits) of the symmetric key. Default value: 128
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="keyPair" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+Refers to the KeyPair to lookup from the register to use for KEM operations.
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="bufferSize" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+The size of the buffer used for streaming encryption/decryption. Default value: 4096
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="provider" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+The JCE security provider to use.
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="keyGenerator" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+Refers to a custom KeyGenerator to lookup from the register for KEM operations.
]]>
</xs:documentation>
</xs:annotation>
@@ -14967,6 +15146,7 @@ To type used as a target data type in the transformation.
<xs:element ref="tns:jsonApi"/>
<xs:element ref="tns:lzf"/>
<xs:element ref="tns:mimeMultipart"/>
+ <xs:element ref="tns:ocsf"/>
<xs:element ref="tns:parquetAvro"/>
<xs:element ref="tns:protobuf"/>
<xs:element ref="tns:rss"/>
@@ -14982,6 +15162,7 @@ To type used as a target data type in the transformation.
<xs:element ref="tns:univocityTsv"/>
<xs:element ref="tns:xmlSecurity"/>
<xs:element ref="tns:pgp"/>
+ <xs:element ref="tns:pqc"/>
<xs:element ref="tns:yaml"/>
<xs:element ref="tns:zipDeflater"/>
<xs:element ref="tns:zipFile"/>
@@ -17264,78 +17445,6 @@ Set a reference to a custom Expression to use.
</xs:choice>
</xs:sequence>
</xs:complexType>
- <xs:complexType name="pqcDataFormat">
- <xs:complexContent>
- <xs:extension base="tns:dataFormat">
- <xs:sequence/>
- <xs:attribute name="keyEncapsulationAlgorithm" type="xs:string">
- <xs:annotation>
- <xs:documentation xml:lang="en">
-<![CDATA[
-The Post-Quantum KEM algorithm to use for key encapsulation. Supported values: MLKEM, BIKE, HQC, CMCE, SABER, FRODO,
-NTRU, NTRULPRime, SNTRUPrime, KYBER. Default value: MLKEM
-]]>
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="symmetricKeyAlgorithm" type="xs:string">
- <xs:annotation>
- <xs:documentation xml:lang="en">
-<![CDATA[
-The symmetric encryption algorithm to use with the shared secret. Supported values: AES, ARIA, RC2, RC5, CAMELLIA,
-CAST5, CAST6, CHACHA7539, etc. Default value: AES
-]]>
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="symmetricKeyLength" type="xs:string">
- <xs:annotation>
- <xs:documentation xml:lang="en">
-<![CDATA[
-The length (in bits) of the symmetric key. Default value: 128
-]]>
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="keyPair" type="xs:string">
- <xs:annotation>
- <xs:documentation xml:lang="en">
-<![CDATA[
-Refers to the KeyPair to lookup from the register to use for KEM operations.
-]]>
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="bufferSize" type="xs:string">
- <xs:annotation>
- <xs:documentation xml:lang="en">
-<![CDATA[
-The size of the buffer used for streaming encryption/decryption. Default value: 4096
-]]>
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="provider" type="xs:string">
- <xs:annotation>
- <xs:documentation xml:lang="en">
-<![CDATA[
-The JCE security provider to use.
-]]>
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="keyGenerator" type="xs:string">
- <xs:annotation>
- <xs:documentation xml:lang="en">
-<![CDATA[
-Refers to a custom KeyGenerator to lookup from the register for KEM operations.
-]]>
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
<xs:complexType name="cSimpleExpression">
<xs:simpleContent>
<xs:extension base="tns:typedExpressionDefinition">
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-xml-io.xsd b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-xml-io.xsd
index 76d1debb63ff..f5a6b1572d04 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-xml-io.xsd
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-xml-io.xsd
@@ -1057,6 +1057,15 @@ To not use an error handler.
<xs:documentation xml:lang="en">
<![CDATA[
Rest security OAuth2 definition
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="ocsf" type="tns:ocsfDataFormat">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+Marshal and unmarshal OCSF (Open Cybersecurity Schema Framework) security events to/from JSON.
]]>
</xs:documentation>
</xs:annotation>
@@ -6292,6 +6301,7 @@ messages, or any custom logic needed before the looping executes.
<xs:element ref="tns:jsonApi"/>
<xs:element ref="tns:lzf"/>
<xs:element ref="tns:mimeMultipart"/>
+ <xs:element ref="tns:ocsf"/>
<xs:element ref="tns:parquetAvro"/>
<xs:element ref="tns:protobuf"/>
<xs:element ref="tns:rss"/>
@@ -6307,6 +6317,7 @@ messages, or any custom logic needed before the looping executes.
<xs:element ref="tns:univocityTsv"/>
<xs:element ref="tns:xmlSecurity"/>
<xs:element ref="tns:pgp"/>
+ <xs:element ref="tns:pqc"/>
<xs:element ref="tns:yaml"/>
<xs:element ref="tns:zipDeflater"/>
<xs:element ref="tns:zipFile"/>
@@ -8501,6 +8512,102 @@ if headersInline is set to true. Default is to include no headers.
<![CDATA[
Defines whether the content of binary parts in the MIME multipart is binary (true) or Base-64 encoded (false) Default is
false. Default value: false
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="ocsfDataFormat">
+ <xs:complexContent>
+ <xs:extension base="tns:dataFormat">
+ <xs:sequence/>
+ <xs:attribute name="objectMapper" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+Lookup and use the existing ObjectMapper with the given id when using Jackson.
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="useDefaultObjectMapper" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+Whether to lookup and use default Jackson ObjectMapper from the registry. Default value: true
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="unmarshalType" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+Class name of the OCSF event type to use when unmarshalling. Defaults to OcsfEvent.
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="collectionType" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+Refers to a custom collection type to lookup in the registry to use. This option should rarely be used, but allows to
+use different collection types than java.util.Collection based as default.
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="useList" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+To unmarshal to a List of OCSF events. Default value: false
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="allowUnmarshallType" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+If enabled then the unmarshal type can be specified via the CamelOcsfUnmarshalType header. This should only be enabled
+when desired to be used. Default value: false
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="prettyPrint" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+To enable pretty printing output nicely formatted. Is by default false. Default value: false
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="enableFeatures" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+Set of features to enable on the Jackson com.fasterxml.jackson.databind.ObjectMapper. The features should be a name that
+matches a enum from com.fasterxml.jackson.databind.SerializationFeature,
+com.fasterxml.jackson.databind.DeserializationFeature, or com.fasterxml.jackson.databind.MapperFeature Multiple features
+can be separated by comma.
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="disableFeatures" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+Set of features to disable on the Jackson com.fasterxml.jackson.databind.ObjectMapper. The features should be a name
+that matches a enum from com.fasterxml.jackson.databind.SerializationFeature,
+com.fasterxml.jackson.databind.DeserializationFeature, or com.fasterxml.jackson.databind.MapperFeature Multiple features
+can be separated by comma.
]]>
</xs:documentation>
</xs:annotation>
@@ -9538,6 +9645,78 @@ required: The PGP message must contain at least one signature; if this is not th
thrown. A signature verification is executed. ignore: Contained signatures in the PGP message are ignored; no signature
verification is executed. no_signature_allowed: The PGP message must not contain a signature; otherwise an exception
(PGPException) is thrown.
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="pqcDataFormat">
+ <xs:complexContent>
+ <xs:extension base="tns:dataFormat">
+ <xs:sequence/>
+ <xs:attribute name="keyEncapsulationAlgorithm" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+The Post-Quantum KEM algorithm to use for key encapsulation. Supported values: MLKEM, BIKE, HQC, CMCE, SABER, FRODO,
+NTRU, NTRULPRime, SNTRUPrime, KYBER. Default value: MLKEM
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="symmetricKeyAlgorithm" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+The symmetric encryption algorithm to use with the shared secret. Supported values: AES, ARIA, RC2, RC5, CAMELLIA,
+CAST5, CAST6, CHACHA7539, etc. Default value: AES
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="symmetricKeyLength" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+The length (in bits) of the symmetric key. Default value: 128
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="keyPair" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+Refers to the KeyPair to lookup from the register to use for KEM operations.
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="bufferSize" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+The size of the buffer used for streaming encryption/decryption. Default value: 4096
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="provider" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+The JCE security provider to use.
+]]>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="keyGenerator" type="xs:string">
+ <xs:annotation>
+ <xs:documentation xml:lang="en">
+<![CDATA[
+Refers to a custom KeyGenerator to lookup from the register for KEM operations.
]]>
</xs:documentation>
</xs:annotation>
@@ -13661,6 +13840,7 @@ To type used as a target data type in the transformation.
<xs:element ref="tns:jsonApi"/>
<xs:element ref="tns:lzf"/>
<xs:element ref="tns:mimeMultipart"/>
+ <xs:element ref="tns:ocsf"/>
<xs:element ref="tns:parquetAvro"/>
<xs:element ref="tns:protobuf"/>
<xs:element ref="tns:rss"/>
@@ -13676,6 +13856,7 @@ To type used as a target data type in the transformation.
<xs:element ref="tns:univocityTsv"/>
<xs:element ref="tns:xmlSecurity"/>
<xs:element ref="tns:pgp"/>
+ <xs:element ref="tns:pqc"/>
<xs:element ref="tns:yaml"/>
<xs:element ref="tns:zipDeflater"/>
<xs:element ref="tns:zipFile"/>
@@ -15958,78 +16139,6 @@ Set a reference to a custom Expression to use.
</xs:choice>
</xs:sequence>
</xs:complexType>
- <xs:complexType name="pqcDataFormat">
- <xs:complexContent>
- <xs:extension base="tns:dataFormat">
- <xs:sequence/>
- <xs:attribute name="keyEncapsulationAlgorithm" type="xs:string">
- <xs:annotation>
- <xs:documentation xml:lang="en">
-<![CDATA[
-The Post-Quantum KEM algorithm to use for key encapsulation. Supported values: MLKEM, BIKE, HQC, CMCE, SABER, FRODO,
-NTRU, NTRULPRime, SNTRUPrime, KYBER. Default value: MLKEM
-]]>
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="symmetricKeyAlgorithm" type="xs:string">
- <xs:annotation>
- <xs:documentation xml:lang="en">
-<![CDATA[
-The symmetric encryption algorithm to use with the shared secret. Supported values: AES, ARIA, RC2, RC5, CAMELLIA,
-CAST5, CAST6, CHACHA7539, etc. Default value: AES
-]]>
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="symmetricKeyLength" type="xs:string">
- <xs:annotation>
- <xs:documentation xml:lang="en">
-<![CDATA[
-The length (in bits) of the symmetric key. Default value: 128
-]]>
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="keyPair" type="xs:string">
- <xs:annotation>
- <xs:documentation xml:lang="en">
-<![CDATA[
-Refers to the KeyPair to lookup from the register to use for KEM operations.
-]]>
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="bufferSize" type="xs:string">
- <xs:annotation>
- <xs:documentation xml:lang="en">
-<![CDATA[
-The size of the buffer used for streaming encryption/decryption. Default value: 4096
-]]>
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="provider" type="xs:string">
- <xs:annotation>
- <xs:documentation xml:lang="en">
-<![CDATA[
-The JCE security provider to use.
-]]>
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- <xs:attribute name="keyGenerator" type="xs:string">
- <xs:annotation>
- <xs:documentation xml:lang="en">
-<![CDATA[
-Refers to a custom KeyGenerator to lookup from the register for KEM operations.
-]]>
- </xs:documentation>
- </xs:annotation>
- </xs:attribute>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
<xs:complexType name="cSimpleExpression">
<xs:simpleContent>
<xs:extension base="tns:typedExpressionDefinition">
diff --git a/components/camel-ocsf/pom.xml b/components/camel-ocsf/pom.xml
new file mode 100644
index 000000000000..0e4f75a1f726
--- /dev/null
+++ b/components/camel-ocsf/pom.xml
@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <artifactId>components</artifactId>
+ <groupId>org.apache.camel</groupId>
+ <version>4.18.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>camel-ocsf</artifactId>
+ <packaging>jar</packaging>
+ <name>Camel :: OCSF</name>
+ <description>Camel OCSF (Open Cybersecurity Schema Framework) DataFormat</description>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-support</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-annotations</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-databind</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.datatype</groupId>
+ <artifactId>jackson-datatype-jsr310</artifactId>
+ </dependency>
+
+ <!-- testing -->
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-test-junit5</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.assertj</groupId>
+ <artifactId>assertj-core</artifactId>
+ <version>${assertj-version}</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <!-- Generate OCSF model classes from JSON schemas -->
+ <plugin>
+ <groupId>org.jsonschema2pojo</groupId>
+ <artifactId>jsonschema2pojo-maven-plugin</artifactId>
+ <version>1.2.2</version>
+ <configuration>
+ <sourceDirectory>${basedir}/src/main/resources/schema</sourceDirectory>
+ <targetPackage>org.apache.camel.dataformat.ocsf.model</targetPackage>
+ <outputDirectory>${project.build.directory}/generated-sources/jsonschema2pojo</outputDirectory>
+ <generateBuilders>true</generateBuilders>
+ <includeAdditionalProperties>true</includeAdditionalProperties>
+ <includeConstructors>true</includeConstructors>
+ <includeHashcodeAndEquals>true</includeHashcodeAndEquals>
+ <includeToString>true</includeToString>
+ <useTitleAsClassname>true</useTitleAsClassname>
+ <useInnerClassBuilders>true</useInnerClassBuilders>
+ <initializeCollections>true</initializeCollections>
+ <annotationStyle>jackson2</annotationStyle>
+ <inclusionLevel>NON_NULL</inclusionLevel>
+ <dateTimeType>java.time.Instant</dateTimeType>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
diff --git a/components/camel-ocsf/src/generated/java/org/apache/camel/dataformat/ocsf/OcsfDataFormatConfigurer.java b/components/camel-ocsf/src/generated/java/org/apache/camel/dataformat/ocsf/OcsfDataFormatConfigurer.java
new file mode 100644
index 000000000000..1d3cb9bc7baa
--- /dev/null
+++ b/components/camel-ocsf/src/generated/java/org/apache/camel/dataformat/ocsf/OcsfDataFormatConfigurer.java
@@ -0,0 +1,119 @@
+/* Generated by camel build tools - do NOT edit this file! */
+package org.apache.camel.dataformat.ocsf;
+
+import javax.annotation.processing.Generated;
+import java.util.Map;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
+import org.apache.camel.spi.PropertyConfigurerGetter;
+import org.apache.camel.spi.ConfigurerStrategy;
+import org.apache.camel.spi.GeneratedPropertyConfigurer;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.support.component.PropertyConfigurerSupport;
+
+/**
+ * Generated by camel build tools - do NOT edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
+@SuppressWarnings("unchecked")
+public class OcsfDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("AllowUnmarshallType", boolean.class);
+ map.put("CollectionType", java.lang.Class.class);
+ map.put("DisableFeatures", java.lang.String.class);
+ map.put("EnableFeatures", java.lang.String.class);
+ map.put("ObjectMapper", com.fasterxml.jackson.databind.ObjectMapper.class);
+ map.put("PrettyPrint", boolean.class);
+ map.put("UnmarshalType", java.lang.Class.class);
+ map.put("UseDefaultObjectMapper", boolean.class);
+ map.put("UseList", boolean.class);
+ ALL_OPTIONS = map;
+ }
+
+ @Override
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ OcsfDataFormat target = (OcsfDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowunmarshalltype":
+ case "allowUnmarshallType": target.setAllowUnmarshallType(property(camelContext, boolean.class, value)); return true;
+ case "collectiontype":
+ case "collectionType": target.setCollectionType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "disablefeatures":
+ case "disableFeatures": target.setDisableFeatures(property(camelContext, java.lang.String.class, value)); return true;
+ case "enablefeatures":
+ case "enableFeatures": target.setEnableFeatures(property(camelContext, java.lang.String.class, value)); return true;
+ case "objectmapper":
+ case "objectMapper": target.setObjectMapper(property(camelContext, com.fasterxml.jackson.databind.ObjectMapper.class, value)); return true;
+ case "prettyprint":
+ case "prettyPrint": target.setPrettyPrint(property(camelContext, boolean.class, value)); return true;
+ case "unmarshaltype":
+ case "unmarshalType": target.setUnmarshalType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "usedefaultobjectmapper":
+ case "useDefaultObjectMapper": target.setUseDefaultObjectMapper(property(camelContext, boolean.class, value)); return true;
+ case "uselist":
+ case "useList": target.setUseList(property(camelContext, boolean.class, value)); return true;
+ default: return false;
+ }
+ }
+
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowunmarshalltype":
+ case "allowUnmarshallType": return boolean.class;
+ case "collectiontype":
+ case "collectionType": return java.lang.Class.class;
+ case "disablefeatures":
+ case "disableFeatures": return java.lang.String.class;
+ case "enablefeatures":
+ case "enableFeatures": return java.lang.String.class;
+ case "objectmapper":
+ case "objectMapper": return com.fasterxml.jackson.databind.ObjectMapper.class;
+ case "prettyprint":
+ case "prettyPrint": return boolean.class;
+ case "unmarshaltype":
+ case "unmarshalType": return java.lang.Class.class;
+ case "usedefaultobjectmapper":
+ case "useDefaultObjectMapper": return boolean.class;
+ case "uselist":
+ case "useList": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ OcsfDataFormat target = (OcsfDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowunmarshalltype":
+ case "allowUnmarshallType": return target.isAllowUnmarshallType();
+ case "collectiontype":
+ case "collectionType": return target.getCollectionType();
+ case "disablefeatures":
+ case "disableFeatures": return target.getDisableFeatures();
+ case "enablefeatures":
+ case "enableFeatures": return target.getEnableFeatures();
+ case "objectmapper":
+ case "objectMapper": return target.getObjectMapper();
+ case "prettyprint":
+ case "prettyPrint": return target.isPrettyPrint();
+ case "unmarshaltype":
+ case "unmarshalType": return target.getUnmarshalType();
+ case "usedefaultobjectmapper":
+ case "useDefaultObjectMapper": return target.isUseDefaultObjectMapper();
+ case "uselist":
+ case "useList": return target.isUseList();
+ default: return null;
+ }
+ }
+}
+
diff --git a/components/camel-ocsf/src/generated/resources/META-INF/org/apache/camel/dataformat/ocsf/ocsf.json b/components/camel-ocsf/src/generated/resources/META-INF/org/apache/camel/dataformat/ocsf/ocsf.json
new file mode 100644
index 000000000000..7c6f91004514
--- /dev/null
+++ b/components/camel-ocsf/src/generated/resources/META-INF/org/apache/camel/dataformat/ocsf/ocsf.json
@@ -0,0 +1,30 @@
+{
+ "dataformat": {
+ "kind": "dataformat",
+ "name": "ocsf",
+ "title": "OCSF",
+ "description": "Marshal and unmarshal OCSF (Open Cybersecurity Schema Framework) security events to\/from JSON.",
+ "deprecated": false,
+ "firstVersion": "4.18.0",
+ "label": "dataformat,transformation,json,security",
+ "javaType": "org.apache.camel.dataformat.ocsf.OcsfDataFormat",
+ "supportLevel": "Preview",
+ "groupId": "org.apache.camel",
+ "artifactId": "camel-ocsf",
+ "version": "4.18.0-SNAPSHOT",
+ "modelName": "ocsf",
+ "modelJavaType": "org.apache.camel.model.dataformat.OcsfDataFormat"
+ },
+ "properties": {
+ "id": { "index": 0, "kind": "attribute", "displayName": "Id", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The id of this node" },
+ "objectMapper": { "index": 1, "kind": "attribute", "displayName": "Object Mapper", "group": "advanced", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Lookup and use the existing ObjectMapper with the given id when using Jackson." },
+ "useDefaultObjectMapper": { "index": 2, "kind": "attribute", "displayName": "Use Default Object Mapper", "group": "common", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether to lookup and use default Jackson ObjectMapper from the registry." },
+ "unmarshalType": { "index": 3, "kind": "attribute", "displayName": "Unmarshal Type", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Class name of the OCSF event type to use when unmarshalling. Defaults to OcsfEvent." },
+ "collectionType": { "index": 4, "kind": "attribute", "displayName": "Collection Type", "group": "advanced", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Refers to a custom collection type to lookup in the registry to use. This option should rarely be used, but allows to use different collection types than java.util.Collection based as default." },
+ "useList": { "index": 5, "kind": "attribute", "displayName": "Use List", "group": "common", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "To unmarshal to a List of OCSF events." },
+ "allowUnmarshallType": { "index": 6, "kind": "attribute", "displayName": "Allow Unmarshall Type", "group": "common", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If enabled then the unmarshal type can be specified via the CamelOcsfUnmarshalType header. This should only be enabled when desired to be used." },
+ "prettyPrint": { "index": 7, "kind": "attribute", "displayName": "Pretty Print", "group": "common", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "To enable pretty printing output nicely formatted. Is by default false." },
+ "enableFeatures": { "index": 8, "kind": "attribute", "displayName": "Enable Features", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Set of features to enable on the Jackson com.fasterxml.jackson.databind.ObjectMapper. The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.Deserializatio [...]
+ "disableFeatures": { "index": 9, "kind": "attribute", "displayName": "Disable Features", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Set of features to disable on the Jackson com.fasterxml.jackson.databind.ObjectMapper. The features should be a name that matches a enum from com.fasterxml.jackson.databind.SerializationFeature, com.fasterxml.jackson.databind.Deserializa [...]
+ }
+}
diff --git a/components/camel-ocsf/src/generated/resources/META-INF/services/org/apache/camel/configurer/ocsf-dataformat b/components/camel-ocsf/src/generated/resources/META-INF/services/org/apache/camel/configurer/ocsf-dataformat
new file mode 100644
index 000000000000..109ff9e544a9
--- /dev/null
+++ b/components/camel-ocsf/src/generated/resources/META-INF/services/org/apache/camel/configurer/ocsf-dataformat
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.dataformat.ocsf.OcsfDataFormatConfigurer
diff --git a/components/camel-ocsf/src/generated/resources/META-INF/services/org/apache/camel/dataformat.properties b/components/camel-ocsf/src/generated/resources/META-INF/services/org/apache/camel/dataformat.properties
new file mode 100644
index 000000000000..707e1f3e1811
--- /dev/null
+++ b/components/camel-ocsf/src/generated/resources/META-INF/services/org/apache/camel/dataformat.properties
@@ -0,0 +1,7 @@
+# Generated by camel build tools - do NOT edit this file!
+dataFormats=ocsf
+groupId=org.apache.camel
+artifactId=camel-ocsf
+version=4.18.0-SNAPSHOT
+projectName=Camel :: OCSF
+projectDescription=Camel OCSF (Open Cybersecurity Schema Framework) DataFormat
diff --git a/components/camel-ocsf/src/generated/resources/META-INF/services/org/apache/camel/dataformat/ocsf b/components/camel-ocsf/src/generated/resources/META-INF/services/org/apache/camel/dataformat/ocsf
new file mode 100644
index 000000000000..fcc293082b95
--- /dev/null
+++ b/components/camel-ocsf/src/generated/resources/META-INF/services/org/apache/camel/dataformat/ocsf
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.dataformat.ocsf.OcsfDataFormat
diff --git a/components/camel-ocsf/src/main/docs/ocsf-dataformat.adoc b/components/camel-ocsf/src/main/docs/ocsf-dataformat.adoc
new file mode 100644
index 000000000000..da226cea9a43
--- /dev/null
+++ b/components/camel-ocsf/src/main/docs/ocsf-dataformat.adoc
@@ -0,0 +1,314 @@
+= OCSF DataFormat
+:doctitle: OCSF
+:shortname: ocsf
+:artifactid: camel-ocsf
+:description: Marshal and unmarshal OCSF (Open Cybersecurity Schema Framework) security events to/from JSON.
+:since: 4.18
+:supportlevel: Preview
+:tabs-sync-option:
+//Manually maintained attributes
+:camel-spring-boot-name: ocsf
+
+*Since Camel {since}*
+
+The OCSF Data Format uses the https://github.com/FasterXML/jackson[Jackson library] to marshal and unmarshal security events following the https://schema.ocsf.io/[Open Cybersecurity Schema Framework (OCSF)] specification.
+
+OCSF is an open-source standard for cybersecurity event logging and data normalization. It provides a vendor-neutral schema for security events, enabling interoperability between different security tools and platforms.
+
+== Supported OCSF Event Classes
+
+This data format includes POJOs for 34 OCSF event classes and 68 reusable object types. Key event classes include:
+
+*Findings (Category 2):*
+
+* `DetectionFinding` - Alerts from SIEM, EDR, XDR tools (class_uid: 2004)
+* `SecurityFinding`, `VulnerabilityFinding`, `ComplianceFinding`, `IncidentFinding`
+
+*System Activity (Category 1):*
+
+* `FileActivity`, `ProcessActivity`, `KernelActivity`, `MemoryActivity`, `ModuleActivity`, `ScheduledJobActivity`
+
+*Network Activity (Category 4):*
+
+* `NetworkActivity`, `HttpActivity`, `DnsActivity`, `DhcpActivity`, `RdpActivity`, `SmbActivity`, `SshActivity`, `FtpActivity`, `EmailActivity`, `NtpActivity`
+
+*IAM (Category 3):*
+
+* `Authentication`, `AuthorizeSession`, `AccountChange`, `GroupManagement`, `UserAccess`, `EntityManagement`
+
+*Application Activity (Category 6):*
+
+* `ApiActivity`, `DatastoreActivity`, `WebResourcesActivity`, `ScanActivity`
+
+*Remediation (Category 7):*
+
+* `RemediationActivity`
+
+All event classes extend `OcsfEvent` which provides common attributes like `time`, `severity_id`, `class_uid`, and `metadata`.
+
+== Usage
+
+=== Marshalling OCSF Events
+
+[source,java]
+----
+from("direct:start")
+ .marshal().ocsf()
+ .to("kafka:security-events");
+----
+
+=== Unmarshalling OCSF Events
+
+[source,java]
+----
+from("kafka:security-events")
+ .unmarshal().ocsf()
+ .to("direct:process");
+----
+
+=== Unmarshalling to a Specific Event Class
+
+[source,java]
+----
+from("kafka:security-events")
+ .unmarshal().ocsf(DetectionFinding.class)
+ .to("direct:process");
+----
+
+=== Using with AWS Security Hub
+
+AWS Security Hub now outputs findings in OCSF format. You can use this data format to process those findings:
+
+[source,java]
+----
+from("aws-securityhub:findings")
+ .unmarshal().ocsf(DetectionFinding.class)
+ .choice()
+ .when(simple("${body.severityId} >= 4"))
+ .to("direct:high-severity")
+ .otherwise()
+ .to("direct:normal-severity");
+----
+
+== OCSF Options
+
+// dataformat options: START
+include::partial$dataformat-options.adoc[]
+// dataformat options: END
+
+== Using OCSF in Spring DSL
+
+You can use the OCSF data format directly in Spring XML:
+
+[source,xml]
+----
+<route>
+ <from uri="kafka:security-events"/>
+ <unmarshal>
+ <ocsf unmarshalType="org.apache.camel.dataformat.ocsf.model.DetectionFinding"/>
+ </unmarshal>
+ <to uri="direct:process"/>
+</route>
+----
+
+Or define a reusable data format:
+
+[source,xml]
+----
+<dataFormats>
+ <ocsf id="ocsfDetection" unmarshalType="org.apache.camel.dataformat.ocsf.model.DetectionFinding"/>
+</dataFormats>
+
+<route>
+ <from uri="kafka:security-events"/>
+ <unmarshal ref="ocsfDetection"/>
+ <to uri="direct:process"/>
+</route>
+----
+
+== OCSF Event Categories
+
+OCSF defines the following event categories:
+
+[cols="1,1,3"]
+|===
+|Category ID |Name |Description
+
+|1 |System Activity |Process, file system, kernel events
+|2 |Findings |Security findings, vulnerabilities, compliance
+|3 |IAM |Authentication, authorization, account changes
+|4 |Network Activity |HTTP, DNS, SSH, network traffic
+|5 |Discovery |Device inventory, configuration state
+|6 |Application Activity |API activity, web resources, scans
+|7 |Remediation |Remediation activities
+|===
+
+== Example: Creating a Detection Finding
+
+[source,java]
+----
+DetectionFinding finding = new DetectionFinding();
+finding.setActivityId(1); // Create
+finding.setSeverityId(4); // High
+finding.setTime(System.currentTimeMillis());
+finding.setMessage("Suspicious activity detected");
+
+FindingInfo info = new FindingInfo();
+info.setTitle("Malware Detection");
+info.setDesc("Potential malware detected on endpoint");
+finding.setFindingInfo(info);
+
+from("direct:start")
+ .setBody(constant(finding))
+ .marshal().ocsf()
+ .to("splunk-hec:...");
+----
+
+== Dependencies
+
+[source,xml]
+----
+<dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-ocsf</artifactId>
+ <version>x.x.x</version>
+</dependency>
+----
+
+== Generated Model Classes
+
+The component includes generated Java POJOs for OCSF events and objects in the package `org.apache.camel.dataformat.ocsf.model`.
+
+=== Event Classes
+
+[cols="1,1,2"]
+|===
+|Class |Category |Description
+
+|`OcsfEvent` |Base |Base class with common attributes (time, severity_id, class_uid, metadata)
+|`DetectionFinding` |Findings |Alerts from SIEM, EDR, XDR, threat detection tools
+|`SecurityFinding` |Findings |General security findings
+|`VulnerabilityFinding` |Findings |Vulnerability scan results
+|`ComplianceFinding` |Findings |Compliance check results
+|`IncidentFinding` |Findings |Security incidents
+|`FileActivity` |System |File system operations
+|`ProcessActivity` |System |Process creation, termination, injection
+|`KernelActivity` |System |Kernel-level events
+|`MemoryActivity` |System |Memory operations
+|`ModuleActivity` |System |Module/library loading
+|`ScheduledJobActivity` |System |Scheduled task events
+|`KernelExtensionActivity` |System |Kernel extension events
+|`NetworkActivity` |Network |Network connections and traffic
+|`HttpActivity` |Network |HTTP request/response events
+|`DnsActivity` |Network |DNS queries and responses
+|`DhcpActivity` |Network |DHCP events
+|`RdpActivity` |Network |Remote Desktop Protocol events
+|`SmbActivity` |Network |SMB/CIFS file sharing events
+|`SshActivity` |Network |SSH session events
+|`FtpActivity` |Network |FTP transfer events
+|`EmailActivity` |Network |Email events
+|`NtpActivity` |Network |NTP synchronization events
+|`NetworkFileActivity` |Network |Network file operations
+|`Authentication` |IAM |Login/logout events
+|`AuthorizeSession` |IAM |Session authorization
+|`AccountChange` |IAM |Account modifications
+|`GroupManagement` |IAM |Group membership changes
+|`UserAccess` |IAM |User access events
+|`EntityManagement` |IAM |Entity lifecycle events
+|`ApiActivity` |Application |API calls
+|`DatastoreActivity` |Application |Database operations
+|`WebResourcesActivity` |Application |Web resource access
+|`ScanActivity` |Application |Security scans
+|`RemediationActivity` |Remediation |Remediation actions
+|===
+
+=== Object Classes
+
+Reusable objects used within event classes:
+
+* `Actor`, `User`, `Group`, `Account` - Identity objects
+* `Device`, `Endpoint`, `NetworkEndpoint` - Device and endpoint objects
+* `Process`, `File`, `Module`, `Kernel` - System objects
+* `Attack`, `Tactic`, `Technique`, `SubTechnique` - MITRE ATT&CK objects
+* `FindingInfo`, `Remediation`, `Vulnerability`, `Malware` - Security finding objects
+* `Cloud`, `Container`, `Image` - Cloud and container objects
+* `Metadata`, `Product`, `Observable`, `Enrichment` - Metadata objects
+* `Certificate`, `Tls`, `Fingerprint` - Cryptographic objects
+* `HttpRequest`, `HttpResponse`, `DnsQuery`, `Url` - Network protocol objects
+* `Location`, `Organization`, `Service` - Context objects
+* `Cve`, `Cvss`, `Cwe`, `Epss` - Vulnerability reference objects
+
+== Updating OCSF Schema Version
+
+The Java POJOs in this component are generated from JSON Schema files using the jsonschema2pojo Maven plugin.
+The classes are generated at build time to `target/generated-sources/jsonschema2pojo` and included in the released JAR.
+A Python script is provided to regenerate the JSON schemas from the official OCSF specification when a new version is released.
+
+=== Prerequisites
+
+Install the `ocsf-json-schema` Python package:
+
+[source,bash]
+----
+pip install ocsf-json-schema
+----
+
+=== Generating Schemas and Java Classes
+
+To update the OCSF model classes to a new version:
+
+1. Run the schema generation script from the `src/main/script` directory:
++
+[source,bash]
+----
+cd src/main/script
+python3 generate-ocsf-schemas.py --version 1.7.0 --output ../resources/schema --clean
+----
+
+2. Build and test to verify the changes (Java classes are generated automatically during build):
++
+[source,bash]
+----
+mvn clean test
+----
+
+3. Commit the updated JSON schema files.
+
+=== Script Options
+
+The script supports the following options:
+
+[cols="1,1,3"]
+|===
+|Option |Default |Description
+
+|`--version`, `-v` |1.7.0 |OCSF schema version to generate
+|`--output`, `-o` |../resources/schema |Output directory for schema files
+|`--clean` |false |Remove existing schema files before generating
+|`--all-classes` |false |Generate all available event classes (not just the default list)
+|`--all-objects` |false |Generate all available objects (not just the default list)
+|===
+
+=== Schema Generation Details
+
+The script generates:
+
+* **OcsfEvent.json** - Base event class with common attributes (time, severity, class_uid, etc.)
+* **Object schemas** - Reusable OCSF objects (Attack, FindingInfo, Device, User, etc.)
+* **Event class schemas** - Event classes that extend OcsfEvent (DetectionFinding, Authentication, etc.)
+
+The generated schemas use:
+
+* JSON Schema Draft-07 format
+* File-based `$ref` references (e.g., `"$ref": "Attack.json"`)
+* `javaType` annotations for explicit Java class naming
+* `allOf` pattern for event class inheritance from OcsfEvent
+* `additionalProperties: true` for forward compatibility
+
+== See Also
+
+* https://schema.ocsf.io/[OCSF Schema Browser]
+* https://github.com/ocsf/ocsf-schema[OCSF Schema GitHub]
+* https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-ocsf.html[AWS Security Hub OCSF Documentation]
+
+include::spring-boot:partial$starter.adoc[]
diff --git a/components/camel-ocsf/src/main/java/org/apache/camel/dataformat/ocsf/OcsfConstants.java b/components/camel-ocsf/src/main/java/org/apache/camel/dataformat/ocsf/OcsfConstants.java
new file mode 100644
index 000000000000..9894e73a4416
--- /dev/null
+++ b/components/camel-ocsf/src/main/java/org/apache/camel/dataformat/ocsf/OcsfConstants.java
@@ -0,0 +1,92 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.dataformat.ocsf;
+
+/**
+ * Constants for OCSF (Open Cybersecurity Schema Framework).
+ */
+public final class OcsfConstants {
+
+ /**
+ * Header to specify the OCSF event class for unmarshalling.
+ */
+ public static final String UNMARSHAL_TYPE = "CamelOcsfUnmarshalType";
+
+ /**
+ * Current OCSF schema version supported.
+ */
+ public static final String SCHEMA_VERSION = "1.7.0";
+
+ // OCSF Event Categories
+ public static final int CATEGORY_UNCATEGORIZED = 0;
+ public static final int CATEGORY_SYSTEM_ACTIVITY = 1;
+ public static final int CATEGORY_FINDINGS = 2;
+ public static final int CATEGORY_IAM = 3;
+ public static final int CATEGORY_NETWORK_ACTIVITY = 4;
+ public static final int CATEGORY_DISCOVERY = 5;
+ public static final int CATEGORY_APPLICATION_ACTIVITY = 6;
+ public static final int CATEGORY_REMEDIATION = 7;
+
+ // OCSF Event Class UIDs - Findings Category
+ public static final int CLASS_SECURITY_FINDING = 2001;
+ public static final int CLASS_VULNERABILITY_FINDING = 2002;
+ public static final int CLASS_COMPLIANCE_FINDING = 2003;
+ public static final int CLASS_DETECTION_FINDING = 2004;
+ public static final int CLASS_INCIDENT_FINDING = 2005;
+ public static final int CLASS_DATA_SECURITY_FINDING = 2006;
+
+ // OCSF Event Class UIDs - IAM Category
+ public static final int CLASS_ACCOUNT_CHANGE = 3001;
+ public static final int CLASS_AUTHENTICATION = 3002;
+ public static final int CLASS_AUTHORIZE_SESSION = 3003;
+ public static final int CLASS_ENTITY_MANAGEMENT = 3004;
+ public static final int CLASS_USER_ACCESS_MANAGEMENT = 3005;
+ public static final int CLASS_GROUP_MANAGEMENT = 3006;
+
+ // OCSF Event Class UIDs - Network Activity Category
+ public static final int CLASS_NETWORK_ACTIVITY = 4001;
+ public static final int CLASS_HTTP_ACTIVITY = 4002;
+ public static final int CLASS_DNS_ACTIVITY = 4003;
+ public static final int CLASS_DHCP_ACTIVITY = 4004;
+ public static final int CLASS_SSH_ACTIVITY = 4007;
+
+ // OCSF Severity IDs
+ public static final int SEVERITY_UNKNOWN = 0;
+ public static final int SEVERITY_INFORMATIONAL = 1;
+ public static final int SEVERITY_LOW = 2;
+ public static final int SEVERITY_MEDIUM = 3;
+ public static final int SEVERITY_HIGH = 4;
+ public static final int SEVERITY_CRITICAL = 5;
+ public static final int SEVERITY_FATAL = 6;
+ public static final int SEVERITY_OTHER = 99;
+
+ // OCSF Activity IDs (common)
+ public static final int ACTIVITY_UNKNOWN = 0;
+ public static final int ACTIVITY_CREATE = 1;
+ public static final int ACTIVITY_UPDATE = 2;
+ public static final int ACTIVITY_CLOSE = 3;
+ public static final int ACTIVITY_OTHER = 99;
+
+ // OCSF Status IDs
+ public static final int STATUS_UNKNOWN = 0;
+ public static final int STATUS_SUCCESS = 1;
+ public static final int STATUS_FAILURE = 2;
+ public static final int STATUS_OTHER = 99;
+
+ private OcsfConstants() {
+ }
+}
diff --git a/components/camel-ocsf/src/main/java/org/apache/camel/dataformat/ocsf/OcsfDataFormat.java b/components/camel-ocsf/src/main/java/org/apache/camel/dataformat/ocsf/OcsfDataFormat.java
new file mode 100644
index 000000000000..edb9aab6d5f8
--- /dev/null
+++ b/components/camel-ocsf/src/main/java/org/apache/camel/dataformat/ocsf/OcsfDataFormat.java
@@ -0,0 +1,456 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.dataformat.ocsf;
+
+import java.io.File;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.io.Reader;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.Set;
+
+import com.fasterxml.jackson.databind.DeserializationFeature;
+import com.fasterxml.jackson.databind.JsonNode;
+import com.fasterxml.jackson.databind.MapperFeature;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.ObjectReader;
+import com.fasterxml.jackson.databind.SerializationFeature;
+import com.fasterxml.jackson.databind.type.CollectionType;
+import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
+import org.apache.camel.CamelContext;
+import org.apache.camel.CamelContextAware;
+import org.apache.camel.Exchange;
+import org.apache.camel.WrappedFile;
+import org.apache.camel.dataformat.ocsf.model.OcsfEvent;
+import org.apache.camel.spi.DataFormat;
+import org.apache.camel.spi.DataFormatName;
+import org.apache.camel.spi.Metadata;
+import org.apache.camel.spi.annotations.Dataformat;
+import org.apache.camel.support.ObjectHelper;
+import org.apache.camel.support.service.ServiceSupport;
+import org.apache.camel.util.CastUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * OCSF (Open Cybersecurity Schema Framework) DataFormat.
+ * <p>
+ * Marshals POJOs to OCSF-compliant JSON and unmarshals OCSF JSON to POJOs. This data format is designed to work with
+ * security events following the OCSF schema specification.
+ *
+ * @see <a href="https://schema.ocsf.io/">OCSF Schema</a>
+ */
+@Dataformat("ocsf")
+@Metadata(excludeProperties = "library")
+public class OcsfDataFormat extends ServiceSupport implements DataFormat, DataFormatName, CamelContextAware {
+
+ private static final Logger LOG = LoggerFactory.getLogger(OcsfDataFormat.class);
+
+ private CamelContext camelContext;
+ private ObjectMapper objectMapper;
+ private String unmarshalTypeName;
+ private Class<?> unmarshalType;
+ private boolean useDefaultObjectMapper = true;
+ private boolean allowUnmarshallType;
+ private String collectionTypeName;
+ private Class<? extends Collection> collectionType;
+ private boolean useList;
+ private boolean prettyPrint;
+ private String enableFeatures;
+ private String disableFeatures;
+
+ /**
+ * Use the default Jackson {@link ObjectMapper} and {@link OcsfEvent} as unmarshal type.
+ */
+ public OcsfDataFormat() {
+ this.unmarshalType = OcsfEvent.class;
+ }
+
+ /**
+ * Use the default Jackson {@link ObjectMapper} and with a custom unmarshal type.
+ *
+ * @param unmarshalType the custom unmarshal type
+ */
+ public OcsfDataFormat(Class<?> unmarshalType) {
+ this.unmarshalType = unmarshalType;
+ }
+
+ /**
+ * Use a custom Jackson mapper and an unmarshal type.
+ *
+ * @param objectMapper the custom mapper
+ * @param unmarshalType the custom unmarshal type
+ */
+ public OcsfDataFormat(ObjectMapper objectMapper, Class<?> unmarshalType) {
+ this.objectMapper = objectMapper;
+ this.unmarshalType = unmarshalType;
+ }
+
+ @Override
+ public String getDataFormatName() {
+ return "ocsf";
+ }
+
+ @Override
+ public void marshal(Exchange exchange, Object graph, OutputStream stream) throws Exception {
+ objectMapper.writeValue(stream, graph);
+ }
+
+ @Override
+ public Object unmarshal(Exchange exchange, InputStream stream) throws Exception {
+ return unmarshal(exchange, (Object) stream);
+ }
+
+ @Override
+ public Object unmarshal(Exchange exchange, Object body) throws Exception {
+ Class<?> clazz = unmarshalType;
+ String type = null;
+
+ if (allowUnmarshallType) {
+ type = exchange.getIn().getHeader(OcsfConstants.UNMARSHAL_TYPE, String.class);
+ }
+ if (type != null) {
+ clazz = exchange.getContext().getClassResolver().resolveMandatoryClass(type);
+ }
+
+ ObjectReader reader;
+ if (collectionType != null) {
+ CollectionType collType = objectMapper.getTypeFactory().constructCollectionType(collectionType, clazz);
+ reader = objectMapper.readerFor(collType);
+ } else {
+ reader = objectMapper.readerFor(clazz);
+ }
+
+ // unwrap file (such as from camel-file)
+ if (body instanceof WrappedFile<?>) {
+ body = ((WrappedFile<?>) body).getBody();
+ }
+
+ Object answer;
+ if (body instanceof String b) {
+ answer = reader.readValue(b);
+ } else if (body instanceof byte[] arr) {
+ answer = reader.readValue(arr);
+ } else if (body instanceof Reader r) {
+ answer = reader.readValue(r);
+ } else if (body instanceof File f) {
+ answer = reader.readValue(f);
+ } else if (body instanceof JsonNode n) {
+ answer = reader.readValue(n);
+ } else {
+ // fallback to input stream
+ InputStream is = exchange.getContext().getTypeConverter().mandatoryConvertTo(InputStream.class, exchange, body);
+ answer = reader.readValue(is);
+ }
+
+ return answer;
+ }
+
+ @Override
+ public CamelContext getCamelContext() {
+ return camelContext;
+ }
+
+ @Override
+ public void setCamelContext(CamelContext camelContext) {
+ this.camelContext = camelContext;
+ }
+
+ public ObjectMapper getObjectMapper() {
+ return objectMapper;
+ }
+
+ /**
+ * Sets a custom Jackson {@link ObjectMapper} to use.
+ */
+ public void setObjectMapper(ObjectMapper objectMapper) {
+ this.objectMapper = objectMapper;
+ }
+
+ public String getUnmarshalTypeName() {
+ return unmarshalTypeName;
+ }
+
+ /**
+ * Class name of the OCSF event type to unmarshal to.
+ */
+ public void setUnmarshalTypeName(String unmarshalTypeName) {
+ this.unmarshalTypeName = unmarshalTypeName;
+ }
+
+ public Class<?> getUnmarshalType() {
+ return unmarshalType;
+ }
+
+ /**
+ * Class of the OCSF event type to unmarshal to.
+ */
+ public void setUnmarshalType(Class<?> unmarshalType) {
+ this.unmarshalType = unmarshalType;
+ }
+
+ public boolean isAllowUnmarshallType() {
+ return allowUnmarshallType;
+ }
+
+ /**
+ * If enabled, allows the unmarshal type to be specified via the {@link OcsfConstants#UNMARSHAL_TYPE} header.
+ */
+ public void setAllowUnmarshallType(boolean allowUnmarshallType) {
+ this.allowUnmarshallType = allowUnmarshallType;
+ }
+
+ public String getCollectionTypeName() {
+ return collectionTypeName;
+ }
+
+ /**
+ * Sets the collection type name to use when unmarshalling to a collection.
+ */
+ public void setCollectionTypeName(String collectionTypeName) {
+ this.collectionTypeName = collectionTypeName;
+ }
+
+ public Class<? extends Collection> getCollectionType() {
+ return collectionType;
+ }
+
+ /**
+ * Sets the collection type to use when unmarshalling to a collection.
+ */
+ public void setCollectionType(Class<? extends Collection> collectionType) {
+ this.collectionType = collectionType;
+ }
+
+ public boolean isUseList() {
+ return useList;
+ }
+
+ /**
+ * To unmarshal to a List of OCSF events.
+ */
+ public void setUseList(boolean useList) {
+ this.useList = useList;
+ }
+
+ public boolean isUseDefaultObjectMapper() {
+ return useDefaultObjectMapper;
+ }
+
+ /**
+ * Whether to look up and use a default Jackson ObjectMapper from the registry.
+ */
+ public void setUseDefaultObjectMapper(boolean useDefaultObjectMapper) {
+ this.useDefaultObjectMapper = useDefaultObjectMapper;
+ }
+
+ /**
+ * Uses {@link java.util.ArrayList} when unmarshalling.
+ */
+ public void useList() {
+ setCollectionType(ArrayList.class);
+ }
+
+ public boolean isPrettyPrint() {
+ return prettyPrint;
+ }
+
+ /**
+ * To enable pretty printing output nicely formatted.
+ */
+ public void setPrettyPrint(boolean prettyPrint) {
+ this.prettyPrint = prettyPrint;
+ }
+
+ public String getEnableFeatures() {
+ return enableFeatures;
+ }
+
+ /**
+ * Set of features to enable on the Jackson {@link ObjectMapper}. The features should be a name that matches a enum
+ * from {@link SerializationFeature}, {@link DeserializationFeature}, or {@link MapperFeature}.
+ */
+ public void setEnableFeatures(String enableFeatures) {
+ this.enableFeatures = enableFeatures;
+ }
+
+ public String getDisableFeatures() {
+ return disableFeatures;
+ }
+
+ /**
+ * Set of features to disable on the Jackson {@link ObjectMapper}. The features should be a name that matches a enum
+ * from {@link SerializationFeature}, {@link DeserializationFeature}, or {@link MapperFeature}.
+ */
+ public void setDisableFeatures(String disableFeatures) {
+ this.disableFeatures = disableFeatures;
+ }
+
+ public void enableFeature(SerializationFeature feature) {
+ if (enableFeatures == null) {
+ enableFeatures = feature.name();
+ } else {
+ enableFeatures += "," + feature.name();
+ }
+ }
+
+ public void enableFeature(DeserializationFeature feature) {
+ if (enableFeatures == null) {
+ enableFeatures = feature.name();
+ } else {
+ enableFeatures += "," + feature.name();
+ }
+ }
+
+ public void enableFeature(MapperFeature feature) {
+ if (enableFeatures == null) {
+ enableFeatures = feature.name();
+ } else {
+ enableFeatures += "," + feature.name();
+ }
+ }
+
+ public void disableFeature(SerializationFeature feature) {
+ if (disableFeatures == null) {
+ disableFeatures = feature.name();
+ } else {
+ disableFeatures += "," + feature.name();
+ }
+ }
+
+ public void disableFeature(DeserializationFeature feature) {
+ if (disableFeatures == null) {
+ disableFeatures = feature.name();
+ } else {
+ disableFeatures += "," + feature.name();
+ }
+ }
+
+ public void disableFeature(MapperFeature feature) {
+ if (disableFeatures == null) {
+ disableFeatures = feature.name();
+ } else {
+ disableFeatures += "," + feature.name();
+ }
+ }
+
+ @Override
+ protected void doInit() throws Exception {
+ super.doInit();
+
+ if (unmarshalTypeName != null && unmarshalType == null) {
+ unmarshalType = camelContext.getClassResolver().resolveClass(unmarshalTypeName);
+ }
+ if (collectionTypeName != null && collectionType == null) {
+ Class<?> clazz = camelContext.getClassResolver().resolveClass(collectionTypeName);
+ collectionType = CastUtils.cast(clazz);
+ }
+
+ if (objectMapper == null) {
+ // lookup if there is a single default mapper we can use
+ if (useDefaultObjectMapper && camelContext != null) {
+ Set<ObjectMapper> set = camelContext.getRegistry().findByType(ObjectMapper.class);
+ if (set.size() == 1) {
+ objectMapper = set.iterator().next();
+ LOG.info("Found a single ObjectMapper in the registry, so promoting it as the default ObjectMapper: {}",
+ objectMapper);
+ } else {
+ LOG.debug("Found {} ObjectMapper in the registry, so cannot promote any as the default ObjectMapper.",
+ set.size());
+ }
+ }
+ // use a fallback object mapper in last resort
+ if (objectMapper == null) {
+ objectMapper = new ObjectMapper();
+ // Configure for OCSF compatibility
+ objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
+ // Register JavaTimeModule for java.time.Instant support
+ objectMapper.registerModule(new JavaTimeModule());
+ LOG.debug("Creating new ObjectMapper to use: {}", objectMapper);
+ }
+ }
+
+ if (useList) {
+ setCollectionType(ArrayList.class);
+ }
+
+ if (prettyPrint) {
+ objectMapper.enable(SerializationFeature.INDENT_OUTPUT);
+ }
+
+ if (enableFeatures != null) {
+ Iterator<?> it = ObjectHelper.createIterator(enableFeatures);
+ while (it.hasNext()) {
+ String enable = it.next().toString();
+ // it can be different kind
+ SerializationFeature sf = getCamelContext().getTypeConverter().tryConvertTo(SerializationFeature.class, enable);
+ if (sf != null) {
+ objectMapper.enable(sf);
+ continue;
+ }
+ DeserializationFeature df
+ = getCamelContext().getTypeConverter().tryConvertTo(DeserializationFeature.class, enable);
+ if (df != null) {
+ objectMapper.enable(df);
+ continue;
+ }
+ MapperFeature mf = getCamelContext().getTypeConverter().tryConvertTo(MapperFeature.class, enable);
+ if (mf != null) {
+ objectMapper.enable(mf);
+ continue;
+ }
+ throw new IllegalArgumentException(
+ "Enable feature: " + enable
+ + " cannot be converted to an accepted enum of types [SerializationFeature,DeserializationFeature,MapperFeature]");
+ }
+ }
+ if (disableFeatures != null) {
+ Iterator<?> it = ObjectHelper.createIterator(disableFeatures);
+ while (it.hasNext()) {
+ String disable = it.next().toString();
+ // it can be different kind
+ SerializationFeature sf
+ = getCamelContext().getTypeConverter().tryConvertTo(SerializationFeature.class, disable);
+ if (sf != null) {
+ objectMapper.disable(sf);
+ continue;
+ }
+ DeserializationFeature df
+ = getCamelContext().getTypeConverter().tryConvertTo(DeserializationFeature.class, disable);
+ if (df != null) {
+ objectMapper.disable(df);
+ continue;
+ }
+ MapperFeature mf = getCamelContext().getTypeConverter().tryConvertTo(MapperFeature.class, disable);
+ if (mf != null) {
+ objectMapper.disable(mf);
+ continue;
+ }
+ throw new IllegalArgumentException(
+ "Disable feature: " + disable
+ + " cannot be converted to an accepted enum of types [SerializationFeature,DeserializationFeature,MapperFeature]");
+ }
+ }
+ }
+
+ @Override
+ protected void doStop() throws Exception {
+ // noop
+ }
+}
diff --git a/components/camel-ocsf/src/main/resources/schema/Account.json b/components/camel-ocsf/src/main/resources/schema/Account.json
new file mode 100644
index 000000000000..68817da60f12
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Account.json
@@ -0,0 +1,42 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/account",
+ "title": "Account",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Account",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "type": {
+ "type": "string",
+ "title": "Type"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "labels": {
+ "type": "array",
+ "title": "Labels",
+ "items": {
+ "type": "string"
+ }
+ },
+ "tags": {
+ "type": "array",
+ "title": "Tags",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "type_id": {
+ "type": "integer",
+ "title": "Type ID"
+ }
+ },
+ "description": "The Account object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/AccountChange.json b/components/camel-ocsf/src/main/resources/schema/AccountChange.json
new file mode 100644
index 000000000000..98833cb41864
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/AccountChange.json
@@ -0,0 +1,65 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/account_change",
+ "title": "AccountChange",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.AccountChange",
+ "additionalProperties": true,
+ "description": "AccountChange event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "actor": {
+ "$ref": "Actor.json"
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "http_response": {
+ "$ref": "HttpResponse.json"
+ },
+ "policies": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Policy.json"
+ }
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "http_request": {
+ "$ref": "HttpRequest.json"
+ },
+ "src_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "user": {
+ "$ref": "User.json"
+ },
+ "auth_factors": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "AuthFactor.json"
+ }
+ },
+ "user_result": {
+ "$ref": "User.json"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "policy": {
+ "$ref": "Policy.json"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Actor.json b/components/camel-ocsf/src/main/resources/schema/Actor.json
new file mode 100644
index 000000000000..3015eae55ba0
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Actor.json
@@ -0,0 +1,42 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/actor",
+ "title": "Actor",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Actor",
+ "additionalProperties": true,
+ "properties": {
+ "process": {
+ "$ref": "Process.json"
+ },
+ "session": {
+ "$ref": "Session.json"
+ },
+ "user": {
+ "$ref": "User.json"
+ },
+ "app_name": {
+ "type": "string",
+ "title": "Application Name"
+ },
+ "app_uid": {
+ "type": "string",
+ "title": "Application ID"
+ },
+ "authorizations": {
+ "type": "array",
+ "title": "Authorization Information",
+ "items": {
+ "$ref": "Authorization.json"
+ }
+ },
+ "idp": {
+ "$ref": "Idp.json"
+ },
+ "invoked_by": {
+ "type": "string",
+ "title": "Invoked by"
+ }
+ },
+ "description": "The Actor object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Agent.json b/components/camel-ocsf/src/main/resources/schema/Agent.json
new file mode 100644
index 000000000000..73e07c321d09
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Agent.json
@@ -0,0 +1,46 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/agent",
+ "title": "Agent",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Agent",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Agent Name"
+ },
+ "type": {
+ "type": "string",
+ "title": "Agent Type"
+ },
+ "version": {
+ "type": "string",
+ "title": "Agent Version"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Agent ID"
+ },
+ "type_id": {
+ "type": "integer",
+ "title": "Type ID"
+ },
+ "policies": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Policy.json"
+ }
+ },
+ "uid_alt": {
+ "type": "string",
+ "title": "Alternate Agent ID"
+ },
+ "vendor_name": {
+ "type": "string",
+ "title": "Vendor Name"
+ }
+ },
+ "description": "The Agent object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Analytic.json b/components/camel-ocsf/src/main/resources/schema/Analytic.json
new file mode 100644
index 000000000000..747d7fd3a3e4
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Analytic.json
@@ -0,0 +1,58 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/analytic",
+ "title": "Analytic",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Analytic",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "type": {
+ "type": "string",
+ "title": "Type"
+ },
+ "version": {
+ "type": "string",
+ "title": "Version"
+ },
+ "state": {
+ "type": "string",
+ "title": "State"
+ },
+ "desc": {
+ "type": "string",
+ "title": "Description"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "category": {
+ "type": "string",
+ "title": "Category"
+ },
+ "algorithm": {
+ "type": "string",
+ "title": "Algorithm"
+ },
+ "type_id": {
+ "type": "integer",
+ "title": "Type ID"
+ },
+ "related_analytics": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Analytic.json"
+ }
+ },
+ "state_id": {
+ "type": "integer",
+ "title": "State ID"
+ }
+ },
+ "description": "The Analytic object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Api.json b/components/camel-ocsf/src/main/resources/schema/Api.json
new file mode 100644
index 000000000000..7bfd5daa2734
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Api.json
@@ -0,0 +1,31 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/api",
+ "title": "Api",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Api",
+ "additionalProperties": true,
+ "properties": {
+ "version": {
+ "type": "string",
+ "title": "Version"
+ },
+ "request": {
+ "$ref": "Request.json"
+ },
+ "service": {
+ "$ref": "Service.json"
+ },
+ "group": {
+ "$ref": "Group.json"
+ },
+ "response": {
+ "$ref": "Response.json"
+ },
+ "operation": {
+ "type": "string",
+ "title": "Operation"
+ }
+ },
+ "description": "The API object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/ApiActivity.json b/components/camel-ocsf/src/main/resources/schema/ApiActivity.json
new file mode 100644
index 000000000000..4a270707fba0
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/ApiActivity.json
@@ -0,0 +1,55 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/api_activity",
+ "title": "ApiActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.ApiActivity",
+ "additionalProperties": true,
+ "description": "ApiActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "actor": {
+ "$ref": "Actor.json"
+ },
+ "resources": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "ResourceDetails.json"
+ }
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "http_response": {
+ "$ref": "HttpResponse.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "http_request": {
+ "$ref": "HttpRequest.json"
+ },
+ "api": {
+ "$ref": "Api.json"
+ },
+ "src_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "dst_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Attack.json b/components/camel-ocsf/src/main/resources/schema/Attack.json
new file mode 100644
index 000000000000..08e4c8a9b755
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Attack.json
@@ -0,0 +1,35 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/attack",
+ "title": "Attack",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Attack",
+ "additionalProperties": true,
+ "properties": {
+ "version": {
+ "type": "string",
+ "title": "Version"
+ },
+ "tactics": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Tactic.json"
+ }
+ },
+ "technique": {
+ "$ref": "Technique.json"
+ },
+ "mitigation": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "sub_technique": {
+ "$ref": "SubTechnique.json"
+ },
+ "tactic": {
+ "$ref": "Tactic.json"
+ }
+ },
+ "description": "The MITRE ATT&CK\u00ae & ATLAS\u2122 object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/AuthFactor.json b/components/camel-ocsf/src/main/resources/schema/AuthFactor.json
new file mode 100644
index 000000000000..be09be009e2f
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/AuthFactor.json
@@ -0,0 +1,50 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/auth_factor",
+ "title": "AuthFactor",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.AuthFactor",
+ "additionalProperties": true,
+ "properties": {
+ "device": {
+ "$ref": "Device.json"
+ },
+ "email_addr": {
+ "type": "string",
+ "title": "Email Address",
+ "pattern": "^[a-zA-Z0-9!#$%&'*+-/=?^_`{|}~.]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$"
+ },
+ "factor_type": {
+ "type": "string",
+ "title": "Factor Type"
+ },
+ "factor_type_id": {
+ "type": "integer",
+ "title": "Factor Type ID"
+ },
+ "is_hotp": {
+ "type": "boolean",
+ "title": "HMAC-based One-time Password (HOTP)"
+ },
+ "is_totp": {
+ "type": "boolean",
+ "title": "Time-based One-time Password (TOTP)"
+ },
+ "phone_number": {
+ "type": "string",
+ "title": "Phone Number"
+ },
+ "provider": {
+ "type": "string",
+ "title": "Provider"
+ },
+ "security_questions": {
+ "type": "array",
+ "title": "Security Questions",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "description": "The Authentication Factor object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Authentication.json b/components/camel-ocsf/src/main/resources/schema/Authentication.json
new file mode 100644
index 000000000000..e73fb6773219
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Authentication.json
@@ -0,0 +1,111 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/authentication",
+ "title": "Authentication",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Authentication",
+ "additionalProperties": true,
+ "description": "Authentication event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "account_switch_type_id": {
+ "type": "integer",
+ "title": "Account Switch Type ID"
+ },
+ "actor": {
+ "$ref": "Actor.json"
+ },
+ "service": {
+ "$ref": "Service.json"
+ },
+ "auth_protocol_id": {
+ "type": "integer",
+ "title": "Auth Protocol ID"
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "http_response": {
+ "$ref": "HttpResponse.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "logon_process": {
+ "$ref": "Process.json"
+ },
+ "http_request": {
+ "$ref": "HttpRequest.json"
+ },
+ "src_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "is_mfa": {
+ "type": "boolean",
+ "title": "Multi Factor Authentication"
+ },
+ "user": {
+ "$ref": "User.json"
+ },
+ "session": {
+ "$ref": "Session.json"
+ },
+ "auth_factors": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "AuthFactor.json"
+ }
+ },
+ "logon_type": {
+ "type": "string",
+ "title": "Logon Type"
+ },
+ "dst_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "certificate": {
+ "$ref": "Certificate.json"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "logon_type_id": {
+ "type": "integer",
+ "title": "Logon Type ID"
+ },
+ "is_remote": {
+ "type": "boolean",
+ "title": "Remote"
+ },
+ "is_new_logon": {
+ "type": "boolean",
+ "title": "New Logon"
+ },
+ "authentication_token": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "auth_protocol": {
+ "type": "string",
+ "title": "Auth Protocol"
+ },
+ "account_switch_type": {
+ "type": "string",
+ "title": "Account Switch Type"
+ },
+ "is_cleartext": {
+ "type": "boolean",
+ "title": "Cleartext Credentials"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Authorization.json b/components/camel-ocsf/src/main/resources/schema/Authorization.json
new file mode 100644
index 000000000000..28737d7bedd4
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Authorization.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/authorization",
+ "title": "Authorization",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Authorization",
+ "additionalProperties": true,
+ "properties": {
+ "decision": {
+ "type": "string",
+ "title": "Authorization Decision/Outcome"
+ },
+ "policy": {
+ "$ref": "Policy.json"
+ }
+ },
+ "description": "The Authorization Result object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/AuthorizeSession.json b/components/camel-ocsf/src/main/resources/schema/AuthorizeSession.json
new file mode 100644
index 000000000000..0d9959f31ac9
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/AuthorizeSession.json
@@ -0,0 +1,61 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/authorize_session",
+ "title": "AuthorizeSession",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.AuthorizeSession",
+ "additionalProperties": true,
+ "description": "AuthorizeSession event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "privileges": {
+ "type": "array",
+ "title": "Privileges",
+ "items": {
+ "type": "string"
+ }
+ },
+ "actor": {
+ "$ref": "Actor.json"
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "http_response": {
+ "$ref": "HttpResponse.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "http_request": {
+ "$ref": "HttpRequest.json"
+ },
+ "src_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "group": {
+ "$ref": "Group.json"
+ },
+ "user": {
+ "$ref": "User.json"
+ },
+ "session": {
+ "$ref": "Session.json"
+ },
+ "dst_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Certificate.json b/components/camel-ocsf/src/main/resources/schema/Certificate.json
new file mode 100644
index 000000000000..5fde79d965cf
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Certificate.json
@@ -0,0 +1,59 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/certificate",
+ "title": "Certificate",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Certificate",
+ "additionalProperties": true,
+ "properties": {
+ "version": {
+ "type": "string",
+ "title": "Version"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "is_self_signed": {
+ "type": "boolean",
+ "title": "Certificate Self-Signed"
+ },
+ "subject": {
+ "type": "string",
+ "title": "Subject Distinguished Name"
+ },
+ "issuer": {
+ "type": "string",
+ "title": "Issuer Distinguished Name"
+ },
+ "fingerprints": {
+ "type": "array",
+ "title": "Fingerprints",
+ "items": {
+ "$ref": "Fingerprint.json"
+ }
+ },
+ "created_time": {
+ "type": "integer",
+ "title": "Created Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "expiration_time": {
+ "type": "integer",
+ "title": "Expiration Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "sans": {
+ "type": "array",
+ "title": "Subject Alternative Names",
+ "items": {
+ "$ref": "San.json"
+ }
+ },
+ "serial_number": {
+ "type": "string",
+ "title": "Certificate Serial Number"
+ }
+ },
+ "description": "The Digital Certificate object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Cloud.json b/components/camel-ocsf/src/main/resources/schema/Cloud.json
new file mode 100644
index 000000000000..3cbbca66517b
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Cloud.json
@@ -0,0 +1,37 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/cloud",
+ "title": "Cloud",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Cloud",
+ "additionalProperties": true,
+ "properties": {
+ "org": {
+ "$ref": "Organization.json"
+ },
+ "account": {
+ "$ref": "Account.json"
+ },
+ "cloud_partition": {
+ "type": "string",
+ "title": "Cloud Partition"
+ },
+ "project_uid": {
+ "type": "string",
+ "title": "Project ID"
+ },
+ "provider": {
+ "type": "string",
+ "title": "Provider"
+ },
+ "region": {
+ "type": "string",
+ "title": "Region"
+ },
+ "zone": {
+ "type": "string",
+ "title": "Cloud Availability Zone"
+ }
+ },
+ "description": "The Cloud object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Compliance.json b/components/camel-ocsf/src/main/resources/schema/Compliance.json
new file mode 100644
index 000000000000..404b6060651f
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Compliance.json
@@ -0,0 +1,98 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/compliance",
+ "title": "Compliance",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Compliance",
+ "additionalProperties": true,
+ "properties": {
+ "control": {
+ "type": "string",
+ "title": "Security Control"
+ },
+ "status": {
+ "type": "string",
+ "title": "Status"
+ },
+ "desc": {
+ "type": "string",
+ "title": "Description"
+ },
+ "category": {
+ "type": "string",
+ "title": "Category"
+ },
+ "assessments": {
+ "type": "array",
+ "title": "Assessments",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "checks": {
+ "type": "array",
+ "title": "Compliance Checks",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "compliance_references": {
+ "type": "array",
+ "title": "Compliance Standard References",
+ "items": {
+ "$ref": "KbArticle.json"
+ }
+ },
+ "compliance_standards": {
+ "type": "array",
+ "title": "Compliance Standards: Details",
+ "items": {
+ "$ref": "KbArticle.json"
+ }
+ },
+ "control_parameters": {
+ "type": "array",
+ "title": "Control Parameters",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "requirements": {
+ "type": "array",
+ "title": "Compliance Requirements",
+ "items": {
+ "type": "string"
+ }
+ },
+ "standards": {
+ "type": "array",
+ "title": "Compliance Standards: List",
+ "items": {
+ "type": "string"
+ }
+ },
+ "status_code": {
+ "type": "string",
+ "title": "Status Code"
+ },
+ "status_detail": {
+ "type": "string",
+ "title": "Status Detail"
+ },
+ "status_details": {
+ "type": "array",
+ "title": "Status Details",
+ "items": {
+ "type": "string"
+ }
+ },
+ "status_id": {
+ "type": "integer",
+ "title": "Status ID"
+ }
+ },
+ "description": "The Compliance object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/ComplianceFinding.json b/components/camel-ocsf/src/main/resources/schema/ComplianceFinding.json
new file mode 100644
index 000000000000..673020b34c98
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/ComplianceFinding.json
@@ -0,0 +1,79 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/compliance_finding",
+ "title": "ComplianceFinding",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.ComplianceFinding",
+ "additionalProperties": true,
+ "description": "ComplianceFinding event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "resources": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "ResourceDetails.json"
+ }
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "finding_info": {
+ "$ref": "FindingInfo.json"
+ },
+ "device": {
+ "$ref": "Device.json"
+ },
+ "evidences": {
+ "type": "array",
+ "title": "Evidence Artifacts",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "confidence_score": {
+ "type": "integer",
+ "title": "Confidence Score"
+ },
+ "confidence_id": {
+ "type": "integer",
+ "title": "Confidence ID"
+ },
+ "comment": {
+ "type": "string",
+ "title": "Comment"
+ },
+ "remediation": {
+ "$ref": "Remediation.json"
+ },
+ "resource": {
+ "$ref": "ResourceDetails.json"
+ },
+ "vendor_attributes": {
+ "$ref": "VendorAttributes.json"
+ },
+ "compliance": {
+ "$ref": "Compliance.json"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "confidence": {
+ "type": "string",
+ "title": "Confidence"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Container.json b/components/camel-ocsf/src/main/resources/schema/Container.json
new file mode 100644
index 000000000000..93a2b8307af3
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Container.json
@@ -0,0 +1,65 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/container",
+ "title": "Container",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Container",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "runtime": {
+ "type": "string",
+ "title": "Runtime"
+ },
+ "size": {
+ "type": "integer",
+ "title": "Size"
+ },
+ "tag": {
+ "type": "string",
+ "title": "Image Tag"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "image": {
+ "$ref": "Image.json"
+ },
+ "hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "labels": {
+ "type": "array",
+ "title": "Labels",
+ "items": {
+ "type": "string"
+ }
+ },
+ "tags": {
+ "type": "array",
+ "title": "Tags",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "network_driver": {
+ "type": "string",
+ "title": "Network Driver"
+ },
+ "orchestrator": {
+ "type": "string",
+ "title": "Orchestrator"
+ },
+ "pod_uuid": {
+ "type": "string",
+ "title": "Pod UUID",
+ "pattern": "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"
+ }
+ },
+ "description": "The Container object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Cve.json b/components/camel-ocsf/src/main/resources/schema/Cve.json
new file mode 100644
index 000000000000..93e90af84be8
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Cve.json
@@ -0,0 +1,75 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/cve",
+ "title": "Cve",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Cve",
+ "additionalProperties": true,
+ "properties": {
+ "type": {
+ "type": "string",
+ "title": "Vulnerability Type"
+ },
+ "title": {
+ "type": "string",
+ "title": "Title"
+ },
+ "product": {
+ "$ref": "Product.json"
+ },
+ "desc": {
+ "type": "string",
+ "title": "Description"
+ },
+ "uid": {
+ "type": "string",
+ "title": "CVE ID"
+ },
+ "references": {
+ "type": "array",
+ "title": "References",
+ "items": {
+ "type": "string"
+ }
+ },
+ "created_time": {
+ "type": "integer",
+ "title": "Created Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "cvss": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Cvss.json"
+ }
+ },
+ "cwe": {
+ "$ref": "Cwe.json"
+ },
+ "cwe_uid": {
+ "type": "string",
+ "title": "CWE UID"
+ },
+ "cwe_url": {
+ "type": "string",
+ "title": "CWE URL"
+ },
+ "epss": {
+ "$ref": "Epss.json"
+ },
+ "modified_time": {
+ "type": "integer",
+ "title": "Modified Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "related_cwes": {
+ "type": "array",
+ "title": "Related CWEs",
+ "items": {
+ "$ref": "Cwe.json"
+ }
+ }
+ },
+ "description": "The CVE object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Cvss.json b/components/camel-ocsf/src/main/resources/schema/Cvss.json
new file mode 100644
index 000000000000..489ddd9aea3b
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Cvss.json
@@ -0,0 +1,56 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/cvss",
+ "title": "Cvss",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Cvss",
+ "additionalProperties": true,
+ "properties": {
+ "version": {
+ "type": "string",
+ "title": "Version"
+ },
+ "depth": {
+ "type": "string",
+ "title": "CVSS Depth",
+ "enum": [
+ "Base",
+ "Environmental",
+ "Temporal"
+ ]
+ },
+ "severity": {
+ "type": "string",
+ "title": "Severity"
+ },
+ "metrics": {
+ "type": "array",
+ "title": "Metrics",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "base_score": {
+ "type": "number",
+ "title": "Base Score"
+ },
+ "overall_score": {
+ "type": "number",
+ "title": "Overall Score"
+ },
+ "src_url": {
+ "type": "string",
+ "title": "Source URL"
+ },
+ "vector_string": {
+ "type": "string",
+ "title": "Vector String"
+ },
+ "vendor_name": {
+ "type": "string",
+ "title": "Vendor Name"
+ }
+ },
+ "description": "The CVSS Score object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Cwe.json b/components/camel-ocsf/src/main/resources/schema/Cwe.json
new file mode 100644
index 000000000000..c601acb1762d
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Cwe.json
@@ -0,0 +1,23 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/cwe",
+ "title": "Cwe",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Cwe",
+ "additionalProperties": true,
+ "properties": {
+ "uid": {
+ "type": "string",
+ "title": "CWE ID"
+ },
+ "caption": {
+ "type": "string",
+ "title": "Caption"
+ },
+ "src_url": {
+ "type": "string",
+ "title": "Source URL"
+ }
+ },
+ "description": "The CWE object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/DatastoreActivity.json b/components/camel-ocsf/src/main/resources/schema/DatastoreActivity.json
new file mode 100644
index 000000000000..272afe14d8e7
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/DatastoreActivity.json
@@ -0,0 +1,69 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/datastore_activity",
+ "title": "DatastoreActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.DatastoreActivity",
+ "additionalProperties": true,
+ "description": "DatastoreActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "actor": {
+ "$ref": "Actor.json"
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "http_response": {
+ "$ref": "HttpResponse.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "http_request": {
+ "$ref": "HttpRequest.json"
+ },
+ "src_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "databucket": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "type_id": {
+ "type": "integer",
+ "title": "Datastore Type ID"
+ },
+ "dst_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "database": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "query_info": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "type": {
+ "type": "string",
+ "title": "Datastore Type"
+ },
+ "table": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/DetectionFinding.json b/components/camel-ocsf/src/main/resources/schema/DetectionFinding.json
new file mode 100644
index 000000000000..9853fdf4b53e
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/DetectionFinding.json
@@ -0,0 +1,131 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/detection_finding",
+ "title": "DetectionFinding",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.DetectionFinding",
+ "additionalProperties": true,
+ "description": "DetectionFinding event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "impact": {
+ "type": "string",
+ "title": "Impact"
+ },
+ "resources": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "ResourceDetails.json"
+ }
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "risk_score": {
+ "type": "integer",
+ "title": "Risk Score"
+ },
+ "finding_info": {
+ "$ref": "FindingInfo.json"
+ },
+ "malware_scan_info": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "device": {
+ "$ref": "Device.json"
+ },
+ "evidences": {
+ "type": "array",
+ "title": "Evidence Artifacts",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "confidence_score": {
+ "type": "integer",
+ "title": "Confidence Score"
+ },
+ "impact_id": {
+ "type": "integer",
+ "title": "Impact ID"
+ },
+ "malware": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Malware.json"
+ }
+ },
+ "confidence_id": {
+ "type": "integer",
+ "title": "Confidence ID"
+ },
+ "comment": {
+ "type": "string",
+ "title": "Comment"
+ },
+ "is_alert": {
+ "type": "boolean",
+ "title": "Alert"
+ },
+ "remediation": {
+ "$ref": "Remediation.json"
+ },
+ "risk_details": {
+ "type": "string",
+ "title": "Risk Details"
+ },
+ "vulnerabilities": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Vulnerability.json"
+ }
+ },
+ "vendor_attributes": {
+ "$ref": "VendorAttributes.json"
+ },
+ "risk_level_id": {
+ "type": "integer",
+ "title": "Risk Level ID"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "impact_score": {
+ "type": "integer",
+ "title": "Impact Score"
+ },
+ "confidence": {
+ "type": "string",
+ "title": "Confidence"
+ },
+ "anomaly_analyses": {
+ "type": "array",
+ "title": "Anomaly Analyses",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "risk_level": {
+ "type": "string",
+ "title": "Risk Level"
+ }
+ }
+}
diff --git a/components/camel-ocsf/src/main/resources/schema/Device.json b/components/camel-ocsf/src/main/resources/schema/Device.json
new file mode 100644
index 000000000000..df081f1f9e96
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Device.json
@@ -0,0 +1,250 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/device",
+ "title": "Device",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Device",
+ "additionalProperties": true,
+ "properties": {
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "desc": {
+ "type": "string",
+ "title": "Description"
+ },
+ "is_backed_up": {
+ "type": "boolean",
+ "title": "Back Ups Configured"
+ },
+ "is_managed": {
+ "type": "boolean",
+ "title": "Managed Device"
+ },
+ "location": {
+ "$ref": "Location.json"
+ },
+ "org": {
+ "$ref": "Organization.json"
+ },
+ "risk_score": {
+ "type": "integer",
+ "title": "Risk Score"
+ },
+ "interface_name": {
+ "type": "string",
+ "title": "Network Interface Name"
+ },
+ "hypervisor": {
+ "type": "string",
+ "title": "Hypervisor"
+ },
+ "eid": {
+ "type": "string",
+ "title": "EID"
+ },
+ "image": {
+ "$ref": "Image.json"
+ },
+ "zone": {
+ "type": "string",
+ "title": "Network Zone"
+ },
+ "subnet_uid": {
+ "type": "string",
+ "title": "Subnet UID"
+ },
+ "iccid": {
+ "type": "string",
+ "title": "ICCID"
+ },
+ "mac": {
+ "type": "string",
+ "title": "MAC Address",
+ "pattern": "^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"
+ },
+ "created_time": {
+ "type": "integer",
+ "title": "Created Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "network_interfaces": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "NetworkInterface.json"
+ }
+ },
+ "model": {
+ "type": "string",
+ "title": "Model"
+ },
+ "owner": {
+ "$ref": "User.json"
+ },
+ "os_machine_uuid": {
+ "type": "string",
+ "title": "OS Machine UUID",
+ "pattern": "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"
+ },
+ "os": {
+ "$ref": "Os.json"
+ },
+ "vlan_uid": {
+ "type": "string",
+ "title": "VLAN"
+ },
+ "meid": {
+ "type": "string",
+ "title": "MEID"
+ },
+ "vpc_uid": {
+ "type": "string",
+ "title": "VPC UID"
+ },
+ "boot_time": {
+ "type": "integer",
+ "title": "Boot Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "is_compliant": {
+ "type": "boolean",
+ "title": "Compliant Device"
+ },
+ "is_personal": {
+ "type": "boolean",
+ "title": "Personal Device"
+ },
+ "ip": {
+ "type": "string",
+ "title": "IP Address",
+ "pattern": "((^\\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\\s*$)|(^\\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa- [...]
+ },
+ "is_supervised": {
+ "type": "boolean",
+ "title": "Supervised Device"
+ },
+ "first_seen_time": {
+ "type": "integer",
+ "title": "First Seen",
+ "existingJavaType": "java.lang.Long"
+ },
+ "uid_alt": {
+ "type": "string",
+ "title": "Alternate ID"
+ },
+ "type_id": {
+ "type": "integer",
+ "title": "Type ID"
+ },
+ "imei": {
+ "type": "string",
+ "title": "IMEI"
+ },
+ "autoscale_uid": {
+ "type": "string",
+ "title": "Autoscale UID"
+ },
+ "groups": {
+ "type": "array",
+ "title": "Groups",
+ "items": {
+ "$ref": "Group.json"
+ }
+ },
+ "agent_list": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Agent.json"
+ }
+ },
+ "hw_info": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "domain": {
+ "type": "string",
+ "title": "Domain"
+ },
+ "instance_uid": {
+ "type": "string",
+ "title": "Instance ID"
+ },
+ "subnet": {
+ "type": "string",
+ "title": "Subnet"
+ },
+ "is_mobile_account_active": {
+ "type": "boolean",
+ "title": "Mobile Account Active"
+ },
+ "risk_level_id": {
+ "type": "integer",
+ "title": "Risk Level ID"
+ },
+ "modified_time": {
+ "type": "integer",
+ "title": "Modified Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "last_seen_time": {
+ "type": "integer",
+ "title": "Last Seen",
+ "existingJavaType": "java.lang.Long"
+ },
+ "udid": {
+ "type": "string",
+ "title": "Unique Device Identifier"
+ },
+ "region": {
+ "type": "string",
+ "title": "Region"
+ },
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "boot_uid": {
+ "type": "string",
+ "title": "Boot UID"
+ },
+ "is_shared": {
+ "type": "boolean",
+ "title": "Shared Device"
+ },
+ "is_trusted": {
+ "type": "boolean",
+ "title": "Trusted Device"
+ },
+ "interface_uid": {
+ "type": "string",
+ "title": "Network Interface ID"
+ },
+ "type": {
+ "type": "string",
+ "title": "Type"
+ },
+ "imei_list": {
+ "type": "array",
+ "title": "IMEI List",
+ "items": {
+ "type": "string"
+ }
+ },
+ "vendor_name": {
+ "type": "string",
+ "title": "Vendor Name"
+ },
+ "risk_level": {
+ "type": "string",
+ "title": "Risk Level"
+ },
+ "hostname": {
+ "type": "string",
+ "title": "Hostname"
+ }
+ },
+ "description": "The Device object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/DhcpActivity.json b/components/camel-ocsf/src/main/resources/schema/DhcpActivity.json
new file mode 100644
index 000000000000..0f20bdefe3f9
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/DhcpActivity.json
@@ -0,0 +1,89 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/dhcp_activity",
+ "title": "DhcpActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.DhcpActivity",
+ "additionalProperties": true,
+ "description": "DhcpActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "cumulative_traffic": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "connection_info": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "relay": {
+ "$ref": "NetworkInterface.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "traffic": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "src_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "app_name": {
+ "type": "string",
+ "title": "Application Name"
+ },
+ "transaction_uid": {
+ "type": "string",
+ "title": "Transaction UID"
+ },
+ "is_renewal": {
+ "type": "boolean",
+ "title": "Renewal"
+ },
+ "lease_dur": {
+ "type": "integer",
+ "title": "Lease Duration"
+ },
+ "dst_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "ja4_fingerprint_list": {
+ "type": "array",
+ "title": "JA4+ Fingerprints",
+ "items": {
+ "$ref": "Ja4Fingerprint.json"
+ }
+ },
+ "observation_point_id": {
+ "type": "integer",
+ "title": "Observation Point ID"
+ },
+ "proxy": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "observation_point": {
+ "type": "string",
+ "title": "Observation Point"
+ },
+ "tls": {
+ "$ref": "Tls.json"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Display.json b/components/camel-ocsf/src/main/resources/schema/Display.json
new file mode 100644
index 000000000000..0806e1450caa
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Display.json
@@ -0,0 +1,31 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/display",
+ "title": "Display",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Display",
+ "additionalProperties": true,
+ "properties": {
+ "color_depth": {
+ "type": "integer",
+ "title": "Color Depth"
+ },
+ "physical_height": {
+ "type": "integer",
+ "title": "Physical Height"
+ },
+ "physical_orientation": {
+ "type": "integer",
+ "title": "Physical Orientation"
+ },
+ "physical_width": {
+ "type": "integer",
+ "title": "Physical Width"
+ },
+ "scale_factor": {
+ "type": "integer",
+ "title": "Scale Factor"
+ }
+ },
+ "description": "The Display object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/DnsActivity.json b/components/camel-ocsf/src/main/resources/schema/DnsActivity.json
new file mode 100644
index 000000000000..7fa54da8703f
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/DnsActivity.json
@@ -0,0 +1,103 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/dns_activity",
+ "title": "DnsActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.DnsActivity",
+ "additionalProperties": true,
+ "description": "DnsActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "cumulative_traffic": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "connection_info": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "traffic": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "rcode_id": {
+ "type": "integer",
+ "title": "Response Code ID"
+ },
+ "answers": {
+ "type": "array",
+ "title": "DNS Answer",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "src_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "app_name": {
+ "type": "string",
+ "title": "Application Name"
+ },
+ "query": {
+ "$ref": "DnsQuery.json"
+ },
+ "dst_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "response_time": {
+ "type": "integer",
+ "title": "Response Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "rcode": {
+ "type": "string",
+ "title": "Response Code"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "ja4_fingerprint_list": {
+ "type": "array",
+ "title": "JA4+ Fingerprints",
+ "items": {
+ "$ref": "Ja4Fingerprint.json"
+ }
+ },
+ "observation_point_id": {
+ "type": "integer",
+ "title": "Observation Point ID"
+ },
+ "query_time": {
+ "type": "integer",
+ "title": "Query Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "proxy": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "observation_point": {
+ "type": "string",
+ "title": "Observation Point"
+ },
+ "tls": {
+ "$ref": "Tls.json"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/DnsQuery.json b/components/camel-ocsf/src/main/resources/schema/DnsQuery.json
new file mode 100644
index 000000000000..273a77d99efc
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/DnsQuery.json
@@ -0,0 +1,35 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/dns_query",
+ "title": "DnsQuery",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.DnsQuery",
+ "additionalProperties": true,
+ "properties": {
+ "type": {
+ "type": "string",
+ "title": "Resource Record Type"
+ },
+ "hostname": {
+ "type": "string",
+ "title": "Hostname"
+ },
+ "class": {
+ "type": "string",
+ "title": "Resource Record Class"
+ },
+ "opcode": {
+ "type": "string",
+ "title": "DNS Opcode"
+ },
+ "opcode_id": {
+ "type": "integer",
+ "title": "DNS Opcode ID"
+ },
+ "packet_uid": {
+ "type": "integer",
+ "title": "Packet UID"
+ }
+ },
+ "description": "The DNS Query object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/EmailActivity.json b/components/camel-ocsf/src/main/resources/schema/EmailActivity.json
new file mode 100644
index 000000000000..4159a7572275
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/EmailActivity.json
@@ -0,0 +1,89 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/email_activity",
+ "title": "EmailActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.EmailActivity",
+ "additionalProperties": true,
+ "description": "EmailActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "email": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "protocol_name": {
+ "type": "string",
+ "title": "Protocol Name"
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "attempt": {
+ "type": "integer",
+ "title": "Attempt"
+ },
+ "smtp_hello": {
+ "type": "string",
+ "title": "SMTP Hello"
+ },
+ "message_trace_uid": {
+ "type": "string",
+ "title": "Message Trace UID"
+ },
+ "direction": {
+ "type": "string",
+ "title": "Direction"
+ },
+ "from": {
+ "type": "string",
+ "title": "From",
+ "pattern": "^[a-zA-Z0-9!#$%&'*+-/=?^_`{|}~.]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$"
+ },
+ "src_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "command": {
+ "type": "string",
+ "title": "Command"
+ },
+ "to": {
+ "type": "array",
+ "title": "To",
+ "items": {
+ "type": "string",
+ "pattern": "^[a-zA-Z0-9!#$%&'*+-/=?^_`{|}~.]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$"
+ }
+ },
+ "banner": {
+ "type": "string",
+ "title": "Protocol Banner"
+ },
+ "dst_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "direction_id": {
+ "type": "integer",
+ "title": "Direction ID"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "email_auth": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Endpoint.json b/components/camel-ocsf/src/main/resources/schema/Endpoint.json
new file mode 100644
index 000000000000..244061bbc841
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Endpoint.json
@@ -0,0 +1,93 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/endpoint",
+ "title": "Endpoint",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Endpoint",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "owner": {
+ "$ref": "User.json"
+ },
+ "type": {
+ "type": "string",
+ "title": "Type"
+ },
+ "os": {
+ "$ref": "Os.json"
+ },
+ "domain": {
+ "type": "string",
+ "title": "Domain"
+ },
+ "ip": {
+ "type": "string",
+ "title": "IP Address",
+ "pattern": "((^\\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\\s*$)|(^\\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa- [...]
+ },
+ "location": {
+ "$ref": "Location.json"
+ },
+ "hostname": {
+ "type": "string",
+ "title": "Hostname"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "mac": {
+ "type": "string",
+ "title": "MAC Address",
+ "pattern": "^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"
+ },
+ "type_id": {
+ "type": "integer",
+ "title": "Type ID"
+ },
+ "agent_list": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Agent.json"
+ }
+ },
+ "hw_info": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "instance_uid": {
+ "type": "string",
+ "title": "Instance ID"
+ },
+ "interface_name": {
+ "type": "string",
+ "title": "Network Interface Name"
+ },
+ "interface_uid": {
+ "type": "string",
+ "title": "Network Interface ID"
+ },
+ "subnet_uid": {
+ "type": "string",
+ "title": "Subnet UID"
+ },
+ "vlan_uid": {
+ "type": "string",
+ "title": "VLAN"
+ },
+ "vpc_uid": {
+ "type": "string",
+ "title": "VPC UID"
+ },
+ "zone": {
+ "type": "string",
+ "title": "Network Zone"
+ }
+ },
+ "description": "The Endpoint object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Enrichment.json b/components/camel-ocsf/src/main/resources/schema/Enrichment.json
new file mode 100644
index 000000000000..34a8652cf976
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Enrichment.json
@@ -0,0 +1,59 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/enrichment",
+ "title": "Enrichment",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Enrichment",
+ "additionalProperties": true,
+ "properties": {
+ "data": {
+ "type": [
+ "object",
+ "string",
+ "integer",
+ "number",
+ "boolean",
+ "array",
+ "null"
+ ],
+ "title": "Data"
+ },
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "type": {
+ "type": "string",
+ "title": "Type"
+ },
+ "value": {
+ "type": "string",
+ "title": "Value"
+ },
+ "desc": {
+ "type": "string",
+ "title": "Description"
+ },
+ "created_time": {
+ "type": "integer",
+ "title": "Created Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "provider": {
+ "type": "string",
+ "title": "Provider"
+ },
+ "reputation": {
+ "$ref": "Reputation.json"
+ },
+ "short_desc": {
+ "type": "string",
+ "title": "Short Description"
+ },
+ "src_url": {
+ "type": "string",
+ "title": "Source URL"
+ }
+ },
+ "description": "The Enrichment object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/EntityManagement.json b/components/camel-ocsf/src/main/resources/schema/EntityManagement.json
new file mode 100644
index 000000000000..4b6220a9f573
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/EntityManagement.json
@@ -0,0 +1,65 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/entity_management",
+ "title": "EntityManagement",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.EntityManagement",
+ "additionalProperties": true,
+ "description": "EntityManagement event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "actor": {
+ "$ref": "Actor.json"
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "http_response": {
+ "$ref": "HttpResponse.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "http_request": {
+ "$ref": "HttpRequest.json"
+ },
+ "src_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "access_mask": {
+ "type": "integer",
+ "title": "Access Mask"
+ },
+ "access_list": {
+ "type": "array",
+ "title": "Access List",
+ "items": {
+ "type": "string"
+ }
+ },
+ "comment": {
+ "type": "string",
+ "title": "Comment"
+ },
+ "entity": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "entity_result": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Epss.json b/components/camel-ocsf/src/main/resources/schema/Epss.json
new file mode 100644
index 000000000000..7ce617d3bfa9
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Epss.json
@@ -0,0 +1,28 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/epss",
+ "title": "Epss",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Epss",
+ "additionalProperties": true,
+ "properties": {
+ "version": {
+ "type": "string",
+ "title": "Version"
+ },
+ "created_time": {
+ "type": "integer",
+ "title": "Created Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "percentile": {
+ "type": "number",
+ "title": "EPSS Percentile"
+ },
+ "score": {
+ "type": "string",
+ "title": "EPPS Score"
+ }
+ },
+ "description": "The EPSS object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Extension.json b/components/camel-ocsf/src/main/resources/schema/Extension.json
new file mode 100644
index 000000000000..0a8f33203ef8
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Extension.json
@@ -0,0 +1,23 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/extension",
+ "title": "Extension",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Extension",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "version": {
+ "type": "string",
+ "title": "Version"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ }
+ },
+ "description": "The Schema Extension object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Feature.json b/components/camel-ocsf/src/main/resources/schema/Feature.json
new file mode 100644
index 000000000000..e2487b673dc2
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Feature.json
@@ -0,0 +1,23 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/feature",
+ "title": "Feature",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Feature",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "version": {
+ "type": "string",
+ "title": "Version"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ }
+ },
+ "description": "The Feature object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/File.json b/components/camel-ocsf/src/main/resources/schema/File.json
new file mode 100644
index 000000000000..a51fd534363d
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/File.json
@@ -0,0 +1,171 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/file",
+ "title": "File",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.File",
+ "additionalProperties": true,
+ "properties": {
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "desc": {
+ "type": "string",
+ "title": "Description"
+ },
+ "drive_type": {
+ "type": "string",
+ "title": "Drive Type"
+ },
+ "encryption_details": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "internal_name": {
+ "type": "string",
+ "title": "Internal Name"
+ },
+ "accessed_time": {
+ "type": "integer",
+ "title": "Accessed Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "confidentiality": {
+ "type": "string",
+ "title": "Confidentiality"
+ },
+ "product": {
+ "$ref": "Product.json"
+ },
+ "uri": {
+ "type": "string",
+ "title": "File URI"
+ },
+ "size": {
+ "type": "integer",
+ "title": "Size"
+ },
+ "xattributes": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "hashes": {
+ "type": "array",
+ "title": "Hashes",
+ "items": {
+ "$ref": "Fingerprint.json"
+ }
+ },
+ "attributes": {
+ "type": "integer",
+ "title": "Attributes"
+ },
+ "created_time": {
+ "type": "integer",
+ "title": "Created Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "tags": {
+ "type": "array",
+ "title": "Tags",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "creator": {
+ "$ref": "User.json"
+ },
+ "owner": {
+ "$ref": "User.json"
+ },
+ "security_descriptor": {
+ "type": "string",
+ "title": "Security Descriptor"
+ },
+ "volume": {
+ "type": "string",
+ "title": "Volume"
+ },
+ "is_system": {
+ "type": "boolean",
+ "title": "System"
+ },
+ "type_id": {
+ "type": "integer",
+ "title": "Type ID"
+ },
+ "path": {
+ "type": "string",
+ "title": "Path"
+ },
+ "drive_type_id": {
+ "type": "integer",
+ "title": "Drive Type ID"
+ },
+ "version": {
+ "type": "string",
+ "title": "Version"
+ },
+ "confidentiality_id": {
+ "type": "integer",
+ "title": "Confidentiality ID"
+ },
+ "is_encrypted": {
+ "type": "boolean",
+ "title": "Encrypted"
+ },
+ "modified_time": {
+ "type": "integer",
+ "title": "Modified Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "signature": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "url": {
+ "$ref": "Url.json"
+ },
+ "modifier": {
+ "$ref": "User.json"
+ },
+ "is_deleted": {
+ "type": "boolean",
+ "title": "Deleted"
+ },
+ "parent_folder": {
+ "type": "string",
+ "title": "Parent Folder"
+ },
+ "company_name": {
+ "type": "string",
+ "title": "Company Name"
+ },
+ "type": {
+ "type": "string",
+ "title": "Type"
+ },
+ "mime_type": {
+ "type": "string",
+ "title": "MIME type"
+ },
+ "is_readonly": {
+ "type": "boolean",
+ "title": "Read-Only"
+ },
+ "ext": {
+ "type": "string",
+ "title": "File Extension"
+ },
+ "accessor": {
+ "$ref": "User.json"
+ }
+ },
+ "description": "The File object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/FileActivity.json b/components/camel-ocsf/src/main/resources/schema/FileActivity.json
new file mode 100644
index 000000000000..4b4000e3fa94
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/FileActivity.json
@@ -0,0 +1,62 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/file_activity",
+ "title": "FileActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.FileActivity",
+ "additionalProperties": true,
+ "description": "FileActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "actor": {
+ "$ref": "Actor.json"
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "device": {
+ "$ref": "Device.json"
+ },
+ "file": {
+ "$ref": "File.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "file_diff": {
+ "type": "string",
+ "title": "File Diff"
+ },
+ "file_result": {
+ "$ref": "File.json"
+ },
+ "access_mask": {
+ "type": "integer",
+ "title": "Access Mask"
+ },
+ "connection_uid": {
+ "type": "string",
+ "title": "Connection Identifier"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "create_mask": {
+ "type": "string",
+ "title": "Create Mask"
+ },
+ "component": {
+ "type": "string",
+ "title": "Component"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/FindingInfo.json b/components/camel-ocsf/src/main/resources/schema/FindingInfo.json
new file mode 100644
index 000000000000..dc475cc95e79
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/FindingInfo.json
@@ -0,0 +1,128 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/finding_info",
+ "title": "FindingInfo",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.FindingInfo",
+ "additionalProperties": true,
+ "properties": {
+ "title": {
+ "type": "string",
+ "title": "Title"
+ },
+ "product": {
+ "$ref": "Product.json"
+ },
+ "desc": {
+ "type": "string",
+ "title": "Description"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "types": {
+ "type": "array",
+ "title": "Types",
+ "items": {
+ "type": "string"
+ }
+ },
+ "tags": {
+ "type": "array",
+ "title": "Tags",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "attacks": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Attack.json"
+ }
+ },
+ "analytic": {
+ "$ref": "Analytic.json"
+ },
+ "attack_graph": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "created_time": {
+ "type": "integer",
+ "title": "Created Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "data_sources": {
+ "type": "array",
+ "title": "Data Sources",
+ "items": {
+ "type": "string"
+ }
+ },
+ "first_seen_time": {
+ "type": "integer",
+ "title": "First Seen",
+ "existingJavaType": "java.lang.Long"
+ },
+ "kill_chain": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "KillChainPhase.json"
+ }
+ },
+ "last_seen_time": {
+ "type": "integer",
+ "title": "Last Seen",
+ "existingJavaType": "java.lang.Long"
+ },
+ "modified_time": {
+ "type": "integer",
+ "title": "Modified Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "product_uid": {
+ "type": "string",
+ "title": "Product Identifier"
+ },
+ "related_analytics": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Analytic.json"
+ }
+ },
+ "related_events": {
+ "type": "array",
+ "title": "Related Events/Findings",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "related_events_count": {
+ "type": "integer",
+ "title": "Related Events/Findings Count"
+ },
+ "src_url": {
+ "type": "string",
+ "title": "Source URL"
+ },
+ "traits": {
+ "type": "array",
+ "title": "Traits",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "uid_alt": {
+ "type": "string",
+ "title": "Alternate ID"
+ }
+ },
+ "description": "The Finding Information object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Fingerprint.json b/components/camel-ocsf/src/main/resources/schema/Fingerprint.json
new file mode 100644
index 000000000000..aca67bf0b8b5
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Fingerprint.json
@@ -0,0 +1,24 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/fingerprint",
+ "title": "Fingerprint",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Fingerprint",
+ "additionalProperties": true,
+ "properties": {
+ "value": {
+ "type": "string",
+ "title": "Value",
+ "pattern": "^[a-fA-F0-9]+$"
+ },
+ "algorithm": {
+ "type": "string",
+ "title": "Algorithm"
+ },
+ "algorithm_id": {
+ "type": "integer",
+ "title": "Algorithm ID"
+ }
+ },
+ "description": "The Fingerprint object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/FtpActivity.json b/components/camel-ocsf/src/main/resources/schema/FtpActivity.json
new file mode 100644
index 000000000000..301820a0106a
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/FtpActivity.json
@@ -0,0 +1,109 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/ftp_activity",
+ "title": "FtpActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.FtpActivity",
+ "additionalProperties": true,
+ "description": "FtpActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "cumulative_traffic": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "connection_info": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "file": {
+ "$ref": "File.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "traffic": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "codes": {
+ "type": "array",
+ "title": "Response Codes",
+ "items": {
+ "type": "integer"
+ }
+ },
+ "src_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "app_name": {
+ "type": "string",
+ "title": "Application Name"
+ },
+ "command_responses": {
+ "type": "array",
+ "title": "Command Responses",
+ "items": {
+ "type": "string"
+ }
+ },
+ "command": {
+ "type": "string",
+ "title": "Command"
+ },
+ "dst_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "port": {
+ "type": "integer",
+ "title": "Port",
+ "minimum": 0,
+ "maximum": 65535
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "ja4_fingerprint_list": {
+ "type": "array",
+ "title": "JA4+ Fingerprints",
+ "items": {
+ "$ref": "Ja4Fingerprint.json"
+ }
+ },
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "type": {
+ "type": "string",
+ "title": "Type"
+ },
+ "observation_point_id": {
+ "type": "integer",
+ "title": "Observation Point ID"
+ },
+ "proxy": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "observation_point": {
+ "type": "string",
+ "title": "Observation Point"
+ },
+ "tls": {
+ "$ref": "Tls.json"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Group.json b/components/camel-ocsf/src/main/resources/schema/Group.json
new file mode 100644
index 000000000000..bafa103bbf21
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Group.json
@@ -0,0 +1,38 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/group",
+ "title": "Group",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Group",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "type": {
+ "type": "string",
+ "title": "Account Type"
+ },
+ "domain": {
+ "type": "string",
+ "title": "Domain"
+ },
+ "desc": {
+ "type": "string",
+ "title": "Description"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "privileges": {
+ "type": "array",
+ "title": "Privileges",
+ "items": {
+ "type": "string"
+ }
+ }
+ },
+ "description": "The Group object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/GroupManagement.json b/components/camel-ocsf/src/main/resources/schema/GroupManagement.json
new file mode 100644
index 000000000000..5af2461dd5d7
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/GroupManagement.json
@@ -0,0 +1,61 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/group_management",
+ "title": "GroupManagement",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.GroupManagement",
+ "additionalProperties": true,
+ "description": "GroupManagement event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "privileges": {
+ "type": "array",
+ "title": "Privileges",
+ "items": {
+ "type": "string"
+ }
+ },
+ "actor": {
+ "$ref": "Actor.json"
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "http_response": {
+ "$ref": "HttpResponse.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "http_request": {
+ "$ref": "HttpRequest.json"
+ },
+ "src_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "group": {
+ "$ref": "Group.json"
+ },
+ "user": {
+ "$ref": "User.json"
+ },
+ "subgroup": {
+ "$ref": "Group.json"
+ },
+ "resource": {
+ "$ref": "ResourceDetails.json"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/HttpActivity.json b/components/camel-ocsf/src/main/resources/schema/HttpActivity.json
new file mode 100644
index 000000000000..e2cc82c1b4bf
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/HttpActivity.json
@@ -0,0 +1,95 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/http_activity",
+ "title": "HttpActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.HttpActivity",
+ "additionalProperties": true,
+ "description": "HttpActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "cumulative_traffic": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "connection_info": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "http_response": {
+ "$ref": "HttpResponse.json"
+ },
+ "file": {
+ "$ref": "File.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "http_cookies": {
+ "type": "array",
+ "title": "HTTP Cookies",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "traffic": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "http_request": {
+ "$ref": "HttpRequest.json"
+ },
+ "src_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "app_name": {
+ "type": "string",
+ "title": "Application Name"
+ },
+ "http_status": {
+ "type": "integer",
+ "title": "HTTP Status"
+ },
+ "dst_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "ja4_fingerprint_list": {
+ "type": "array",
+ "title": "JA4+ Fingerprints",
+ "items": {
+ "$ref": "Ja4Fingerprint.json"
+ }
+ },
+ "observation_point_id": {
+ "type": "integer",
+ "title": "Observation Point ID"
+ },
+ "proxy": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "observation_point": {
+ "type": "string",
+ "title": "Observation Point"
+ },
+ "tls": {
+ "$ref": "Tls.json"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/HttpHeader.json b/components/camel-ocsf/src/main/resources/schema/HttpHeader.json
new file mode 100644
index 000000000000..53d3437d7b68
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/HttpHeader.json
@@ -0,0 +1,19 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/http_header",
+ "title": "HttpHeader",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.HttpHeader",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "value": {
+ "type": "string",
+ "title": "Value"
+ }
+ },
+ "description": "The HTTP Header object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/HttpRequest.json b/components/camel-ocsf/src/main/resources/schema/HttpRequest.json
new file mode 100644
index 000000000000..f782c0604173
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/HttpRequest.json
@@ -0,0 +1,72 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/http_request",
+ "title": "HttpRequest",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.HttpRequest",
+ "additionalProperties": true,
+ "properties": {
+ "args": {
+ "type": "string",
+ "title": "HTTP Arguments"
+ },
+ "version": {
+ "type": "string",
+ "title": "HTTP Version"
+ },
+ "length": {
+ "type": "integer",
+ "title": "Request Length"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "url": {
+ "$ref": "Url.json"
+ },
+ "body_length": {
+ "type": "integer",
+ "title": "Request Body Length"
+ },
+ "user_agent": {
+ "type": "string",
+ "title": "HTTP User-Agent"
+ },
+ "http_headers": {
+ "type": "array",
+ "title": "HTTP Headers",
+ "items": {
+ "$ref": "HttpHeader.json"
+ }
+ },
+ "http_method": {
+ "type": "string",
+ "title": "HTTP Method",
+ "enum": [
+ "OPTIONS",
+ "GET",
+ "HEAD",
+ "POST",
+ "PUT",
+ "DELETE",
+ "TRACE",
+ "CONNECT",
+ "PATCH"
+ ]
+ },
+ "referrer": {
+ "type": "string",
+ "title": "HTTP Referrer"
+ },
+ "x_forwarded_for": {
+ "type": "array",
+ "title": "X-Forwarded-For",
+ "items": {
+ "type": "string",
+ "pattern": "((^\\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\\s*$)|(^\\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-F [...]
+ }
+ }
+ },
+ "description": "The HTTP Request object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/HttpResponse.json b/components/camel-ocsf/src/main/resources/schema/HttpResponse.json
new file mode 100644
index 000000000000..aec52f1a33f2
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/HttpResponse.json
@@ -0,0 +1,46 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/http_response",
+ "title": "HttpResponse",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.HttpResponse",
+ "additionalProperties": true,
+ "properties": {
+ "code": {
+ "type": "integer",
+ "title": "Response Code"
+ },
+ "message": {
+ "type": "string",
+ "title": "Message"
+ },
+ "status": {
+ "type": "string",
+ "title": "Status"
+ },
+ "length": {
+ "type": "integer",
+ "title": "Response Length"
+ },
+ "content_type": {
+ "type": "string",
+ "title": "HTTP Content Type"
+ },
+ "body_length": {
+ "type": "integer",
+ "title": "Response Body Length"
+ },
+ "http_headers": {
+ "type": "array",
+ "title": "HTTP Headers",
+ "items": {
+ "$ref": "HttpHeader.json"
+ }
+ },
+ "latency": {
+ "type": "integer",
+ "title": "Latency"
+ }
+ },
+ "description": "The HTTP Response object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Idp.json b/components/camel-ocsf/src/main/resources/schema/Idp.json
new file mode 100644
index 000000000000..efdfbab79f39
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Idp.json
@@ -0,0 +1,69 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/idp",
+ "title": "Idp",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Idp",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "state": {
+ "type": "string",
+ "title": "State"
+ },
+ "domain": {
+ "type": "string",
+ "title": "Domain"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "protocol_name": {
+ "type": "string",
+ "title": "Supported Protocol"
+ },
+ "issuer": {
+ "type": "string",
+ "title": "Issuer Details"
+ },
+ "fingerprint": {
+ "$ref": "Fingerprint.json"
+ },
+ "auth_factors": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "AuthFactor.json"
+ }
+ },
+ "has_mfa": {
+ "type": "boolean",
+ "title": "MFA Enforced"
+ },
+ "scim": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "sso": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "state_id": {
+ "type": "integer",
+ "title": "State ID"
+ },
+ "tenant_uid": {
+ "type": "string",
+ "title": "Tenant UID"
+ },
+ "url_string": {
+ "type": "string",
+ "title": "Configuration URL"
+ }
+ },
+ "description": "The Identity Provider object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Image.json b/components/camel-ocsf/src/main/resources/schema/Image.json
new file mode 100644
index 000000000000..7a156cc4bc67
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Image.json
@@ -0,0 +1,42 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/image",
+ "title": "Image",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Image",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "tag": {
+ "type": "string",
+ "title": "Image Tag"
+ },
+ "path": {
+ "type": "string",
+ "title": "Path"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "labels": {
+ "type": "array",
+ "title": "Labels",
+ "items": {
+ "type": "string"
+ }
+ },
+ "tags": {
+ "type": "array",
+ "title": "Tags",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ }
+ },
+ "description": "The Image object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/IncidentFinding.json b/components/camel-ocsf/src/main/resources/schema/IncidentFinding.json
new file mode 100644
index 000000000000..208cb2013f0d
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/IncidentFinding.json
@@ -0,0 +1,119 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/incident_finding",
+ "title": "IncidentFinding",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.IncidentFinding",
+ "additionalProperties": true,
+ "description": "IncidentFinding event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "verdict_id": {
+ "type": "integer",
+ "title": "Verdict ID"
+ },
+ "desc": {
+ "type": "string",
+ "title": "Description"
+ },
+ "impact": {
+ "type": "string",
+ "title": "Impact"
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "ticket": {
+ "$ref": "Ticket.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "confidence_score": {
+ "type": "integer",
+ "title": "Confidence Score"
+ },
+ "impact_id": {
+ "type": "integer",
+ "title": "Impact ID"
+ },
+ "verdict": {
+ "type": "string",
+ "title": "Verdict"
+ },
+ "src_url": {
+ "type": "string",
+ "title": "Source URL"
+ },
+ "assignee": {
+ "$ref": "User.json"
+ },
+ "finding_info_list": {
+ "type": "array",
+ "title": "Finding Information List",
+ "items": {
+ "$ref": "FindingInfo.json"
+ }
+ },
+ "confidence_id": {
+ "type": "integer",
+ "title": "Confidence ID"
+ },
+ "comment": {
+ "type": "string",
+ "title": "Comment"
+ },
+ "assignee_group": {
+ "$ref": "Group.json"
+ },
+ "priority_id": {
+ "type": "integer",
+ "title": "Priority ID"
+ },
+ "vendor_attributes": {
+ "$ref": "VendorAttributes.json"
+ },
+ "tickets": {
+ "type": "array",
+ "title": "Tickets",
+ "items": {
+ "$ref": "Ticket.json"
+ }
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "attacks": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Attack.json"
+ }
+ },
+ "priority": {
+ "type": "string",
+ "title": "Priority"
+ },
+ "is_suspected_breach": {
+ "type": "boolean",
+ "title": "Suspected Breach"
+ },
+ "impact_score": {
+ "type": "integer",
+ "title": "Impact Score"
+ },
+ "confidence": {
+ "type": "string",
+ "title": "Confidence"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Ja4Fingerprint.json b/components/camel-ocsf/src/main/resources/schema/Ja4Fingerprint.json
new file mode 100644
index 000000000000..98a4be6700c5
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Ja4Fingerprint.json
@@ -0,0 +1,39 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/ja4_fingerprint",
+ "title": "Ja4Fingerprint",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Ja4Fingerprint",
+ "additionalProperties": true,
+ "properties": {
+ "type": {
+ "type": "string",
+ "title": "Type"
+ },
+ "value": {
+ "type": "string",
+ "title": "Value"
+ },
+ "type_id": {
+ "type": "integer",
+ "title": "Type ID"
+ },
+ "section_a": {
+ "type": "string",
+ "title": "JA4 Section A"
+ },
+ "section_b": {
+ "type": "string",
+ "title": "JA4 Section B"
+ },
+ "section_c": {
+ "type": "string",
+ "title": "JA4 Section C"
+ },
+ "section_d": {
+ "type": "string",
+ "title": "JA4 Section D"
+ }
+ },
+ "description": "The JA4+ Fingerprint object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/KbArticle.json b/components/camel-ocsf/src/main/resources/schema/KbArticle.json
new file mode 100644
index 000000000000..010ecb182b68
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/KbArticle.json
@@ -0,0 +1,66 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/kb_article",
+ "title": "KbArticle",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.KbArticle",
+ "additionalProperties": true,
+ "properties": {
+ "size": {
+ "type": "integer",
+ "title": "Size"
+ },
+ "os": {
+ "$ref": "Os.json"
+ },
+ "title": {
+ "type": "string",
+ "title": "Title"
+ },
+ "product": {
+ "$ref": "Product.json"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "severity": {
+ "type": "string",
+ "title": "Severity"
+ },
+ "avg_timespan": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "bulletin": {
+ "type": "string",
+ "title": "Patch Bulletin"
+ },
+ "classification": {
+ "type": "string",
+ "title": "Classification"
+ },
+ "created_time": {
+ "type": "integer",
+ "title": "Created Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "install_state": {
+ "type": "string",
+ "title": "Install State"
+ },
+ "install_state_id": {
+ "type": "integer",
+ "title": "Install State ID"
+ },
+ "is_superseded": {
+ "type": "boolean",
+ "title": "The patch is superseded."
+ },
+ "src_url": {
+ "type": "string",
+ "title": "Source URL"
+ }
+ },
+ "description": "The KB Article object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/KernelActivity.json b/components/camel-ocsf/src/main/resources/schema/KernelActivity.json
new file mode 100644
index 000000000000..6eb63cb9f70b
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/KernelActivity.json
@@ -0,0 +1,40 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/kernel_activity",
+ "title": "KernelActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.KernelActivity",
+ "additionalProperties": true,
+ "description": "KernelActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "actor": {
+ "$ref": "Actor.json"
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "device": {
+ "$ref": "Device.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "kernel": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/KernelExtensionActivity.json b/components/camel-ocsf/src/main/resources/schema/KernelExtensionActivity.json
new file mode 100644
index 000000000000..0920c11c048c
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/KernelExtensionActivity.json
@@ -0,0 +1,40 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/kernel_extension_activity",
+ "title": "KernelExtensionActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.KernelExtensionActivity",
+ "additionalProperties": true,
+ "description": "KernelExtensionActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "actor": {
+ "$ref": "Actor.json"
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "device": {
+ "$ref": "Device.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "driver": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/KillChainPhase.json b/components/camel-ocsf/src/main/resources/schema/KillChainPhase.json
new file mode 100644
index 000000000000..8fd705442d9f
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/KillChainPhase.json
@@ -0,0 +1,19 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/kill_chain_phase",
+ "title": "KillChainPhase",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.KillChainPhase",
+ "additionalProperties": true,
+ "properties": {
+ "phase": {
+ "type": "string",
+ "title": "Kill Chain Phase"
+ },
+ "phase_id": {
+ "type": "integer",
+ "title": "Kill Chain Phase ID"
+ }
+ },
+ "description": "The Kill Chain Phase object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Location.json b/components/camel-ocsf/src/main/resources/schema/Location.json
new file mode 100644
index 000000000000..009cf3d38532
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Location.json
@@ -0,0 +1,86 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/location",
+ "title": "Location",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Location",
+ "additionalProperties": true,
+ "properties": {
+ "desc": {
+ "type": "string",
+ "title": "Description"
+ },
+ "long": {
+ "type": "number",
+ "title": "Longitude"
+ },
+ "city": {
+ "type": "string",
+ "title": "City"
+ },
+ "country": {
+ "type": "string",
+ "title": "Country"
+ },
+ "coordinates": {
+ "type": "array",
+ "title": "Coordinates",
+ "items": {
+ "type": "number"
+ }
+ },
+ "continent": {
+ "type": "string",
+ "title": "Continent"
+ },
+ "aerial_height": {
+ "type": "string",
+ "title": "Aerial Height"
+ },
+ "geodetic_altitude": {
+ "type": "string",
+ "title": "Geodetic Altitude"
+ },
+ "geodetic_vertical_accuracy": {
+ "type": "string",
+ "title": "Geodetic Vertical Accuracy"
+ },
+ "geohash": {
+ "type": "string",
+ "title": "Geohash"
+ },
+ "horizontal_accuracy": {
+ "type": "string",
+ "title": "Horizontal Accuracy"
+ },
+ "is_on_premises": {
+ "type": "boolean",
+ "title": "On Premises"
+ },
+ "isp": {
+ "type": "string",
+ "title": "ISP Name"
+ },
+ "lat": {
+ "type": "number",
+ "title": "Latitude"
+ },
+ "postal_code": {
+ "type": "string",
+ "title": "Postal Code"
+ },
+ "pressure_altitude": {
+ "type": "string",
+ "title": "Pressure Altitude"
+ },
+ "provider": {
+ "type": "string",
+ "title": "Provider"
+ },
+ "region": {
+ "type": "string",
+ "title": "Region"
+ }
+ },
+ "description": "The Geo Location object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Logger.json b/components/camel-ocsf/src/main/resources/schema/Logger.json
new file mode 100644
index 000000000000..99a02169946c
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Logger.json
@@ -0,0 +1,71 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/logger",
+ "title": "Logger",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Logger",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "version": {
+ "type": "string",
+ "title": "Version"
+ },
+ "device": {
+ "$ref": "Device.json"
+ },
+ "product": {
+ "$ref": "Product.json"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "log_level": {
+ "type": "string",
+ "title": "Log Level"
+ },
+ "event_uid": {
+ "type": "string",
+ "title": "Event UID"
+ },
+ "is_truncated": {
+ "type": "boolean",
+ "title": "Is Truncated"
+ },
+ "log_format": {
+ "type": "string",
+ "title": "Log Format"
+ },
+ "log_name": {
+ "type": "string",
+ "title": "Log Name"
+ },
+ "log_provider": {
+ "type": "string",
+ "title": "Log Provider"
+ },
+ "log_version": {
+ "type": "string",
+ "title": "Log Version"
+ },
+ "logged_time": {
+ "type": "integer",
+ "title": "Logged Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "transmit_time": {
+ "type": "integer",
+ "title": "Transmission Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "untruncated_size": {
+ "type": "integer",
+ "title": "Untruncated Size"
+ }
+ },
+ "description": "The Logger object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Malware.json b/components/camel-ocsf/src/main/resources/schema/Malware.json
new file mode 100644
index 000000000000..8c97fc2702c1
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Malware.json
@@ -0,0 +1,92 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/malware",
+ "title": "Malware",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Malware",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "path": {
+ "type": "string",
+ "title": "Path"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "files": {
+ "type": "array",
+ "title": "Files",
+ "items": {
+ "$ref": "File.json"
+ }
+ },
+ "severity": {
+ "type": "string",
+ "title": "Severity"
+ },
+ "classification_ids": {
+ "type": "array",
+ "title": "Classification IDs",
+ "items": {
+ "type": "integer",
+ "enum": [
+ 3,
+ 6,
+ 0,
+ 1,
+ 2,
+ 99,
+ 4,
+ 5,
+ 7,
+ 8,
+ 9,
+ 10,
+ 11,
+ 14,
+ 15,
+ 16,
+ 17,
+ 18,
+ 20,
+ 21,
+ 22,
+ 13,
+ 19
+ ]
+ }
+ },
+ "classifications": {
+ "type": "array",
+ "title": "Classifications",
+ "items": {
+ "type": "string"
+ }
+ },
+ "cves": {
+ "type": "array",
+ "title": "CVE List",
+ "items": {
+ "$ref": "Cve.json"
+ }
+ },
+ "num_infected": {
+ "type": "integer",
+ "title": "Number of Infected Entities"
+ },
+ "provider": {
+ "type": "string",
+ "title": "Provider"
+ },
+ "severity_id": {
+ "type": "integer",
+ "title": "Severity ID"
+ }
+ },
+ "description": "The Malware object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/MemoryActivity.json b/components/camel-ocsf/src/main/resources/schema/MemoryActivity.json
new file mode 100644
index 000000000000..7fa58c0800c3
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/MemoryActivity.json
@@ -0,0 +1,55 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/memory_activity",
+ "title": "MemoryActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.MemoryActivity",
+ "additionalProperties": true,
+ "description": "MemoryActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "actor": {
+ "$ref": "Actor.json"
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "device": {
+ "$ref": "Device.json"
+ },
+ "process": {
+ "$ref": "Process.json"
+ },
+ "size": {
+ "type": "integer",
+ "title": "Size"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "base_address": {
+ "type": "string",
+ "title": "Base Address"
+ },
+ "actual_permissions": {
+ "type": "integer",
+ "title": "Actual Permissions"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "requested_permissions": {
+ "type": "integer",
+ "title": "Requested Permissions"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Metadata.json b/components/camel-ocsf/src/main/resources/schema/Metadata.json
new file mode 100644
index 000000000000..36767de316da
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Metadata.json
@@ -0,0 +1,164 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/metadata",
+ "title": "Metadata",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Metadata",
+ "additionalProperties": true,
+ "properties": {
+ "uid": {
+ "type": "string",
+ "title": "Event UID"
+ },
+ "log_format": {
+ "type": "string",
+ "title": "Log Source Format"
+ },
+ "product": {
+ "$ref": "Product.json"
+ },
+ "log_name": {
+ "type": "string",
+ "title": "Log Name"
+ },
+ "extension": {
+ "$ref": "Extension.json"
+ },
+ "extensions": {
+ "type": "array",
+ "title": "Schema Extensions",
+ "items": {
+ "$ref": "Extension.json"
+ }
+ },
+ "tenant_uid": {
+ "type": "string",
+ "title": "Tenant UID"
+ },
+ "labels": {
+ "type": "array",
+ "title": "Labels",
+ "items": {
+ "type": "string"
+ }
+ },
+ "transmit_time": {
+ "type": "integer",
+ "title": "Transmission Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "tags": {
+ "type": "array",
+ "title": "Tags",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "source": {
+ "type": "string",
+ "title": "Source"
+ },
+ "profiles": {
+ "type": "array",
+ "title": "Profiles",
+ "items": {
+ "type": "string"
+ }
+ },
+ "correlation_uid": {
+ "type": "string",
+ "title": "Correlation UID"
+ },
+ "sequence": {
+ "type": "integer",
+ "title": "Sequence Number"
+ },
+ "log_source": {
+ "type": "string",
+ "title": "Log Source"
+ },
+ "log_provider": {
+ "type": "string",
+ "title": "Log Provider"
+ },
+ "log_version": {
+ "type": "string",
+ "title": "Log Version"
+ },
+ "event_code": {
+ "type": "string",
+ "title": "Event Code"
+ },
+ "debug": {
+ "type": "array",
+ "title": "Debug Information",
+ "items": {
+ "type": "string"
+ }
+ },
+ "logged_time": {
+ "type": "integer",
+ "title": "Logged Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "reporter": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "original_time": {
+ "type": "string",
+ "title": "Original Time"
+ },
+ "version": {
+ "type": "string",
+ "title": "Version"
+ },
+ "modified_time": {
+ "type": "integer",
+ "title": "Modified Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "original_event_uid": {
+ "type": "string",
+ "title": "Original Event ID"
+ },
+ "transformation_info_list": {
+ "type": "array",
+ "title": "Transformation Info",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "is_truncated": {
+ "type": "boolean",
+ "title": "Is Truncated"
+ },
+ "processed_time": {
+ "type": "integer",
+ "title": "Processed Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "type": {
+ "type": "string",
+ "title": "Type"
+ },
+ "loggers": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Logger.json"
+ }
+ },
+ "untruncated_size": {
+ "type": "integer",
+ "title": "Untruncated Size"
+ },
+ "log_level": {
+ "type": "string",
+ "title": "Log Level"
+ }
+ },
+ "description": "The Metadata object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Module.json b/components/camel-ocsf/src/main/resources/schema/Module.json
new file mode 100644
index 000000000000..fa3df1537caa
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Module.json
@@ -0,0 +1,42 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/module",
+ "title": "Module",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Module",
+ "additionalProperties": true,
+ "properties": {
+ "type": {
+ "type": "string",
+ "title": "Type"
+ },
+ "file": {
+ "$ref": "File.json"
+ },
+ "base_address": {
+ "type": "string",
+ "title": "Base Address"
+ },
+ "function_invocation": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "function_name": {
+ "type": "string",
+ "title": "Function Name"
+ },
+ "load_type": {
+ "type": "string",
+ "title": "Load Type"
+ },
+ "load_type_id": {
+ "type": "integer",
+ "title": "Load Type ID"
+ },
+ "start_address": {
+ "type": "string",
+ "title": "Start Address"
+ }
+ },
+ "description": "The Module object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/ModuleActivity.json b/components/camel-ocsf/src/main/resources/schema/ModuleActivity.json
new file mode 100644
index 000000000000..868b2f50ee42
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/ModuleActivity.json
@@ -0,0 +1,39 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/module_activity",
+ "title": "ModuleActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.ModuleActivity",
+ "additionalProperties": true,
+ "description": "ModuleActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "actor": {
+ "$ref": "Actor.json"
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "device": {
+ "$ref": "Device.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "module": {
+ "$ref": "Module.json"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/NetworkActivity.json b/components/camel-ocsf/src/main/resources/schema/NetworkActivity.json
new file mode 100644
index 000000000000..79553916ec9d
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/NetworkActivity.json
@@ -0,0 +1,81 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/network_activity",
+ "title": "NetworkActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.NetworkActivity",
+ "additionalProperties": true,
+ "description": "NetworkActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "cumulative_traffic": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "connection_info": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "traffic": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "src_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "app_name": {
+ "type": "string",
+ "title": "Application Name"
+ },
+ "dst_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "ja4_fingerprint_list": {
+ "type": "array",
+ "title": "JA4+ Fingerprints",
+ "items": {
+ "$ref": "Ja4Fingerprint.json"
+ }
+ },
+ "url": {
+ "$ref": "Url.json"
+ },
+ "is_src_dst_assignment_known": {
+ "type": "boolean",
+ "title": "Source/Destination Assignment Known"
+ },
+ "observation_point_id": {
+ "type": "integer",
+ "title": "Observation Point ID"
+ },
+ "proxy": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "observation_point": {
+ "type": "string",
+ "title": "Observation Point"
+ },
+ "tls": {
+ "$ref": "Tls.json"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/NetworkEndpoint.json b/components/camel-ocsf/src/main/resources/schema/NetworkEndpoint.json
new file mode 100644
index 000000000000..8ec3c1a6d893
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/NetworkEndpoint.json
@@ -0,0 +1,135 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/network_endpoint",
+ "title": "NetworkEndpoint",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.NetworkEndpoint",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "owner": {
+ "$ref": "User.json"
+ },
+ "port": {
+ "type": "integer",
+ "title": "Port",
+ "minimum": 0,
+ "maximum": 65535
+ },
+ "type": {
+ "type": "string",
+ "title": "Type"
+ },
+ "os": {
+ "$ref": "Os.json"
+ },
+ "domain": {
+ "type": "string",
+ "title": "Domain"
+ },
+ "ip": {
+ "type": "string",
+ "title": "IP Address",
+ "pattern": "((^\\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\\s*$)|(^\\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa- [...]
+ },
+ "location": {
+ "$ref": "Location.json"
+ },
+ "hostname": {
+ "type": "string",
+ "title": "Hostname"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "mac": {
+ "type": "string",
+ "title": "MAC Address",
+ "pattern": "^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"
+ },
+ "type_id": {
+ "type": "integer",
+ "title": "Type ID"
+ },
+ "agent_list": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Agent.json"
+ }
+ },
+ "autonomous_system": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "hw_info": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "instance_uid": {
+ "type": "string",
+ "title": "Instance ID"
+ },
+ "interface_name": {
+ "type": "string",
+ "title": "Network Interface Name"
+ },
+ "interface_uid": {
+ "type": "string",
+ "title": "Network Interface ID"
+ },
+ "intermediate_ips": {
+ "type": "array",
+ "title": "Intermediate IP Addresses",
+ "items": {
+ "type": "string",
+ "pattern": "((^\\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\\s*$)|(^\\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-F [...]
+ }
+ },
+ "isp": {
+ "type": "string",
+ "title": "ISP Name"
+ },
+ "isp_org": {
+ "type": "string",
+ "title": "ISP Org"
+ },
+ "network_scope": {
+ "type": "string",
+ "title": "Network Scope"
+ },
+ "network_scope_id": {
+ "type": "integer",
+ "title": "Network Scope ID"
+ },
+ "proxy_endpoint": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "subnet_uid": {
+ "type": "string",
+ "title": "Subnet UID"
+ },
+ "svc_name": {
+ "type": "string",
+ "title": "Service Name"
+ },
+ "vlan_uid": {
+ "type": "string",
+ "title": "VLAN"
+ },
+ "vpc_uid": {
+ "type": "string",
+ "title": "VPC UID"
+ },
+ "zone": {
+ "type": "string",
+ "title": "Network Zone"
+ }
+ },
+ "description": "The Network Endpoint object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/NetworkFileActivity.json b/components/camel-ocsf/src/main/resources/schema/NetworkFileActivity.json
new file mode 100644
index 000000000000..e2ff3d1535f7
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/NetworkFileActivity.json
@@ -0,0 +1,85 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/network_file_activity",
+ "title": "NetworkFileActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.NetworkFileActivity",
+ "additionalProperties": true,
+ "description": "NetworkFileActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "cumulative_traffic": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "actor": {
+ "$ref": "Actor.json"
+ },
+ "connection_info": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "file": {
+ "$ref": "File.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "traffic": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "src_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "app_name": {
+ "type": "string",
+ "title": "Application Name"
+ },
+ "dst_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "ja4_fingerprint_list": {
+ "type": "array",
+ "title": "JA4+ Fingerprints",
+ "items": {
+ "$ref": "Ja4Fingerprint.json"
+ }
+ },
+ "expiration_time": {
+ "type": "integer",
+ "title": "Expiration Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "observation_point_id": {
+ "type": "integer",
+ "title": "Observation Point ID"
+ },
+ "proxy": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "observation_point": {
+ "type": "string",
+ "title": "Observation Point"
+ },
+ "tls": {
+ "$ref": "Tls.json"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/NetworkInterface.json b/components/camel-ocsf/src/main/resources/schema/NetworkInterface.json
new file mode 100644
index 000000000000..da8f87005fe5
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/NetworkInterface.json
@@ -0,0 +1,57 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/network_interface",
+ "title": "NetworkInterface",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.NetworkInterface",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "type": {
+ "type": "string",
+ "title": "Type"
+ },
+ "ip": {
+ "type": "string",
+ "title": "IP Address",
+ "pattern": "((^\\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\\s*$)|(^\\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa- [...]
+ },
+ "hostname": {
+ "type": "string",
+ "title": "Hostname"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "mac": {
+ "type": "string",
+ "title": "MAC Address",
+ "pattern": "^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$"
+ },
+ "namespace": {
+ "type": "string",
+ "title": "Namespace"
+ },
+ "type_id": {
+ "type": "integer",
+ "title": "Type ID"
+ },
+ "open_ports": {
+ "type": "array",
+ "title": "Open Ports",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "subnet_prefix": {
+ "type": "integer",
+ "title": "Subnet Prefix Length"
+ }
+ },
+ "description": "The Network Interface object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/NtpActivity.json b/components/camel-ocsf/src/main/resources/schema/NtpActivity.json
new file mode 100644
index 000000000000..8cd44affa93a
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/NtpActivity.json
@@ -0,0 +1,94 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/ntp_activity",
+ "title": "NtpActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.NtpActivity",
+ "additionalProperties": true,
+ "description": "NtpActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "cumulative_traffic": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "precision": {
+ "type": "integer",
+ "title": "Precision"
+ },
+ "connection_info": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "delay": {
+ "type": "integer",
+ "title": "Root Delay"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "traffic": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "src_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "app_name": {
+ "type": "string",
+ "title": "Application Name"
+ },
+ "dst_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "ja4_fingerprint_list": {
+ "type": "array",
+ "title": "JA4+ Fingerprints",
+ "items": {
+ "$ref": "Ja4Fingerprint.json"
+ }
+ },
+ "observation_point_id": {
+ "type": "integer",
+ "title": "Observation Point ID"
+ },
+ "stratum": {
+ "type": "string",
+ "title": "Stratum"
+ },
+ "proxy": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "observation_point": {
+ "type": "string",
+ "title": "Observation Point"
+ },
+ "dispersion": {
+ "type": "integer",
+ "title": "Root Dispersion"
+ },
+ "tls": {
+ "$ref": "Tls.json"
+ },
+ "stratum_id": {
+ "type": "integer",
+ "title": "Stratum ID"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Observable.json b/components/camel-ocsf/src/main/resources/schema/Observable.json
new file mode 100644
index 000000000000..bcfcbc46cd7f
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Observable.json
@@ -0,0 +1,38 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/observable",
+ "title": "Observable",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Observable",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "type": {
+ "type": "string",
+ "title": "Type"
+ },
+ "value": {
+ "type": "string",
+ "title": "Value"
+ },
+ "type_uid": {
+ "type": "integer",
+ "title": "Type ID"
+ },
+ "type_id": {
+ "type": "integer",
+ "title": "Type ID"
+ },
+ "event_uid": {
+ "type": "string",
+ "title": "Event UID"
+ },
+ "reputation": {
+ "$ref": "Reputation.json"
+ }
+ },
+ "description": "The Observable object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/OcsfEvent.json b/components/camel-ocsf/src/main/resources/schema/OcsfEvent.json
new file mode 100644
index 000000000000..ea67f7621ab0
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/OcsfEvent.json
@@ -0,0 +1,144 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/base_event",
+ "title": "OcsfEvent",
+ "description": "Base OCSF Event - contains common attributes shared by all event classes",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.OcsfEvent",
+ "additionalProperties": true,
+ "properties": {
+ "activity_id": {
+ "type": "integer",
+ "description": "The normalized identifier of the activity that triggered the event."
+ },
+ "activity_name": {
+ "type": "string",
+ "description": "The event activity name, as defined by the activity_id."
+ },
+ "category_name": {
+ "type": "string",
+ "description": "The event category name, as defined by category_uid value."
+ },
+ "category_uid": {
+ "type": "integer",
+ "description": "The category unique identifier of the event."
+ },
+ "class_name": {
+ "type": "string",
+ "description": "The event class name, as defined by class_uid value."
+ },
+ "class_uid": {
+ "type": "integer",
+ "description": "The unique identifier of a class."
+ },
+ "count": {
+ "type": "integer",
+ "description": "The number of times that events in the same logical group occurred during the event Start Time to End Time period."
+ },
+ "duration": {
+ "type": "integer",
+ "existingJavaType": "java.lang.Long",
+ "description": "The event duration or aggregate time, in milliseconds."
+ },
+ "end_time": {
+ "type": "integer",
+ "existingJavaType": "java.lang.Long",
+ "description": "The end time of a time period, or the time of the most recent event included in the aggregate event."
+ },
+ "end_time_dt": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The end time as a datetime string."
+ },
+ "message": {
+ "type": "string",
+ "description": "The description of the event, as defined by the event source."
+ },
+ "raw_data": {
+ "type": "string",
+ "description": "The event data as received from the event source."
+ },
+ "severity": {
+ "type": "string",
+ "description": "The event severity, normalized to the caption of the severity_id value."
+ },
+ "severity_id": {
+ "type": "integer",
+ "description": "The normalized identifier of the event severity."
+ },
+ "start_time": {
+ "type": "integer",
+ "existingJavaType": "java.lang.Long",
+ "description": "The start time of a time period, or the time of the least recent event included in the aggregate event."
+ },
+ "start_time_dt": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The start time as a datetime string."
+ },
+ "status": {
+ "type": "string",
+ "description": "The event status, normalized to the caption of the status_id value."
+ },
+ "status_code": {
+ "type": "string",
+ "description": "The event status code, as reported by the event source."
+ },
+ "status_detail": {
+ "type": "string",
+ "description": "The status details contains additional information about the event outcome."
+ },
+ "status_id": {
+ "type": "integer",
+ "description": "The normalized identifier of the event status."
+ },
+ "time": {
+ "type": "integer",
+ "existingJavaType": "java.lang.Long",
+ "description": "The normalized event occurrence time, in milliseconds since epoch."
+ },
+ "time_dt": {
+ "type": "string",
+ "format": "date-time",
+ "description": "The time as a datetime string."
+ },
+ "timezone_offset": {
+ "type": "integer",
+ "description": "The number of minutes that the reported event time is ahead or behind UTC."
+ },
+ "type_name": {
+ "type": "string",
+ "description": "The event type name."
+ },
+ "type_uid": {
+ "type": "integer",
+ "description": "The event type ID."
+ },
+ "version": {
+ "type": "string",
+ "description": "The version of the OCSF schema."
+ },
+ "metadata": {
+ "$ref": "Metadata.json"
+ },
+ "observables": {
+ "type": "array",
+ "description": "The observables associated with the event.",
+ "items": {
+ "$ref": "Observable.json"
+ }
+ },
+ "unmapped": {
+ "type": "object",
+ "description": "The attributes that are not mapped to the event schema.",
+ "additionalProperties": true
+ }
+ },
+ "required": [
+ "class_uid",
+ "category_uid",
+ "type_uid",
+ "time",
+ "severity_id"
+ ]
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Organization.json b/components/camel-ocsf/src/main/resources/schema/Organization.json
new file mode 100644
index 000000000000..006a3aab2954
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Organization.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/organization",
+ "title": "Organization",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Organization",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "ou_name": {
+ "type": "string",
+ "title": "Org Unit Name"
+ },
+ "ou_uid": {
+ "type": "string",
+ "title": "Org Unit ID"
+ }
+ },
+ "description": "The Organization object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Os.json b/components/camel-ocsf/src/main/resources/schema/Os.json
new file mode 100644
index 000000000000..3ef6b8e6c6d7
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Os.json
@@ -0,0 +1,63 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/os",
+ "title": "Os",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Os",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "type": {
+ "type": "string",
+ "title": "Type"
+ },
+ "version": {
+ "type": "string",
+ "title": "Version"
+ },
+ "build": {
+ "type": "string",
+ "title": "OS Build"
+ },
+ "country": {
+ "type": "string",
+ "title": "Country"
+ },
+ "type_id": {
+ "type": "integer",
+ "title": "Type ID"
+ },
+ "lang": {
+ "type": "string",
+ "title": "Language"
+ },
+ "cpe_name": {
+ "type": "string",
+ "title": "The product CPE identifier"
+ },
+ "cpu_bits": {
+ "type": "integer",
+ "title": "CPU Bits"
+ },
+ "edition": {
+ "type": "string",
+ "title": "OS Edition"
+ },
+ "kernel_release": {
+ "type": "string",
+ "title": "Kernel Release"
+ },
+ "sp_name": {
+ "type": "string",
+ "title": "OS Service Pack"
+ },
+ "sp_ver": {
+ "type": "integer",
+ "title": "OS Service Pack Version"
+ }
+ },
+ "description": "The Operating System (OS) object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Package.json b/components/camel-ocsf/src/main/resources/schema/Package.json
new file mode 100644
index 000000000000..ab878176b729
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Package.json
@@ -0,0 +1,78 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/package",
+ "title": "Package",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Package",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "type": {
+ "type": "string",
+ "title": "Type"
+ },
+ "version": {
+ "type": "string",
+ "title": "Version"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Package UID"
+ },
+ "hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "release": {
+ "type": "string",
+ "title": "Software Release Details"
+ },
+ "epoch": {
+ "type": "integer",
+ "title": "Epoch"
+ },
+ "type_id": {
+ "type": "integer",
+ "title": "Type ID"
+ },
+ "license": {
+ "type": "string",
+ "title": "Software License"
+ },
+ "architecture": {
+ "type": "string",
+ "title": "Architecture"
+ },
+ "cpe_name": {
+ "type": "string",
+ "title": "The product CPE identifier"
+ },
+ "license_url": {
+ "type": "string",
+ "title": "Software License URL"
+ },
+ "package_manager": {
+ "type": "string",
+ "title": "Package Manager"
+ },
+ "package_manager_url": {
+ "type": "string",
+ "title": "Package Manager URL"
+ },
+ "purl": {
+ "type": "string",
+ "title": "Package URL"
+ },
+ "src_url": {
+ "type": "string",
+ "title": "Source URL"
+ },
+ "vendor_name": {
+ "type": "string",
+ "title": "Vendor Name"
+ }
+ },
+ "description": "The Software Package object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Policy.json b/components/camel-ocsf/src/main/resources/schema/Policy.json
new file mode 100644
index 000000000000..f9548b4942a0
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Policy.json
@@ -0,0 +1,50 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/policy",
+ "title": "Policy",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Policy",
+ "additionalProperties": true,
+ "properties": {
+ "data": {
+ "type": [
+ "object",
+ "string",
+ "integer",
+ "number",
+ "boolean",
+ "array",
+ "null"
+ ],
+ "title": "Data"
+ },
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "type": {
+ "type": "string",
+ "title": "Type"
+ },
+ "version": {
+ "type": "string",
+ "title": "Version"
+ },
+ "group": {
+ "$ref": "Group.json"
+ },
+ "desc": {
+ "type": "string",
+ "title": "Description"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "is_applied": {
+ "type": "boolean",
+ "title": "Applied"
+ }
+ },
+ "description": "The Policy object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Process.json b/components/camel-ocsf/src/main/resources/schema/Process.json
new file mode 100644
index 000000000000..832ed4562c24
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Process.json
@@ -0,0 +1,124 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/process",
+ "title": "Process",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Process",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "pid": {
+ "type": "integer",
+ "title": "Process ID"
+ },
+ "session": {
+ "$ref": "Session.json"
+ },
+ "file": {
+ "$ref": "File.json"
+ },
+ "user": {
+ "$ref": "User.json"
+ },
+ "path": {
+ "type": "string",
+ "title": "Path"
+ },
+ "tid": {
+ "type": "integer",
+ "title": "Thread ID"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "loaded_modules": {
+ "type": "array",
+ "title": "Loaded Modules",
+ "items": {
+ "type": "string"
+ }
+ },
+ "ancestry": {
+ "type": "array",
+ "title": "Ancestry",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "cmd_line": {
+ "type": "string",
+ "title": "Command Line"
+ },
+ "cpid": {
+ "type": "string",
+ "title": "Common Process Identifier",
+ "pattern": "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"
+ },
+ "created_time": {
+ "type": "integer",
+ "title": "Created Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "environment_variables": {
+ "type": "array",
+ "title": "Environment Variables",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "integrity": {
+ "type": "string",
+ "title": "Integrity"
+ },
+ "integrity_id": {
+ "type": "integer",
+ "title": "Integrity Level"
+ },
+ "lineage": {
+ "type": "array",
+ "title": "Lineage",
+ "items": {
+ "type": "string"
+ }
+ },
+ "parent_process": {
+ "$ref": "Process.json"
+ },
+ "ptid": {
+ "type": "integer",
+ "title": "Process Thread ID"
+ },
+ "sandbox": {
+ "type": "string",
+ "title": "Sandbox"
+ },
+ "terminated_time": {
+ "type": "integer",
+ "title": "Terminated Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "working_directory": {
+ "type": "string",
+ "title": "Working Directory"
+ },
+ "xattributes": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "hosted_services": {
+ "type": "array",
+ "title": "Hosted Services",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ }
+ },
+ "description": "The Process object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/ProcessActivity.json b/components/camel-ocsf/src/main/resources/schema/ProcessActivity.json
new file mode 100644
index 000000000000..a0f48e8d48cc
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/ProcessActivity.json
@@ -0,0 +1,70 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/process_activity",
+ "title": "ProcessActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.ProcessActivity",
+ "additionalProperties": true,
+ "description": "ProcessActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "actor": {
+ "$ref": "Actor.json"
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "device": {
+ "$ref": "Device.json"
+ },
+ "process": {
+ "$ref": "Process.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "module": {
+ "$ref": "Module.json"
+ },
+ "exit_code": {
+ "type": "integer",
+ "title": "Exit Code"
+ },
+ "actual_permissions": {
+ "type": "integer",
+ "title": "Actual Permissions"
+ },
+ "injection_type_id": {
+ "type": "integer",
+ "title": "Injection Type ID"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "launch_type_id": {
+ "type": "integer",
+ "title": "Launch Type ID"
+ },
+ "injection_type": {
+ "type": "string",
+ "title": "Injection Type"
+ },
+ "requested_permissions": {
+ "type": "integer",
+ "title": "Requested Permissions"
+ },
+ "launch_type": {
+ "type": "string",
+ "title": "Launch Type"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Product.json b/components/camel-ocsf/src/main/resources/schema/Product.json
new file mode 100644
index 000000000000..8081b6694fc8
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Product.json
@@ -0,0 +1,46 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/product",
+ "title": "Product",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Product",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "version": {
+ "type": "string",
+ "title": "Version"
+ },
+ "path": {
+ "type": "string",
+ "title": "Path"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "feature": {
+ "$ref": "Feature.json"
+ },
+ "lang": {
+ "type": "string",
+ "title": "Language"
+ },
+ "cpe_name": {
+ "type": "string",
+ "title": "The product CPE identifier"
+ },
+ "url_string": {
+ "type": "string",
+ "title": "URL String"
+ },
+ "vendor_name": {
+ "type": "string",
+ "title": "Vendor Name"
+ }
+ },
+ "description": "The Product object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/RdpActivity.json b/components/camel-ocsf/src/main/resources/schema/RdpActivity.json
new file mode 100644
index 000000000000..f661679db350
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/RdpActivity.json
@@ -0,0 +1,118 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/rdp_activity",
+ "title": "RdpActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.RdpActivity",
+ "additionalProperties": true,
+ "description": "RdpActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "cumulative_traffic": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "connection_info": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "keyboard_info": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "protocol_ver": {
+ "type": "string",
+ "title": "RDP Version"
+ },
+ "device": {
+ "$ref": "Device.json"
+ },
+ "remote_display": {
+ "$ref": "Display.json"
+ },
+ "file": {
+ "$ref": "File.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "traffic": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "capabilities": {
+ "type": "array",
+ "title": "Capabilities",
+ "items": {
+ "type": "string"
+ }
+ },
+ "src_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "app_name": {
+ "type": "string",
+ "title": "Application Name"
+ },
+ "identifier_cookie": {
+ "type": "string",
+ "title": "Identifier Cookie"
+ },
+ "user": {
+ "$ref": "User.json"
+ },
+ "certificate_chain": {
+ "type": "array",
+ "title": "Certificate Chain",
+ "items": {
+ "type": "string"
+ }
+ },
+ "dst_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "response": {
+ "$ref": "Response.json"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "ja4_fingerprint_list": {
+ "type": "array",
+ "title": "JA4+ Fingerprints",
+ "items": {
+ "$ref": "Ja4Fingerprint.json"
+ }
+ },
+ "request": {
+ "$ref": "Request.json"
+ },
+ "observation_point_id": {
+ "type": "integer",
+ "title": "Observation Point ID"
+ },
+ "proxy": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "observation_point": {
+ "type": "string",
+ "title": "Observation Point"
+ },
+ "tls": {
+ "$ref": "Tls.json"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Remediation.json b/components/camel-ocsf/src/main/resources/schema/Remediation.json
new file mode 100644
index 000000000000..30dea8483247
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Remediation.json
@@ -0,0 +1,44 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/remediation",
+ "title": "Remediation",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Remediation",
+ "additionalProperties": true,
+ "properties": {
+ "desc": {
+ "type": "string",
+ "title": "Description"
+ },
+ "references": {
+ "type": "array",
+ "title": "References",
+ "items": {
+ "type": "string"
+ }
+ },
+ "cis_controls": {
+ "type": "array",
+ "title": "CIS Controls",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "kb_article_list": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "KbArticle.json"
+ }
+ },
+ "kb_articles": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "KbArticle.json"
+ }
+ }
+ },
+ "description": "The Remediation object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/RemediationActivity.json b/components/camel-ocsf/src/main/resources/schema/RemediationActivity.json
new file mode 100644
index 000000000000..d695116bfdac
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/RemediationActivity.json
@@ -0,0 +1,48 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/remediation_activity",
+ "title": "RemediationActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.RemediationActivity",
+ "additionalProperties": true,
+ "description": "RemediationActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "scan": {
+ "$ref": "Scan.json"
+ },
+ "command_uid": {
+ "type": "string",
+ "title": "Command UID"
+ },
+ "remediation": {
+ "$ref": "Remediation.json"
+ },
+ "countermeasures": {
+ "type": "array",
+ "title": "Countermeasures",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Reputation.json b/components/camel-ocsf/src/main/resources/schema/Reputation.json
new file mode 100644
index 000000000000..bc167d7c718f
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Reputation.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/reputation",
+ "title": "Reputation",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Reputation",
+ "additionalProperties": true,
+ "properties": {
+ "base_score": {
+ "type": "number",
+ "title": "Reputation Score"
+ },
+ "provider": {
+ "type": "string",
+ "title": "Provider"
+ },
+ "score": {
+ "type": "string",
+ "title": "Reputation Score"
+ },
+ "score_id": {
+ "type": "integer",
+ "title": "Reputation Score ID"
+ }
+ },
+ "description": "The Reputation object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Request.json b/components/camel-ocsf/src/main/resources/schema/Request.json
new file mode 100644
index 000000000000..04a545254a6f
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Request.json
@@ -0,0 +1,41 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/request",
+ "title": "Request",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Request",
+ "additionalProperties": true,
+ "properties": {
+ "data": {
+ "type": [
+ "object",
+ "string",
+ "integer",
+ "number",
+ "boolean",
+ "array",
+ "null"
+ ],
+ "title": "Data"
+ },
+ "flags": {
+ "type": "array",
+ "title": "Flags",
+ "items": {
+ "type": "string"
+ }
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "containers": {
+ "type": "array",
+ "title": "Containers",
+ "items": {
+ "$ref": "Container.json"
+ }
+ }
+ },
+ "description": "The Request Elements object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/ResourceDetails.json b/components/camel-ocsf/src/main/resources/schema/ResourceDetails.json
new file mode 100644
index 000000000000..397e676cd7e4
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/ResourceDetails.json
@@ -0,0 +1,114 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/resource_details",
+ "title": "ResourceDetails",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.ResourceDetails",
+ "additionalProperties": true,
+ "properties": {
+ "data": {
+ "type": [
+ "object",
+ "string",
+ "integer",
+ "number",
+ "boolean",
+ "array",
+ "null"
+ ],
+ "title": "Data"
+ },
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "owner": {
+ "$ref": "User.json"
+ },
+ "type": {
+ "type": "string",
+ "title": "Type"
+ },
+ "version": {
+ "type": "string",
+ "title": "Version"
+ },
+ "ip": {
+ "type": "string",
+ "title": "IP Address",
+ "pattern": "((^\\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\\s*$)|(^\\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa- [...]
+ },
+ "group": {
+ "$ref": "Group.json"
+ },
+ "hostname": {
+ "type": "string",
+ "title": "Hostname"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "labels": {
+ "type": "array",
+ "title": "Labels",
+ "items": {
+ "type": "string"
+ }
+ },
+ "namespace": {
+ "type": "string",
+ "title": "Namespace"
+ },
+ "role": {
+ "type": "string",
+ "title": "Role"
+ },
+ "tags": {
+ "type": "array",
+ "title": "Tags",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "agent_list": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Agent.json"
+ }
+ },
+ "created_time": {
+ "type": "integer",
+ "title": "Created Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "criticality": {
+ "type": "string",
+ "title": "Criticality"
+ },
+ "is_backed_up": {
+ "type": "boolean",
+ "title": "Back Ups Configured"
+ },
+ "modified_time": {
+ "type": "integer",
+ "title": "Modified Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "resource_relationship": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "role_id": {
+ "type": "integer",
+ "title": "Role ID"
+ },
+ "uid_alt": {
+ "type": "string",
+ "title": "Alternate ID"
+ }
+ },
+ "description": "The Resource Details object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Response.json b/components/camel-ocsf/src/main/resources/schema/Response.json
new file mode 100644
index 000000000000..a69c37874d22
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Response.json
@@ -0,0 +1,53 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/response",
+ "title": "Response",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Response",
+ "additionalProperties": true,
+ "properties": {
+ "error": {
+ "type": "string",
+ "title": "Error Code"
+ },
+ "code": {
+ "type": "integer",
+ "title": "Response Code"
+ },
+ "data": {
+ "type": [
+ "object",
+ "string",
+ "integer",
+ "number",
+ "boolean",
+ "array",
+ "null"
+ ],
+ "title": "Data"
+ },
+ "flags": {
+ "type": "array",
+ "title": "Flags",
+ "items": {
+ "type": "string"
+ }
+ },
+ "message": {
+ "type": "string",
+ "title": "Message"
+ },
+ "containers": {
+ "type": "array",
+ "title": "Containers",
+ "items": {
+ "$ref": "Container.json"
+ }
+ },
+ "error_message": {
+ "type": "string",
+ "title": "Error Message"
+ }
+ },
+ "description": "The Response Elements object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Rule.json b/components/camel-ocsf/src/main/resources/schema/Rule.json
new file mode 100644
index 000000000000..e400e5f8bcfb
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Rule.json
@@ -0,0 +1,35 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/rule",
+ "title": "Rule",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Rule",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "type": {
+ "type": "string",
+ "title": "Type"
+ },
+ "version": {
+ "type": "string",
+ "title": "Version"
+ },
+ "desc": {
+ "type": "string",
+ "title": "Description"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "category": {
+ "type": "string",
+ "title": "Category"
+ }
+ },
+ "description": "The Rule object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/San.json b/components/camel-ocsf/src/main/resources/schema/San.json
new file mode 100644
index 000000000000..7db092ebb24b
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/San.json
@@ -0,0 +1,19 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/san",
+ "title": "San",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.San",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "type": {
+ "type": "string",
+ "title": "Type"
+ }
+ },
+ "description": "The Subject Alternative Name object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Scan.json b/components/camel-ocsf/src/main/resources/schema/Scan.json
new file mode 100644
index 000000000000..d39d3480c142
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Scan.json
@@ -0,0 +1,27 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/scan",
+ "title": "Scan",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Scan",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "type": {
+ "type": "string",
+ "title": "Type"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Scan UID"
+ },
+ "type_id": {
+ "type": "integer",
+ "title": "Type ID"
+ }
+ },
+ "description": "The Scan object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/ScanActivity.json b/components/camel-ocsf/src/main/resources/schema/ScanActivity.json
new file mode 100644
index 000000000000..25fd7122991b
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/ScanActivity.json
@@ -0,0 +1,84 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/scan_activity",
+ "title": "ScanActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.ScanActivity",
+ "additionalProperties": true,
+ "description": "ScanActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "schedule_uid": {
+ "type": "string",
+ "title": "Schedule UID"
+ },
+ "total": {
+ "type": "integer",
+ "title": "Total"
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "num_processes": {
+ "type": "integer",
+ "title": "Scanned Processes"
+ },
+ "num_skipped_items": {
+ "type": "integer",
+ "title": "Skipped"
+ },
+ "num_registry_items": {
+ "type": "integer",
+ "title": "Scanned Registry Items"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "scan": {
+ "$ref": "Scan.json"
+ },
+ "num_resolutions": {
+ "type": "integer",
+ "title": "Resolutions"
+ },
+ "num_network_items": {
+ "type": "integer",
+ "title": "Scanned Network Items"
+ },
+ "command_uid": {
+ "type": "string",
+ "title": "Command UID"
+ },
+ "num_files": {
+ "type": "integer",
+ "title": "Scanned Files"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "num_trusted_items": {
+ "type": "integer",
+ "title": "Trusted"
+ },
+ "policy": {
+ "$ref": "Policy.json"
+ },
+ "num_detections": {
+ "type": "integer",
+ "title": "Detections"
+ },
+ "num_folders": {
+ "type": "integer",
+ "title": "Scanned Folders"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/ScheduledJobActivity.json b/components/camel-ocsf/src/main/resources/schema/ScheduledJobActivity.json
new file mode 100644
index 000000000000..7bc5c5b65199
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/ScheduledJobActivity.json
@@ -0,0 +1,40 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/scheduled_job_activity",
+ "title": "ScheduledJobActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.ScheduledJobActivity",
+ "additionalProperties": true,
+ "description": "ScheduledJobActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "actor": {
+ "$ref": "Actor.json"
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "device": {
+ "$ref": "Device.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "job": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/SecurityFinding.json b/components/camel-ocsf/src/main/resources/schema/SecurityFinding.json
new file mode 100644
index 000000000000..abedb0763ded
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/SecurityFinding.json
@@ -0,0 +1,156 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/security_finding",
+ "title": "SecurityFinding",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.SecurityFinding",
+ "additionalProperties": true,
+ "description": "SecurityFinding event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "impact": {
+ "type": "string",
+ "title": "Impact"
+ },
+ "resources": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "ResourceDetails.json"
+ }
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "risk_score": {
+ "type": "integer",
+ "title": "Risk Score"
+ },
+ "process": {
+ "$ref": "Process.json"
+ },
+ "state": {
+ "type": "string",
+ "title": "State"
+ },
+ "kill_chain": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "KillChainPhase.json"
+ }
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "confidence_score": {
+ "type": "integer",
+ "title": "Confidence Score"
+ },
+ "state_id": {
+ "type": "integer",
+ "title": "State ID"
+ },
+ "impact_id": {
+ "type": "integer",
+ "title": "Impact ID"
+ },
+ "finding": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "malware": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Malware.json"
+ }
+ },
+ "confidence_id": {
+ "type": "integer",
+ "title": "Confidence ID"
+ },
+ "evidence": {
+ "type": [
+ "object",
+ "string",
+ "integer",
+ "number",
+ "boolean",
+ "array",
+ "null"
+ ],
+ "title": "Evidence"
+ },
+ "cis_csc": {
+ "type": "array",
+ "title": "CIS CSC",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "analytic": {
+ "$ref": "Analytic.json"
+ },
+ "vulnerabilities": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Vulnerability.json"
+ }
+ },
+ "risk_level_id": {
+ "type": "integer",
+ "title": "Risk Level ID"
+ },
+ "compliance": {
+ "$ref": "Compliance.json"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "attacks": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Attack.json"
+ }
+ },
+ "impact_score": {
+ "type": "integer",
+ "title": "Impact Score"
+ },
+ "confidence": {
+ "type": "string",
+ "title": "Confidence"
+ },
+ "nist": {
+ "type": "array",
+ "title": "NIST List",
+ "items": {
+ "type": "string"
+ }
+ },
+ "risk_level": {
+ "type": "string",
+ "title": "Risk Level"
+ },
+ "data_sources": {
+ "type": "array",
+ "title": "Data Sources",
+ "items": {
+ "type": "string"
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Service.json b/components/camel-ocsf/src/main/resources/schema/Service.json
new file mode 100644
index 000000000000..59a72024a957
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Service.json
@@ -0,0 +1,38 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/service",
+ "title": "Service",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Service",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "version": {
+ "type": "string",
+ "title": "Version"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "labels": {
+ "type": "array",
+ "title": "Labels",
+ "items": {
+ "type": "string"
+ }
+ },
+ "tags": {
+ "type": "array",
+ "title": "Tags",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ }
+ },
+ "description": "The Service object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Session.json b/components/camel-ocsf/src/main/resources/schema/Session.json
new file mode 100644
index 000000000000..5e21b3aec6aa
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Session.json
@@ -0,0 +1,66 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/session",
+ "title": "Session",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Session",
+ "additionalProperties": true,
+ "properties": {
+ "count": {
+ "type": "integer",
+ "title": "Count"
+ },
+ "terminal": {
+ "type": "string",
+ "title": "Terminal"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "uuid": {
+ "type": "string",
+ "title": "UUID",
+ "pattern": "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"
+ },
+ "issuer": {
+ "type": "string",
+ "title": "Issuer Details"
+ },
+ "created_time": {
+ "type": "integer",
+ "title": "Created Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "credential_uid": {
+ "type": "string",
+ "title": "User Credential ID"
+ },
+ "expiration_reason": {
+ "type": "string",
+ "title": "Expiration Reason"
+ },
+ "expiration_time": {
+ "type": "integer",
+ "title": "Expiration Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "is_mfa": {
+ "type": "boolean",
+ "title": "Multi Factor Authentication"
+ },
+ "is_remote": {
+ "type": "boolean",
+ "title": "Remote"
+ },
+ "is_vpn": {
+ "type": "boolean",
+ "title": "VPN Session"
+ },
+ "uid_alt": {
+ "type": "string",
+ "title": "Alternate ID"
+ }
+ },
+ "description": "The Session object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/SmbActivity.json b/components/camel-ocsf/src/main/resources/schema/SmbActivity.json
new file mode 100644
index 000000000000..f0cb8b8d94d3
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/SmbActivity.json
@@ -0,0 +1,119 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/smb_activity",
+ "title": "SmbActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.SmbActivity",
+ "additionalProperties": true,
+ "description": "SmbActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "client_dialects": {
+ "type": "array",
+ "title": "Client Dialects",
+ "items": {
+ "type": "string"
+ }
+ },
+ "cumulative_traffic": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "connection_info": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "share": {
+ "type": "string",
+ "title": "Share"
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "open_type": {
+ "type": "string",
+ "title": "Open Type"
+ },
+ "file": {
+ "$ref": "File.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "traffic": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "share_type": {
+ "type": "string",
+ "title": "Share Type"
+ },
+ "src_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "app_name": {
+ "type": "string",
+ "title": "Application Name"
+ },
+ "share_type_id": {
+ "type": "integer",
+ "title": "Share Type ID"
+ },
+ "command": {
+ "type": "string",
+ "title": "Command"
+ },
+ "dst_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "response": {
+ "$ref": "Response.json"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "ja4_fingerprint_list": {
+ "type": "array",
+ "title": "JA4+ Fingerprints",
+ "items": {
+ "$ref": "Ja4Fingerprint.json"
+ }
+ },
+ "tree_uid": {
+ "type": "string",
+ "title": "Tree UID"
+ },
+ "observation_point_id": {
+ "type": "integer",
+ "title": "Observation Point ID"
+ },
+ "proxy": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "dialect": {
+ "type": "string",
+ "title": "Dialect"
+ },
+ "dce_rpc": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "observation_point": {
+ "type": "string",
+ "title": "Observation Point"
+ },
+ "tls": {
+ "$ref": "Tls.json"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/SshActivity.json b/components/camel-ocsf/src/main/resources/schema/SshActivity.json
new file mode 100644
index 000000000000..c571065349fc
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/SshActivity.json
@@ -0,0 +1,97 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/ssh_activity",
+ "title": "SshActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.SshActivity",
+ "additionalProperties": true,
+ "description": "SshActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "cumulative_traffic": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "connection_info": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "auth_type_id": {
+ "type": "integer",
+ "title": "Authentication Type ID"
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "protocol_ver": {
+ "type": "string",
+ "title": "SSH Version"
+ },
+ "file": {
+ "$ref": "File.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "traffic": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "src_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "app_name": {
+ "type": "string",
+ "title": "Application Name"
+ },
+ "client_hassh": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "dst_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "ja4_fingerprint_list": {
+ "type": "array",
+ "title": "JA4+ Fingerprints",
+ "items": {
+ "$ref": "Ja4Fingerprint.json"
+ }
+ },
+ "observation_point_id": {
+ "type": "integer",
+ "title": "Observation Point ID"
+ },
+ "auth_type": {
+ "type": "string",
+ "title": "Authentication Type"
+ },
+ "proxy": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "observation_point": {
+ "type": "string",
+ "title": "Observation Point"
+ },
+ "server_hassh": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "tls": {
+ "$ref": "Tls.json"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/SubTechnique.json b/components/camel-ocsf/src/main/resources/schema/SubTechnique.json
new file mode 100644
index 000000000000..fac7b873cbf6
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/SubTechnique.json
@@ -0,0 +1,23 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/sub_technique",
+ "title": "SubTechnique",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.SubTechnique",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "src_url": {
+ "type": "string",
+ "title": "Source URL"
+ }
+ },
+ "description": "The MITRE Sub-technique object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Tactic.json b/components/camel-ocsf/src/main/resources/schema/Tactic.json
new file mode 100644
index 000000000000..b703d83d4f92
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Tactic.json
@@ -0,0 +1,23 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/tactic",
+ "title": "Tactic",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Tactic",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "src_url": {
+ "type": "string",
+ "title": "Source URL"
+ }
+ },
+ "description": "The MITRE Tactic object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Technique.json b/components/camel-ocsf/src/main/resources/schema/Technique.json
new file mode 100644
index 000000000000..f6f234b3a488
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Technique.json
@@ -0,0 +1,23 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/technique",
+ "title": "Technique",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Technique",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "src_url": {
+ "type": "string",
+ "title": "Source URL"
+ }
+ },
+ "description": "The MITRE Technique object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Ticket.json b/components/camel-ocsf/src/main/resources/schema/Ticket.json
new file mode 100644
index 000000000000..48eab875fbab
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Ticket.json
@@ -0,0 +1,46 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/ticket",
+ "title": "Ticket",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Ticket",
+ "additionalProperties": true,
+ "properties": {
+ "status": {
+ "type": "string",
+ "title": "Ticket Status"
+ },
+ "type": {
+ "type": "string",
+ "title": "Ticket Type"
+ },
+ "title": {
+ "type": "string",
+ "title": "Title"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "type_id": {
+ "type": "integer",
+ "title": "Ticket Type ID"
+ },
+ "src_url": {
+ "type": "string",
+ "title": "Source URL"
+ },
+ "status_details": {
+ "type": "array",
+ "title": "Status Details",
+ "items": {
+ "type": "string"
+ }
+ },
+ "status_id": {
+ "type": "integer",
+ "title": "Ticket Status ID"
+ }
+ },
+ "description": "The Ticket object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Tls.json b/components/camel-ocsf/src/main/resources/schema/Tls.json
new file mode 100644
index 000000000000..b420e3db7e6c
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Tls.json
@@ -0,0 +1,88 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/tls",
+ "title": "Tls",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Tls",
+ "additionalProperties": true,
+ "properties": {
+ "version": {
+ "type": "string",
+ "title": "Version"
+ },
+ "alert": {
+ "type": "integer",
+ "title": "Client TLS Alert"
+ },
+ "key_length": {
+ "type": "integer",
+ "title": "Key Length"
+ },
+ "certificate": {
+ "$ref": "Certificate.json"
+ },
+ "cipher": {
+ "type": "string",
+ "title": "Cipher Suite"
+ },
+ "certificate_chain": {
+ "type": "array",
+ "title": "Certificate Chain",
+ "items": {
+ "type": "string"
+ }
+ },
+ "sni": {
+ "type": "string",
+ "title": "Server Name Indication"
+ },
+ "client_ciphers": {
+ "type": "array",
+ "title": "Client Cipher Suites",
+ "items": {
+ "type": "string"
+ }
+ },
+ "extension_list": {
+ "type": "array",
+ "title": "Extension List",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "handshake_dur": {
+ "type": "integer",
+ "title": "Handshake Duration"
+ },
+ "ja3_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "ja3s_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "sans": {
+ "type": "array",
+ "title": "Subject Alternative Names",
+ "items": {
+ "$ref": "San.json"
+ }
+ },
+ "server_ciphers": {
+ "type": "array",
+ "title": "Server Cipher Suites",
+ "items": {
+ "type": "string"
+ }
+ },
+ "tls_extension_list": {
+ "type": "array",
+ "title": "TLS Extension List",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ }
+ },
+ "description": "The Transport Layer Security (TLS) object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Url.json b/components/camel-ocsf/src/main/resources/schema/Url.json
new file mode 100644
index 000000000000..b11a26817fe9
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Url.json
@@ -0,0 +1,152 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/url",
+ "title": "Url",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Url",
+ "additionalProperties": true,
+ "properties": {
+ "port": {
+ "type": "integer",
+ "title": "Port",
+ "minimum": 0,
+ "maximum": 65535
+ },
+ "scheme": {
+ "type": "string",
+ "title": "Scheme"
+ },
+ "path": {
+ "type": "string",
+ "title": "Path"
+ },
+ "domain": {
+ "type": "string",
+ "title": "Domain"
+ },
+ "hostname": {
+ "type": "string",
+ "title": "Hostname"
+ },
+ "query_string": {
+ "type": "string",
+ "title": "HTTP Query String"
+ },
+ "categories": {
+ "type": "array",
+ "title": "Website Categorization",
+ "items": {
+ "type": "string"
+ }
+ },
+ "category_ids": {
+ "type": "array",
+ "title": "Website Categorization IDs",
+ "items": {
+ "type": "integer",
+ "enum": [
+ 5,
+ 83,
+ 35,
+ 6,
+ 93,
+ 65,
+ 64,
+ 11,
+ 49,
+ 32,
+ 51,
+ 27,
+ 97,
+ 66,
+ 50,
+ 96,
+ 86,
+ 98,
+ 52,
+ 25,
+ 38,
+ 85,
+ 110,
+ 23,
+ 29,
+ 118,
+ 53,
+ 56,
+ 3,
+ 36,
+ 17,
+ 9,
+ 63,
+ 89,
+ 112,
+ 121,
+ 44,
+ 107,
+ 68,
+ 33,
+ 92,
+ 114,
+ 106,
+ 45,
+ 108,
+ 55,
+ 84,
+ 101,
+ 111,
+ 87,
+ 4,
+ 0,
+ 15,
+ 88,
+ 20,
+ 40,
+ 18,
+ 71,
+ 61,
+ 30,
+ 22,
+ 47,
+ 14,
+ 59,
+ 58,
+ 60,
+ 95,
+ 113,
+ 16,
+ 54,
+ 46,
+ 67,
+ 103,
+ 24,
+ 57,
+ 109,
+ 102,
+ 7,
+ 99,
+ 34,
+ 26,
+ 43,
+ 90,
+ 37,
+ 31,
+ 21,
+ 1
+ ]
+ }
+ },
+ "resource_type": {
+ "type": "string",
+ "title": "Resource Type"
+ },
+ "subdomain": {
+ "type": "string",
+ "title": "Subdomain"
+ },
+ "url_string": {
+ "type": "string",
+ "title": "URL String"
+ }
+ },
+ "description": "The Uniform Resource Locator object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/User.json b/components/camel-ocsf/src/main/resources/schema/User.json
new file mode 100644
index 000000000000..9442085fa780
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/User.json
@@ -0,0 +1,102 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/user",
+ "title": "User",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.User",
+ "additionalProperties": true,
+ "properties": {
+ "name": {
+ "type": "string",
+ "title": "Name"
+ },
+ "type": {
+ "type": "string",
+ "title": "Type"
+ },
+ "domain": {
+ "type": "string",
+ "title": "Domain"
+ },
+ "uid": {
+ "type": "string",
+ "title": "Unique ID"
+ },
+ "org": {
+ "$ref": "Organization.json"
+ },
+ "groups": {
+ "type": "array",
+ "title": "Groups",
+ "items": {
+ "$ref": "Group.json"
+ }
+ },
+ "type_id": {
+ "type": "integer",
+ "title": "Type ID"
+ },
+ "full_name": {
+ "type": "string",
+ "title": "Full Name"
+ },
+ "account": {
+ "$ref": "Account.json"
+ },
+ "credential_uid": {
+ "type": "string",
+ "title": "User Credential ID"
+ },
+ "display_name": {
+ "type": "string",
+ "title": "Display Name"
+ },
+ "email_addr": {
+ "type": "string",
+ "title": "Email Address",
+ "pattern": "^[a-zA-Z0-9!#$%&'*+-/=?^_`{|}~.]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$"
+ },
+ "forward_addr": {
+ "type": "string",
+ "title": "Forwarding Address",
+ "pattern": "^[a-zA-Z0-9!#$%&'*+-/=?^_`{|}~.]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$"
+ },
+ "has_mfa": {
+ "type": "boolean",
+ "title": "MFA Assigned"
+ },
+ "ldap_person": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "phone_number": {
+ "type": "string",
+ "title": "Telephone Number"
+ },
+ "programmatic_credentials": {
+ "type": "array",
+ "title": "Programmatic Credentials",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "risk_level": {
+ "type": "string",
+ "title": "Risk Level"
+ },
+ "risk_level_id": {
+ "type": "integer",
+ "title": "Risk Level ID"
+ },
+ "risk_score": {
+ "type": "integer",
+ "title": "Risk Score"
+ },
+ "uid_alt": {
+ "type": "string",
+ "title": "Alternate ID"
+ }
+ },
+ "description": "The User object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/UserAccess.json b/components/camel-ocsf/src/main/resources/schema/UserAccess.json
new file mode 100644
index 000000000000..3a3bcd1abe17
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/UserAccess.json
@@ -0,0 +1,62 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/user_access",
+ "title": "UserAccess",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.UserAccess",
+ "additionalProperties": true,
+ "description": "UserAccess event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "privileges": {
+ "type": "array",
+ "title": "Privileges",
+ "items": {
+ "type": "string"
+ }
+ },
+ "actor": {
+ "$ref": "Actor.json"
+ },
+ "resources": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "ResourceDetails.json"
+ }
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "http_response": {
+ "$ref": "HttpResponse.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "http_request": {
+ "$ref": "HttpRequest.json"
+ },
+ "src_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "user": {
+ "$ref": "User.json"
+ },
+ "resource": {
+ "$ref": "ResourceDetails.json"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/VendorAttributes.json b/components/camel-ocsf/src/main/resources/schema/VendorAttributes.json
new file mode 100644
index 000000000000..2a0072c79d99
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/VendorAttributes.json
@@ -0,0 +1,19 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/vendor_attributes",
+ "title": "VendorAttributes",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.VendorAttributes",
+ "additionalProperties": true,
+ "properties": {
+ "severity": {
+ "type": "string",
+ "title": "Severity"
+ },
+ "severity_id": {
+ "type": "integer",
+ "title": "Severity ID"
+ }
+ },
+ "description": "The Vendor Attributes object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/Vulnerability.json b/components/camel-ocsf/src/main/resources/schema/Vulnerability.json
new file mode 100644
index 000000000000..15d58565ae9b
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/Vulnerability.json
@@ -0,0 +1,146 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/objects/vulnerability",
+ "title": "Vulnerability",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.Vulnerability",
+ "additionalProperties": true,
+ "properties": {
+ "title": {
+ "type": "string",
+ "title": "Title"
+ },
+ "desc": {
+ "type": "string",
+ "title": "Description"
+ },
+ "category": {
+ "type": "string",
+ "title": "Category"
+ },
+ "severity": {
+ "type": "string",
+ "title": "Severity"
+ },
+ "references": {
+ "type": "array",
+ "title": "References",
+ "items": {
+ "type": "string"
+ }
+ },
+ "remediation": {
+ "$ref": "Remediation.json"
+ },
+ "advisory": {
+ "type": "object",
+ "additionalProperties": true
+ },
+ "affected_code": {
+ "type": "array",
+ "title": "Affected Code",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "affected_packages": {
+ "type": "array",
+ "title": "Affected Software Packages",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "cve": {
+ "$ref": "Cve.json"
+ },
+ "cwe": {
+ "$ref": "Cwe.json"
+ },
+ "dependency_chain": {
+ "type": "string",
+ "title": "Dependency Chain"
+ },
+ "exploit_last_seen_time": {
+ "type": "integer",
+ "title": "Exploit Last Seen Time",
+ "existingJavaType": "java.lang.Long"
+ },
+ "exploit_ref_url": {
+ "type": "string",
+ "title": "Exploit URL"
+ },
+ "exploit_requirement": {
+ "type": "string",
+ "title": "Exploit Requirement"
+ },
+ "exploit_type": {
+ "type": "string",
+ "title": "Exploit Type"
+ },
+ "first_seen_time": {
+ "type": "integer",
+ "title": "First Seen",
+ "existingJavaType": "java.lang.Long"
+ },
+ "fix_available": {
+ "type": "boolean",
+ "title": "Fix Availability"
+ },
+ "fix_coverage": {
+ "type": "string",
+ "title": "Fix Coverage"
+ },
+ "fix_coverage_id": {
+ "type": "integer",
+ "title": "Fix Coverage ID"
+ },
+ "is_exploit_available": {
+ "type": "boolean",
+ "title": "Exploit Availability"
+ },
+ "is_fix_available": {
+ "type": "boolean",
+ "title": "Fix Availability"
+ },
+ "kb_article_list": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "KbArticle.json"
+ }
+ },
+ "kb_articles": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "KbArticle.json"
+ }
+ },
+ "last_seen_time": {
+ "type": "integer",
+ "title": "Last Seen",
+ "existingJavaType": "java.lang.Long"
+ },
+ "packages": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Package.json"
+ }
+ },
+ "related_vulnerabilities": {
+ "type": "array",
+ "title": "Related Vulnerability IDs",
+ "items": {
+ "type": "string"
+ }
+ },
+ "vendor_name": {
+ "type": "string",
+ "title": "Vendor Name"
+ }
+ },
+ "description": "The Vulnerability Details object."
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/VulnerabilityFinding.json b/components/camel-ocsf/src/main/resources/schema/VulnerabilityFinding.json
new file mode 100644
index 000000000000..63f27baa8148
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/VulnerabilityFinding.json
@@ -0,0 +1,72 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/vulnerability_finding",
+ "title": "VulnerabilityFinding",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.VulnerabilityFinding",
+ "additionalProperties": true,
+ "description": "VulnerabilityFinding event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "resources": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "ResourceDetails.json"
+ }
+ },
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "finding_info": {
+ "$ref": "FindingInfo.json"
+ },
+ "device": {
+ "$ref": "Device.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "confidence_score": {
+ "type": "integer",
+ "title": "Confidence Score"
+ },
+ "confidence_id": {
+ "type": "integer",
+ "title": "Confidence ID"
+ },
+ "comment": {
+ "type": "string",
+ "title": "Comment"
+ },
+ "resource": {
+ "$ref": "ResourceDetails.json"
+ },
+ "vulnerabilities": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Vulnerability.json"
+ }
+ },
+ "vendor_attributes": {
+ "$ref": "VendorAttributes.json"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "confidence": {
+ "type": "string",
+ "title": "Confidence"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/resources/schema/WebResourcesActivity.json b/components/camel-ocsf/src/main/resources/schema/WebResourcesActivity.json
new file mode 100644
index 000000000000..75f681766f03
--- /dev/null
+++ b/components/camel-ocsf/src/main/resources/schema/WebResourcesActivity.json
@@ -0,0 +1,61 @@
+{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "$id": "https://schema.ocsf.io/1.7.0/classes/web_resources_activity",
+ "title": "WebResourcesActivity",
+ "type": "object",
+ "javaType": "org.apache.camel.dataformat.ocsf.model.WebResourcesActivity",
+ "additionalProperties": true,
+ "description": "WebResourcesActivity event class.",
+ "allOf": [
+ {
+ "$ref": "OcsfEvent.json"
+ }
+ ],
+ "properties": {
+ "raw_data_size": {
+ "type": "integer",
+ "title": "Raw Data Size"
+ },
+ "http_response": {
+ "$ref": "HttpResponse.json"
+ },
+ "enrichments": {
+ "type": "array",
+ "description": "",
+ "items": {
+ "$ref": "Enrichment.json"
+ }
+ },
+ "http_request": {
+ "$ref": "HttpRequest.json"
+ },
+ "src_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "web_resources": {
+ "type": "array",
+ "title": "Web Resources",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "dst_endpoint": {
+ "$ref": "NetworkEndpoint.json"
+ },
+ "raw_data_hash": {
+ "$ref": "Fingerprint.json"
+ },
+ "web_resources_result": {
+ "type": "array",
+ "title": "Web Resources Result",
+ "items": {
+ "type": "object",
+ "additionalProperties": true
+ }
+ },
+ "tls": {
+ "$ref": "Tls.json"
+ }
+ }
+}
\ No newline at end of file
diff --git a/components/camel-ocsf/src/main/script/generate-ocsf-schemas.py b/components/camel-ocsf/src/main/script/generate-ocsf-schemas.py
new file mode 100644
index 000000000000..dc0029ef8120
--- /dev/null
+++ b/components/camel-ocsf/src/main/script/generate-ocsf-schemas.py
@@ -0,0 +1,692 @@
+#!/usr/bin/env python3
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+"""
+OCSF JSON Schema Generator for Apache Camel
+
+This script generates JSON Schema files from the official OCSF schema that are
+compatible with the jsonschema2pojo Maven plugin.
+
+Key features:
+- Generates individual .json schema files for each class and object
+- Uses file-based $ref references (e.g., "$ref": "Attack.json")
+- Includes javaType annotations for proper class naming
+- Uses JSON Schema Draft-07 format
+
+Usage:
+ pip install ocsf-json-schema
+ python generate-ocsf-schemas.py --version 1.7.0 --output ../resources/schema
+
+The generated schemas are used by the jsonschema2pojo Maven plugin to generate
+Java POJOs at build time.
+"""
+
+import argparse
+import json
+import sys
+from pathlib import Path
+
+try:
+ from ocsf_json_schema import OcsfJsonSchemaEmbedded, get_ocsf_schema
+except ImportError:
+ print("Error: ocsf-json-schema package not found.")
+ print("Install it with: pip install ocsf-json-schema")
+ sys.exit(1)
+
+
+# Java package for generated classes
+JAVA_PACKAGE = "org.apache.camel.dataformat.ocsf.model"
+
+# Classes to generate - main OCSF event classes
+CLASSES_TO_GENERATE = [
+ # Findings (Category 2)
+ 'detection_finding',
+ 'security_finding',
+ 'vulnerability_finding',
+ 'compliance_finding',
+ 'incident_finding',
+
+ # System Activity (Category 1)
+ 'file_activity',
+ 'process_activity',
+ 'kernel_extension_activity',
+ 'kernel_activity',
+ 'memory_activity',
+ 'module_activity',
+ 'scheduled_job_activity',
+
+ # Network Activity (Category 4)
+ 'network_activity',
+ 'http_activity',
+ 'dns_activity',
+ 'dhcp_activity',
+ 'rdp_activity',
+ 'smb_activity',
+ 'ssh_activity',
+ 'ftp_activity',
+ 'email_activity',
+ 'network_file_activity',
+ 'ntp_activity',
+
+ # IAM (Category 3)
+ 'authentication',
+ 'authorize_session',
+ 'account_change',
+ 'group_management',
+ 'user_access',
+ 'entity_management',
+
+ # Discovery (Category 5)
+ 'scan_activity',
+
+ # Application Activity (Category 6)
+ 'web_resource_activity',
+ 'web_resources_activity',
+ 'api_activity',
+ 'datastore_activity',
+
+ # Remediation (Category 7)
+ 'remediation_activity',
+]
+
+# Objects to generate - reusable OCSF objects
+# These are objects that exist in the OCSF catalog (verified in 1.7.0)
+OBJECTS_TO_GENERATE = [
+ 'account',
+ 'actor',
+ 'agent',
... 2614 lines suppressed ...