-
Notifications
You must be signed in to change notification settings - Fork 120
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
Adding TLP CLEAR #571
Adding TLP CLEAR #571
Conversation
Hi @peasead, I don't think this is the correct way to add TLP 2.0 CLEAR. The object exists in the common object repository, so you should use those. Remember, any STIX object of the same id and same version must be identical. Also, what you have done will probably not validate using the extension definition's schema or the base schema - since there is no TLP:CLEAR in TLP 1.0. I suggest you add all five TLP 2.0 data marking objects to your environment, and then do something locally like you did in this pull request for all five. |
Thanks @rpiazza. I've not worked with the project beyond using it, so sorry if this wasn't correct.
For the errors here, this has to be fixed locally - only in my environment, not for the whole project?
I assumed the path Thanks again for the help. |
I am not sure what you are asking, but since TLP 2 is defined using extension definitions and they only exist in STIX 2.1 I think the answer is yes. |
So is there any way to get TLP:CLEAR into this project? |
Extension definitions reference schemas via the required But For example: tlp_20_clear = stix2.MarkingDefinition(
id="marking-definition--94868c89-83c2-464b-929b-a1a8aa3c8487",
created="2022-10-01T00:00:00.000Z",
name="TLP:CLEAR",
extensions={
"extension-definition--60a3c5c5-0d10-413e-aab3-9e08dde9e88d": {
"extension_type": stix2.v21.vocab.EXTENSION_TYPE_PROPERTY_EXTENSION,
"tlp_2_0": "clear"
}
}
) One might also consider registering an extension object (e.g. with |
TLP:CLEAR was added as part of TLP 2.0.
Extension definition:
https://github.com/oasis-open/cti-stix-common-objects/blob/main/objects/extension-definition/extension-definition--60a3c5c5-0d10-413e-aab3-9e08dde9e88d.json
TLP CLEAR marking definition:
https://github.com/oasis-open/cti-stix-common-objects/blob/main/objects/marking-definition/marking-definition--94868c89-83c2-464b-929b-a1a8aa3c8487.json
Resolves #569