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

Introduce aliases to make data model easier to use #330

Open
pcoccoli opened this issue May 9, 2023 · 3 comments
Open

Introduce aliases to make data model easier to use #330

pcoccoli opened this issue May 9, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@pcoccoli
Copy link
Collaborator

pcoccoli commented May 9, 2023

Is your feature request related to a problem? Please describe.
STIX patterning is not well known, and having to use things like src_ref.value can be confusing to new users. We've already "relaxed" the WHERE clause but we still use STIX object paths as attributes.

Describe the solution you'd like
We should have aliases for commonly used fields, e.g. src_addr for src_ref.value.

Describe alternatives you've considered
Alternatives could include using a different data model, but that's a much more disruptive change.

Additional context
Reference lists are not actually exposed at all right now, so they're almost lost entirely. An example is domain-name:resolves_to_refs. Aside from cumbersome naming, which is all aliases would help with, the reference lists would be difficult to work with. This is why firepit stores them in a separate table. This should probably be a separate issue.

@pcoccoli pcoccoli added the enhancement New feature or request label May 9, 2023
@subbyte
Copy link
Member

subbyte commented May 9, 2023

Fully agree we should make src_ref.value into something like src_addr as the first step before our own conceptual data model. I also find src_ref.value not friendly to new users.

I was wondering which naming rule to do for such convention. If we can make it explicit:

@pcoccoli
Copy link
Collaborator Author

pcoccoli commented May 9, 2023

I think any referenced property, e.g. parent_ref.pid or binary_ref.name could be aliased (as parent_pid and binary_name if we simply drop the _ref.).

@subbyte
Copy link
Member

subbyte commented May 10, 2023

Yep. I am thinking if we can have a general rule for such alias naming. We can explicitly list all aliases Kestrel uses in entity doc, yet there could be automatic aliased ones if the rule applies.

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

2 participants