[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [cti-cybox] Re: CybOX 3.0: HashType Refactoring
Thanks, Jason. I think I understand. Are you saying that the "@context" will define the schema,
and therefore the schema for all sub-items as well?
If so, then "superhash" would be an extension to the hash "algorithm" (renamed) vocabulary, courtesy
of the "mycybox++" context.
That would simplify the JSON to this:
{
"@context": "http://cybox.example.com/mycybox++",
"@type": "Observable",
"file" : {
"hashes" : [
{
"hash": "3773a88f65a5e780c8dff9cdc3a056f3",
"algorithm": "md5" # default type defined in CybOX
},
{
"hash": "f49125dac3:352bb35ffrca2:a123dc4599245",
"algorithm": "superhash" # new type from my cybox++
},
]
}
}
Two observations: 1. A context (aka "schema") would be able to extend the vocabulary. 2. Users who want to use an extended vocabulary would have to create (and share!) a new context, if they want others to understand their objects.
How is this different from our current situation with custom vocabularies in XML? JSA
From: cti-cybox@lists.oasis-open.org <cti-cybox@lists.oasis-open.org> on behalf of Jason Keirstead <Jason.Keirstead@ca.ibm.com>
Sent: Monday, November 2, 2015 11:51 AM To: John Anderson Cc: Kirillov, Ivan A.; cti-cybox@lists.oasis-open.org Subject: Re: [cti-cybox] Re: CybOX 3.0: HashType Refactoring Most of those @type sections seem totally superfluous to me. Ivan, Could some ideas from JSON-LD help us here? Disclaimer: I'm not sure JSON-LD allows embedding objects like this or extending a context, like I've done. Also, there's a "@vocab" thing in JSON-LD. But once we start using vocabularies, we're heading down the road toward Ontologically-Correct Disunity (OCD). { JSA From: Kirillov, Ivan A. <ikirillov@mitre.org> Sent: Monday, November 2, 2015 10:54 AM To: John Anderson; cti-cybox@lists.oasis-open.org Subject: Re: CybOX 3.0: HashType Refactoring It makes sense, and I can definitely see the parallels to the IP Address refactoring :) My main concern is that if the “type” field is intended to capture a set of default hash types and also support custom values, then it will likely need to use a controlled vocabulary, which gets us back to the original HashType implementation and its corresponding complexity: { "file" : { "hashes" : [ { "hash": "3773a88f65a5e780c8dff9cdc3a056f3", "type": {"vocabulary":"HashNameVocab-1.0", "value":”md5"} }, { "hash": "f49125dac3:352bb35ffrca2:a123dc4599245", "type": "superhash" # A "custom" hash type. }, ] } } A possible middle ground is to have the “type” field set to a hard-coded enumeration (with values of “md5”, “sha1”, “sha256” etc.), and have a separate “custom_type” field for custom hash values. This negates the need for a controlled vocabulary driven approach, and thus would still be simpler. I think “custom_type” or “type” would always have to be specified though, as you can’t reliably infer the type of hash from a particular value (although you can make educated guesses – if the value is 16 bytes in length, odds are it’s MD5): { "file" : { "hashes" : [ { "hash": "3773a88f65a5e780c8dff9cdc3a056f3", "type": ”md5" }, { "hash": "f49125dac3:352bb35ffrca2:a123dc4599245", "custom_type": "superhash" # A "custom" hash type. }, ] } } What do you think? Regards, Ivan From: John Anderson Date: Monday, November 2, 2015 at 10:19 AM To: Ivan Kirillov, "cti-cybox@lists.oasis-open.org" Subject: Re: CybOX 3.0: HashType Refactoring This Hash refactoring seems to parallel the IP Address refactoring. Would it make sense to treat hashes the same way we treat IP Addresses? By applying that idea to the example on the page, we get something like this: From: cti-cybox@lists.oasis-open.org <cti-cybox@lists.oasis-open.org> on behalf of Kirillov, Ivan A. <ikirillov@mitre.org> Sent: Monday, November 2, 2015 10:07 AM To: cti-cybox@lists.oasis-open.org Subject: [cti-cybox] CybOX 3.0: HashType Refactoring All, As I mentioned on last week’s call, we’ve got another proposal related to CybOX 3.0 to get your feedback on: https://github.com/CybOXProject/schemas/wiki/CybOX-3.0:-HashType-Refactoring
This one is around refactoring the way hashes (especially common ones like MD5 and SHA1) are currently captured. Accordingly, we’d love to get your general thoughts on the proposal as well as on the related questions:
2. As far as the list of hashes in the new HashesType – are there any that are missing? Are there any that should be pruned? 3. Are there any fields that should be added to the new CustomHashType? Ivan and Trey |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]