Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Accepting custom json schema for uploading threat intel iocs #1421

Open
eirsep opened this issue Dec 6, 2024 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@eirsep
Copy link
Member

eirsep commented Dec 6, 2024

Is your feature request related to a problem?
Currently users can upload their own threat intelligence indicators(IoC's) in a single format defined by the plugin
The current format looks like this:

{"name":"test-domain-ioc-1","type":"domain-name","value":"example1.com","severity":"3","created":"2024-06-24T23:38:59.817536Z","modified":"2024-06-25T00:38:59.81754Z","description":"test ioc description","labels":["label1"],"spec_version":"spec1"}
{"name":"test-domain-ioc-2","type":"domain-name","value":"example2.com","severity":"3","created":"2024-06-24T23:38:59.817536Z","modified":"2024-06-25T00:38:59.81754Z","description":"test ioc description","labels":["label1"],"spec_version":"spec1"}
{"name":"test-domain-ioc-3","type":"domain-name","value":"example3.com","severity":"3","created":"2024-06-24T23:38:59.817536Z","modified":"2024-06-25T00:38:59.81754Z","description":"test ioc description","labels":["label1"],"spec_version":"spec1"}

Users who set up workflows to download threat intel from third-party security vendors or internally curated threat intelligence need to be able to upload their custom threat intelligence in different formats.

Users need a mechanism to define their own schema or format for the indicators they upload

What solution would you like?
Update the create/update threat intel source api to optionally accept a custom json format or schema at create time.

@eirsep eirsep added enhancement New feature or request untriaged labels Dec 6, 2024
@eirsep
Copy link
Member Author

eirsep commented Dec 7, 2024

One possible solution to accept the JSON schema as part of the create threat intel source API is to add a field called ioc_schema and a boolean flag use_default_schema
Let's consider the example:

ioc_schema: {
 "dataRoot" : "$.*[*]",
 "typeJsonPath": "$.type",
  "valueJsonPath": "$.ioc_value",
  "severityJsonPath": "$.severity"
}

this would provide flexibility in schema to accept any level of nesting and any format as long as they mention the key name for the required values - ioc type, ioc value and ioc severity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant