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

Artifact object update #404

Merged
merged 3 commits into from
Aug 17, 2023
Merged

Artifact object update #404

merged 3 commits into from
Aug 17, 2023

Conversation

chrisr3d
Copy link
Member

While I agree the hashes attribute, where we could concatenate all the hash types and values in a single text, made sense in the use we had of this object template - which was mostly to be referenced by a file object which already has each single hash value - it is now different when we import an Artifact as described in the STIX 2.1 definition of a malware sample.

In this case the artifact can be a standalone object, and it is more appropriate to extract the hash values separately

…h type attributes

- A change to adopt the same logic as file objects
  regarding the different hash values
- In STIX 2.1 an Artifact object is not necessarily
  linked to a File object and both referenced by
  an Observed Data object. In some cases Artifact
  objects are referenced for instance by Malware
  objects, in which case they describe the actual
  malware sample. It is then usefull to have the
  different hash values in single attributes rather
  than concatenated in a text attribute
@chrisr3d
Copy link
Member Author

Oh wait, should I still keep the hashes attributes? Maybe I should, and we have both for the 2 different use cases

@adulau
Copy link
Member

adulau commented Aug 17, 2023

I think it's fine. Maybe we should adapt the requiredOneOf ? to keep it more flexible even it's a bit more lax than the STIX 2.1 specs?

@adulau adulau merged commit 8b64898 into main Aug 17, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants