|
|
|
@ -28,6 +28,7 @@ class Artifact(_Observable):
|
|
|
|
|
_type = 'artifact'
|
|
|
|
|
_properties = OrderedDict([
|
|
|
|
|
('type', TypeProperty(_type, spec_version='2.1')),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('id', IDProperty(_type, spec_version='2.1')),
|
|
|
|
|
('mime_type', StringProperty()),
|
|
|
|
|
('payload_bin', BinaryProperty()),
|
|
|
|
@ -35,11 +36,10 @@ class Artifact(_Observable):
|
|
|
|
|
('hashes', HashesProperty(spec_version='2.1')),
|
|
|
|
|
('encryption_algorithm', StringProperty()),
|
|
|
|
|
('decryption_key', StringProperty()),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('object_marking_refs', ListProperty(ReferenceProperty(valid_types='marking-definition', spec_version='2.1'))),
|
|
|
|
|
('granular_markings', ListProperty(GranularMarking)),
|
|
|
|
|
('defanged', BooleanProperty(default=lambda: False)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
])
|
|
|
|
|
_id_contributing_properties = ["hashes", "payload_bin"]
|
|
|
|
|
|
|
|
|
@ -57,15 +57,15 @@ class AutonomousSystem(_Observable):
|
|
|
|
|
_type = 'autonomous-system'
|
|
|
|
|
_properties = OrderedDict([
|
|
|
|
|
('type', TypeProperty(_type, spec_version='2.1')),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('id', IDProperty(_type, spec_version='2.1')),
|
|
|
|
|
('number', IntegerProperty(required=True)),
|
|
|
|
|
('name', StringProperty()),
|
|
|
|
|
('rir', StringProperty()),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('object_marking_refs', ListProperty(ReferenceProperty(valid_types='marking-definition', spec_version='2.1'))),
|
|
|
|
|
('granular_markings', ListProperty(GranularMarking)),
|
|
|
|
|
('defanged', BooleanProperty(default=lambda: False)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
])
|
|
|
|
|
_id_contributing_properties = ["number"]
|
|
|
|
|
|
|
|
|
@ -78,6 +78,7 @@ class Directory(_Observable):
|
|
|
|
|
_type = 'directory'
|
|
|
|
|
_properties = OrderedDict([
|
|
|
|
|
('type', TypeProperty(_type, spec_version='2.1')),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('id', IDProperty(_type, spec_version='2.1')),
|
|
|
|
|
('path', StringProperty(required=True)),
|
|
|
|
|
('path_enc', StringProperty()),
|
|
|
|
@ -86,11 +87,10 @@ class Directory(_Observable):
|
|
|
|
|
('mtime', TimestampProperty()),
|
|
|
|
|
('atime', TimestampProperty()),
|
|
|
|
|
('contains_refs', ListProperty(ReferenceProperty(valid_types=['file', 'directory'], spec_version='2.1'))),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('object_marking_refs', ListProperty(ReferenceProperty(valid_types='marking-definition', spec_version='2.1'))),
|
|
|
|
|
('granular_markings', ListProperty(GranularMarking)),
|
|
|
|
|
('defanged', BooleanProperty(default=lambda: False)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
])
|
|
|
|
|
_id_contributing_properties = ["path"]
|
|
|
|
|
|
|
|
|
@ -103,14 +103,14 @@ class DomainName(_Observable):
|
|
|
|
|
_type = 'domain-name'
|
|
|
|
|
_properties = OrderedDict([
|
|
|
|
|
('type', TypeProperty(_type, spec_version='2.1')),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('id', IDProperty(_type, spec_version='2.1')),
|
|
|
|
|
('value', StringProperty(required=True)),
|
|
|
|
|
('resolves_to_refs', ListProperty(ReferenceProperty(valid_types=['ipv4-addr', 'ipv6-addr', 'domain-name'], spec_version='2.1'))),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('object_marking_refs', ListProperty(ReferenceProperty(valid_types='marking-definition', spec_version='2.1'))),
|
|
|
|
|
('granular_markings', ListProperty(GranularMarking)),
|
|
|
|
|
('defanged', BooleanProperty(default=lambda: False)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
])
|
|
|
|
|
_id_contributing_properties = ["value"]
|
|
|
|
|
|
|
|
|
@ -123,15 +123,15 @@ class EmailAddress(_Observable):
|
|
|
|
|
_type = 'email-addr'
|
|
|
|
|
_properties = OrderedDict([
|
|
|
|
|
('type', TypeProperty(_type, spec_version='2.1')),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('id', IDProperty(_type, spec_version='2.1')),
|
|
|
|
|
('value', StringProperty(required=True)),
|
|
|
|
|
('display_name', StringProperty()),
|
|
|
|
|
('belongs_to_ref', ReferenceProperty(valid_types='user-account', spec_version='2.1')),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('object_marking_refs', ListProperty(ReferenceProperty(valid_types='marking-definition', spec_version='2.1'))),
|
|
|
|
|
('granular_markings', ListProperty(GranularMarking)),
|
|
|
|
|
('defanged', BooleanProperty(default=lambda: False)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
])
|
|
|
|
|
_id_contributing_properties = ["value"]
|
|
|
|
|
|
|
|
|
@ -161,6 +161,7 @@ class EmailMessage(_Observable):
|
|
|
|
|
_type = 'email-message'
|
|
|
|
|
_properties = OrderedDict([
|
|
|
|
|
('type', TypeProperty(_type, spec_version='2.1')),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('id', IDProperty(_type, spec_version='2.1')),
|
|
|
|
|
('is_multipart', BooleanProperty(required=True)),
|
|
|
|
|
('date', TimestampProperty()),
|
|
|
|
@ -177,11 +178,10 @@ class EmailMessage(_Observable):
|
|
|
|
|
('body', StringProperty()),
|
|
|
|
|
('body_multipart', ListProperty(EmbeddedObjectProperty(type=EmailMIMEComponent))),
|
|
|
|
|
('raw_email_ref', ReferenceProperty(valid_types='artifact', spec_version='2.1')),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('object_marking_refs', ListProperty(ReferenceProperty(valid_types='marking-definition', spec_version='2.1'))),
|
|
|
|
|
('granular_markings', ListProperty(GranularMarking)),
|
|
|
|
|
('defanged', BooleanProperty(default=lambda: False)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
])
|
|
|
|
|
_id_contributing_properties = ["from_ref", "subject", "body"]
|
|
|
|
|
|
|
|
|
@ -345,6 +345,7 @@ class File(_Observable):
|
|
|
|
|
_type = 'file'
|
|
|
|
|
_properties = OrderedDict([
|
|
|
|
|
('type', TypeProperty(_type, spec_version='2.1')),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('id', IDProperty(_type, spec_version='2.1')),
|
|
|
|
|
('hashes', HashesProperty(spec_version='2.1')),
|
|
|
|
|
('size', IntegerProperty(min=0)),
|
|
|
|
@ -358,11 +359,10 @@ class File(_Observable):
|
|
|
|
|
('parent_directory_ref', ReferenceProperty(valid_types='directory', spec_version='2.1')),
|
|
|
|
|
('contains_refs', ListProperty(ReferenceProperty(valid_types=["SCO"], spec_version='2.1'))),
|
|
|
|
|
('content_ref', ReferenceProperty(valid_types='artifact', spec_version='2.1')),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('object_marking_refs', ListProperty(ReferenceProperty(valid_types='marking-definition', spec_version='2.1'))),
|
|
|
|
|
('granular_markings', ListProperty(GranularMarking)),
|
|
|
|
|
('defanged', BooleanProperty(default=lambda: False)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
])
|
|
|
|
|
_id_contributing_properties = ["hashes", "name", "parent_directory_ref", "extensions"]
|
|
|
|
|
|
|
|
|
@ -379,15 +379,15 @@ class IPv4Address(_Observable):
|
|
|
|
|
_type = 'ipv4-addr'
|
|
|
|
|
_properties = OrderedDict([
|
|
|
|
|
('type', TypeProperty(_type, spec_version='2.1')),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('id', IDProperty(_type, spec_version='2.1')),
|
|
|
|
|
('value', StringProperty(required=True)),
|
|
|
|
|
('resolves_to_refs', ListProperty(ReferenceProperty(valid_types='mac-addr', spec_version='2.1'))),
|
|
|
|
|
('belongs_to_refs', ListProperty(ReferenceProperty(valid_types='autonomous-system', spec_version='2.1'))),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('object_marking_refs', ListProperty(ReferenceProperty(valid_types='marking-definition', spec_version='2.1'))),
|
|
|
|
|
('granular_markings', ListProperty(GranularMarking)),
|
|
|
|
|
('defanged', BooleanProperty(default=lambda: False)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
])
|
|
|
|
|
_id_contributing_properties = ["value"]
|
|
|
|
|
|
|
|
|
@ -400,15 +400,15 @@ class IPv6Address(_Observable):
|
|
|
|
|
_type = 'ipv6-addr'
|
|
|
|
|
_properties = OrderedDict([
|
|
|
|
|
('type', TypeProperty(_type, spec_version='2.1')),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('id', IDProperty(_type, spec_version='2.1')),
|
|
|
|
|
('value', StringProperty(required=True)),
|
|
|
|
|
('resolves_to_refs', ListProperty(ReferenceProperty(valid_types='mac-addr', spec_version='2.1'))),
|
|
|
|
|
('belongs_to_refs', ListProperty(ReferenceProperty(valid_types='autonomous-system', spec_version='2.1'))),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('object_marking_refs', ListProperty(ReferenceProperty(valid_types='marking-definition', spec_version='2.1'))),
|
|
|
|
|
('granular_markings', ListProperty(GranularMarking)),
|
|
|
|
|
('defanged', BooleanProperty(default=lambda: False)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
])
|
|
|
|
|
_id_contributing_properties = ["value"]
|
|
|
|
|
|
|
|
|
@ -421,13 +421,13 @@ class MACAddress(_Observable):
|
|
|
|
|
_type = 'mac-addr'
|
|
|
|
|
_properties = OrderedDict([
|
|
|
|
|
('type', TypeProperty(_type, spec_version='2.1')),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('id', IDProperty(_type, spec_version='2.1')),
|
|
|
|
|
('value', StringProperty(required=True)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('object_marking_refs', ListProperty(ReferenceProperty(valid_types='marking-definition', spec_version='2.1'))),
|
|
|
|
|
('granular_markings', ListProperty(GranularMarking)),
|
|
|
|
|
('defanged', BooleanProperty(default=lambda: False)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
])
|
|
|
|
|
_id_contributing_properties = ["value"]
|
|
|
|
|
|
|
|
|
@ -440,13 +440,13 @@ class Mutex(_Observable):
|
|
|
|
|
_type = 'mutex'
|
|
|
|
|
_properties = OrderedDict([
|
|
|
|
|
('type', TypeProperty(_type, spec_version='2.1')),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('id', IDProperty(_type, spec_version='2.1')),
|
|
|
|
|
('name', StringProperty(required=True)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('object_marking_refs', ListProperty(ReferenceProperty(valid_types='marking-definition', spec_version='2.1'))),
|
|
|
|
|
('granular_markings', ListProperty(GranularMarking)),
|
|
|
|
|
('defanged', BooleanProperty(default=lambda: False)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
])
|
|
|
|
|
_id_contributing_properties = ["name"]
|
|
|
|
|
|
|
|
|
@ -551,6 +551,7 @@ class NetworkTraffic(_Observable):
|
|
|
|
|
_type = 'network-traffic'
|
|
|
|
|
_properties = OrderedDict([
|
|
|
|
|
('type', TypeProperty(_type, spec_version='2.1')),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('id', IDProperty(_type, spec_version='2.1')),
|
|
|
|
|
('start', TimestampProperty()),
|
|
|
|
|
('end', TimestampProperty()),
|
|
|
|
@ -569,11 +570,10 @@ class NetworkTraffic(_Observable):
|
|
|
|
|
('dst_payload_ref', ReferenceProperty(valid_types='artifact', spec_version='2.1')),
|
|
|
|
|
('encapsulates_refs', ListProperty(ReferenceProperty(valid_types='network-traffic', spec_version='2.1'))),
|
|
|
|
|
('encapsulated_by_ref', ReferenceProperty(valid_types='network-traffic', spec_version='2.1')),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('object_marking_refs', ListProperty(ReferenceProperty(valid_types='marking-definition', spec_version='2.1'))),
|
|
|
|
|
('granular_markings', ListProperty(GranularMarking)),
|
|
|
|
|
('defanged', BooleanProperty(default=lambda: False)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
])
|
|
|
|
|
_id_contributing_properties = ["start", "src_ref", "dst_ref", "src_port", "dst_port", "protocols"]
|
|
|
|
|
|
|
|
|
@ -673,6 +673,7 @@ class Process(_Observable):
|
|
|
|
|
_type = 'process'
|
|
|
|
|
_properties = OrderedDict([
|
|
|
|
|
('type', TypeProperty(_type, spec_version='2.1')),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('id', IDProperty(_type, spec_version='2.1')),
|
|
|
|
|
('is_hidden', BooleanProperty()),
|
|
|
|
|
('pid', IntegerProperty()),
|
|
|
|
@ -686,11 +687,10 @@ class Process(_Observable):
|
|
|
|
|
('image_ref', ReferenceProperty(valid_types='file', spec_version='2.1')),
|
|
|
|
|
('parent_ref', ReferenceProperty(valid_types='process', spec_version='2.1')),
|
|
|
|
|
('child_refs', ListProperty(ReferenceProperty(valid_types='process', spec_version='2.1'))),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('object_marking_refs', ListProperty(ReferenceProperty(valid_types='marking-definition', spec_version='2.1'))),
|
|
|
|
|
('granular_markings', ListProperty(GranularMarking)),
|
|
|
|
|
('defanged', BooleanProperty(default=lambda: False)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
])
|
|
|
|
|
_id_contributing_properties = []
|
|
|
|
|
|
|
|
|
@ -717,6 +717,7 @@ class Software(_Observable):
|
|
|
|
|
_type = 'software'
|
|
|
|
|
_properties = OrderedDict([
|
|
|
|
|
('type', TypeProperty(_type, spec_version='2.1')),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('id', IDProperty(_type, spec_version='2.1')),
|
|
|
|
|
('name', StringProperty(required=True)),
|
|
|
|
|
('cpe', StringProperty()),
|
|
|
|
@ -724,11 +725,10 @@ class Software(_Observable):
|
|
|
|
|
('languages', ListProperty(StringProperty)),
|
|
|
|
|
('vendor', StringProperty()),
|
|
|
|
|
('version', StringProperty()),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('object_marking_refs', ListProperty(ReferenceProperty(valid_types='marking-definition', spec_version='2.1'))),
|
|
|
|
|
('granular_markings', ListProperty(GranularMarking)),
|
|
|
|
|
('defanged', BooleanProperty(default=lambda: False)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
])
|
|
|
|
|
_id_contributing_properties = ["name", "cpe", "swid", "vendor", "version"]
|
|
|
|
|
|
|
|
|
@ -741,13 +741,13 @@ class URL(_Observable):
|
|
|
|
|
_type = 'url'
|
|
|
|
|
_properties = OrderedDict([
|
|
|
|
|
('type', TypeProperty(_type, spec_version='2.1')),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('id', IDProperty(_type, spec_version='2.1')),
|
|
|
|
|
('value', StringProperty(required=True)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('object_marking_refs', ListProperty(ReferenceProperty(valid_types='marking-definition', spec_version='2.1'))),
|
|
|
|
|
('granular_markings', ListProperty(GranularMarking)),
|
|
|
|
|
('defanged', BooleanProperty(default=lambda: False)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
])
|
|
|
|
|
_id_contributing_properties = ["value"]
|
|
|
|
|
|
|
|
|
@ -774,6 +774,7 @@ class UserAccount(_Observable):
|
|
|
|
|
_type = 'user-account'
|
|
|
|
|
_properties = OrderedDict([
|
|
|
|
|
('type', TypeProperty(_type, spec_version='2.1')),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('id', IDProperty(_type, spec_version='2.1')),
|
|
|
|
|
('user_id', StringProperty()),
|
|
|
|
|
('credential', StringProperty()),
|
|
|
|
@ -789,11 +790,10 @@ class UserAccount(_Observable):
|
|
|
|
|
('credential_last_changed', TimestampProperty()),
|
|
|
|
|
('account_first_login', TimestampProperty()),
|
|
|
|
|
('account_last_login', TimestampProperty()),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('object_marking_refs', ListProperty(ReferenceProperty(valid_types='marking-definition', spec_version='2.1'))),
|
|
|
|
|
('granular_markings', ListProperty(GranularMarking)),
|
|
|
|
|
('defanged', BooleanProperty(default=lambda: False)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
])
|
|
|
|
|
_id_contributing_properties = ["account_type", "user_id", "account_login"]
|
|
|
|
|
|
|
|
|
@ -835,6 +835,7 @@ class WindowsRegistryKey(_Observable):
|
|
|
|
|
_type = 'windows-registry-key'
|
|
|
|
|
_properties = OrderedDict([
|
|
|
|
|
('type', TypeProperty(_type, spec_version='2.1')),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('id', IDProperty(_type, spec_version='2.1')),
|
|
|
|
|
('key', StringProperty()),
|
|
|
|
|
('values', ListProperty(EmbeddedObjectProperty(type=WindowsRegistryValueType))),
|
|
|
|
@ -842,11 +843,10 @@ class WindowsRegistryKey(_Observable):
|
|
|
|
|
('modified_time', TimestampProperty()),
|
|
|
|
|
('creator_user_ref', ReferenceProperty(valid_types='user-account', spec_version='2.1')),
|
|
|
|
|
('number_of_subkeys', IntegerProperty()),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('object_marking_refs', ListProperty(ReferenceProperty(valid_types='marking-definition', spec_version='2.1'))),
|
|
|
|
|
('granular_markings', ListProperty(GranularMarking)),
|
|
|
|
|
('defanged', BooleanProperty(default=lambda: False)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
])
|
|
|
|
|
_id_contributing_properties = ["key", "values"]
|
|
|
|
|
|
|
|
|
@ -885,6 +885,7 @@ class X509Certificate(_Observable):
|
|
|
|
|
_type = 'x509-certificate'
|
|
|
|
|
_properties = OrderedDict([
|
|
|
|
|
('type', TypeProperty(_type, spec_version='2.1')),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('id', IDProperty(_type, spec_version='2.1')),
|
|
|
|
|
('is_self_signed', BooleanProperty()),
|
|
|
|
|
('hashes', HashesProperty(spec_version='2.1')),
|
|
|
|
@ -899,11 +900,10 @@ class X509Certificate(_Observable):
|
|
|
|
|
('subject_public_key_modulus', StringProperty()),
|
|
|
|
|
('subject_public_key_exponent', IntegerProperty()),
|
|
|
|
|
('x509_v3_extensions', EmbeddedObjectProperty(type=X509V3ExtenstionsType)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
('spec_version', StringProperty(fixed='2.1')),
|
|
|
|
|
('object_marking_refs', ListProperty(ReferenceProperty(valid_types='marking-definition', spec_version='2.1'))),
|
|
|
|
|
('granular_markings', ListProperty(GranularMarking)),
|
|
|
|
|
('defanged', BooleanProperty(default=lambda: False)),
|
|
|
|
|
('extensions', ExtensionsProperty(spec_version='2.1', enclosing_type=_type)),
|
|
|
|
|
])
|
|
|
|
|
_id_contributing_properties = ["hashes", "serial_number"]
|
|
|
|
|
|
|
|
|
|