Version: 2.1.0.21
cybox.core.object
module¶
-
class
cybox.core.object.
DomainSpecificObjectProperties
[source]¶ Bases:
mixbox.entities.Entity
The 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.Entity
The 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.Object
will 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.DefinedEffect
XML Binding class name:Defined_Effect
Dictionary key name:defined_effect
-
description
¶ - XML Binding class name:
Description
Dictionary key name:description
-
discovery_method
¶ - XML Binding class name:
Discovery_Method
Dictionary key name:discovery_method
-
domain_specific_object_properties
¶ - XML Binding class name:
Domain_Specific_Object_Properties
Dictionary key name:domain_specific_object_properties
-
has_changed
¶ - XML Binding class name:
has_changed
Dictionary key name:has_changed
-
id_
¶ - XML Binding class name:
id
Dictionary key name:id
-
idref
¶ - XML Binding class name:
idref
Dictionary key name:idref
-
location
¶
-
properties
¶ - XML Binding class name:
Properties
Dictionary key name:properties
- XML Binding class name:
Related_Objects
Dictionary key name:related_objects
-
state
¶ TypedField subclass for VocabString fields.
-
-
class
cybox.core.object.
RelatedObject
(*args, **kwargs)[source]¶ Bases:
cybox.core.object.Object
XML binding class:cybox.bindings.cybox_core.RelatedObjectType
-
relationship
¶ TypedField subclass for VocabString fields.
XML Binding class name:Relationship
Dictionary key name:relationship
-
-
class
cybox.core.object.
RelatedObjects
(*args)[source]¶ Bases:
mixbox.entities.EntityList
XML binding class:cybox.bindings.cybox_core.RelatedObjectsType
- (List of values permitted)XML Binding class name:
Related_Object
Dictionary 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.