Version: 2.1.0.21
cybox.core.object module¶
-
class
cybox.core.object.DomainSpecificObjectProperties[source]¶ Bases:
mixbox.entities.EntityThe Cybox DomainSpecificObjectProperties base class.
XML binding class:cybox.bindings.cybox_core.DomainSpecificObjectPropertiesType
-
class
cybox.core.object.Object(properties=None, id_=None, idref=None)[source]¶ Bases:
mixbox.entities.EntityThe CybOX Object construct identifies and specifies the characteristics of a specific cyber-relevant object (e.g. a file, a registry key or a process).
Currently only supports the following data members: - id - idref - has_changed - description - properties - related_objects - domain_specific_object_properties
Notes
By default
cybox.core.object.Objectwill cache objects when instantiated. If your are experiencing memory issues in your environment, we encourage the use ofcybox.utils.caches.cache_clear()in your script to prevent an Out of Memory error. Depending on your use case, it can be after serialization or if a certain threshold is met (e.g. %30 of memory consumed by cache mechanism).XML binding class:cybox.bindings.cybox_core.ObjectType-
defined_effect¶ - Type:
cybox.core.effect.DefinedEffectXML Binding class name:Defined_EffectDictionary key name:defined_effect
-
description¶ - XML Binding class name:
DescriptionDictionary key name:description
-
discovery_method¶ - XML Binding class name:
Discovery_MethodDictionary key name:discovery_method
-
domain_specific_object_properties¶ - XML Binding class name:
Domain_Specific_Object_PropertiesDictionary key name:domain_specific_object_properties
-
has_changed¶ - XML Binding class name:
has_changedDictionary key name:has_changed
-
id_¶ - XML Binding class name:
idDictionary key name:id
-
idref¶ - XML Binding class name:
idrefDictionary key name:idref
-
location¶
-
properties¶ - XML Binding class name:
PropertiesDictionary key name:properties
- XML Binding class name:
Related_ObjectsDictionary key name:related_objects
-
state¶ TypedField subclass for VocabString fields.
-
-
class
cybox.core.object.RelatedObject(*args, **kwargs)[source]¶ Bases:
cybox.core.object.ObjectXML binding class:cybox.bindings.cybox_core.RelatedObjectType-
relationship¶ TypedField subclass for VocabString fields.
XML Binding class name:RelationshipDictionary key name:relationship
-
-
class
cybox.core.object.RelatedObjects(*args)[source]¶ Bases:
mixbox.entities.EntityListXML binding class:cybox.bindings.cybox_core.RelatedObjectsType- (List of values permitted)XML Binding class name:
Related_ObjectDictionary key name:related_object
-
cybox.core.object.add_external_class(klass, xsi_type)[source]¶ Adds a class implementation to this binding’s globals() dict.
These classes can be used to implement Properties, Domain_Specific_Object_Properties, or Defined_Effect fields on an Object.
Parameters: - klass (class) – Python class that implements the new type
- xsi_type (str) – An xsi:type value corresponding to the klass.