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
to_dict()[source]
to_obj(ns_info=None)[source]
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 of cybox.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
XML Binding class name: Location
Dictionary key name: location
properties
XML Binding class name: Properties
Dictionary key name: properties
related_objects
XML Binding class name: Related_Objects
Dictionary key name: related_objects
state

TypedField subclass for VocabString fields.

XML Binding class name: State
Dictionary key name: state
class cybox.core.object.RelatedObject(*args, **kwargs)[source]

Bases: cybox.core.object.Object

XML binding class: cybox.bindings.cybox_core.RelatedObjectType
classmethod from_dict(cls_dict)[source]
classmethod from_obj(cls_obj)[source]
get_properties()[source]
relationship

TypedField subclass for VocabString fields.

XML Binding class name: Relationship
Dictionary key name: relationship
to_dict()[source]
to_obj(ns_info=None)[source]
class cybox.core.object.RelatedObjects(*args)[source]

Bases: mixbox.entities.EntityList

XML binding class: cybox.bindings.cybox_core.RelatedObjectsType
related_object
(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.