OpenCTI-Platform / opencti

Open Cyber Threat Intelligence Platform
https://opencti.io
Other
6.43k stars 948 forks source link

Dynamic Schema #2039

Open ran-upstream opened 2 years ago

ran-upstream commented 2 years ago

Use case

If we agree that a lot of the functionality of SDO’s (and other Objects or Relations) are similar:

..then a dynamic way of creating new such entities can be beneficial.

Current Workaround

Today when one wants to create a new entity type, they must recreate the whole functionality, or alternatively copy and refactor these files (the example is given on Threat Actor just for the sake of discussion):

GraphQL

Front

Proposed Solution

Creating some generator tool that receives a schema, to add/create objects dynamically, of the following structure: [ { entityTypeName: ‘MyNewEntity’, objectTypes: [‘SDO’, ‘SMO’ ....], stixEntityType: ‘Infrastructure’, fields: [ { fieldName: ‘MyFirstField’, fieldType: ‘String’, fieldComponent: ‘LongTextBox’, ........ ], ...... }, ]

Additional Information

If the feature request is approved, would you be willing to submit a PR?

Possibly

nor3th commented 2 years ago

Related to #2008