Documentation ¶
Index ¶
- type AliasesProperty
- type AuthorsProperty
- type BelongsToRefsProperty
- type ConfidenceProperty
- type CreatedByRefProperty
- type CreatedProperty
- type CustomProperties
- type DatastoreIDProperty
- type DescriptionProperty
- type ExtensionsProperty
- type ExternalReference
- type ExternalReferencesProperty
- type GoalsProperty
- type GranularMarking
- type IDProperty
- type KillChainPhase
- type KillChainPhasesProperty
- type LabelsProperty
- type LangProperty
- type MarkingProperties
- type ModifiedProperty
- type MotivationProperties
- type NameProperty
- type ObjectRefsProperty
- type RawProperty
- type ResolvesToRefsProperty
- type ResourceLevelProperty
- type RevokedProperty
- type RolesProperty
- type SeenProperties
- type SpecVersionProperty
- type TitleProperty
- type TypeProperty
- type ValueProperty
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliasesProperty ¶
type AliasesProperty struct {
Aliases []string `json:"aliases,omitempty"`
}
AliasesProperty - A property used by one or more STIX objects.
func (*AliasesProperty) Compare ¶ added in v0.6.1
func (o *AliasesProperty) Compare(obj2 *AliasesProperty) (bool, int, []string)
Compare - This method will compare two properties to make sure they are the same and will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
type AuthorsProperty ¶ added in v0.6.1
type AuthorsProperty struct {
Authors []string `json:"authors,omitempty"`
}
AuthorsProperty - A property used by one or more STIX objects.
func (*AuthorsProperty) Compare ¶ added in v0.6.1
func (o *AuthorsProperty) Compare(obj2 *AuthorsProperty) (bool, int, []string)
Compare - This method will compare two properties to make sure they are the same and will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
func (*AuthorsProperty) VerifyExists ¶ added in v0.6.1
func (o *AuthorsProperty) VerifyExists() error
VerifyExists - This method will verify that the authors property on an object is present. It will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
type BelongsToRefsProperty ¶ added in v0.6.1
type BelongsToRefsProperty struct {
BelongsToRefs []string `json:"belongs_to_refs,omitempty"`
}
BelongsToRefsProperty -
type ConfidenceProperty ¶ added in v0.6.1
type ConfidenceProperty struct {
Confidence int `json:"confidence,omitempty"`
}
ConfidenceProperty - A property used by one or more STIX objects that captures the STIX confidence score, which is a value from 0-100.
func (*ConfidenceProperty) Compare ¶ added in v0.6.1
func (o *ConfidenceProperty) Compare(obj2 *ConfidenceProperty) (bool, int, []string)
Compare - This method will compare two properties to make sure they are the same and will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
type CreatedByRefProperty ¶ added in v0.6.1
type CreatedByRefProperty struct {
CreatedByRef string `json:"created_by_ref,omitempty"`
}
CreatedByRefProperty - A property used by all STIX objects that captures the STIX identifier of the identity that created this object.
func (*CreatedByRefProperty) Compare ¶ added in v0.6.1
func (o *CreatedByRefProperty) Compare(obj2 *CreatedByRefProperty) (bool, int, []string)
Compare - This method will compare two properties to make sure they are the same and will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
type CreatedProperty ¶ added in v0.6.1
type CreatedProperty struct {
Created timestamp2.Timestamp `json:"created,omitempty"`
}
CreatedProperty - A property used by all STIX objects that captures the date and time that the object was created.
func (*CreatedProperty) Compare ¶ added in v0.6.1
func (o *CreatedProperty) Compare(obj2 *CreatedProperty) (bool, int, []string)
Compare - This method will compare two properties to make sure they are the same and will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
func (*CreatedProperty) VerifyExists ¶ added in v0.6.1
func (o *CreatedProperty) VerifyExists() error
VerifyExists - This method will verify that the created property on an object is present if required. It will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
type CustomProperties ¶ added in v0.6.1
type CustomProperties struct {
Custom map[string]*json.RawMessage `json:"custom,omitempty"`
}
CustomProperties - A property used by all STIX objects that captures any custom properties. These are all stored in a map.
func (*CustomProperties) SetCustomProperties ¶ added in v1.0.0
func (c *CustomProperties) SetCustomProperties(custom map[string]*json.RawMessage)
type DatastoreIDProperty ¶ added in v0.6.1
type DatastoreIDProperty struct {
DatastoreID int `json:"-"`
}
DatastoreIDProperty - A property used by all STIX objects that captures the unique database ID for this object. This is not included in the JSON serialization, but is used with some datastores.
type DescriptionProperty ¶
type DescriptionProperty struct {
Description string `json:"description,omitempty"`
}
DescriptionProperty - A property used by one or more STIX objects that captures the description for the object as a string.
func (*DescriptionProperty) Compare ¶ added in v0.6.1
func (o *DescriptionProperty) Compare(obj2 *DescriptionProperty) (bool, int, []string)
Compare - This method will compare two properties to make sure they are the same and will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
type ExtensionsProperty ¶ added in v1.0.0
type ExtensionsProperty struct {
Extensions map[string]interface{} `json:"extensions,omitempty"`
}
func (*ExtensionsProperty) AddExtension ¶ added in v1.0.0
func (p *ExtensionsProperty) AddExtension(name string, val interface{})
func (*ExtensionsProperty) NewExtensionGeneric ¶ added in v1.0.0
func (p *ExtensionsProperty) NewExtensionGeneric(name string) map[string]interface{}
type ExternalReference ¶ added in v0.6.1
type ExternalReference struct { SourceName string `json:"source_name,omitempty"` Description string `json:"description,omitempty"` URL string `json:"url,omitempty"` Hashes map[string]string `json:"hashes,omitempty"` ExternalID string `json:"external_id,omitempty"` }
ExternalReference - This type defines all of the properties associated with the STIX External Reference type. All of the methods not defined local to this type are inherited from the individual properties.
func (*ExternalReference) AddHash ¶ added in v0.6.1
func (o *ExternalReference) AddHash(k, v string)
AddHash - This method takes in two parameters and adds the hash to the map. The first is a string value representing a hash type from the STIX hashes vocabulary. The second is a string value representing the actual hash of the content from the remote external reference.
type ExternalReferencesProperty ¶ added in v0.6.1
type ExternalReferencesProperty struct {
ExternalReferences []ExternalReference `json:"external_references,omitempty"`
}
ExternalReferencesProperty - A property used by one or more STIX objects that captures a list of external references as defined by STIX.
func (*ExternalReferencesProperty) Compare ¶ added in v0.6.1
func (o *ExternalReferencesProperty) Compare(obj2 *ExternalReferencesProperty) (bool, int, []string)
Compare - This function will compare two properties to make sure they are the same and will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
func (*ExternalReferencesProperty) NewExternalReference ¶ added in v0.6.1
func (o *ExternalReferencesProperty) NewExternalReference() *ExternalReference
NewExternalReference - This method creates a new external reference and returns a reference to a slice location. This will enable the code to update an object located at that slice location.
type GoalsProperty ¶
type GoalsProperty struct {
Goals []string `json:"goals,omitempty"`
}
GoalsProperty - A property used by one or more STIX objects that captures a list of goals that are part of the STIX object.
type GranularMarking ¶ added in v0.6.1
type GranularMarking struct { MarkingRef string `json:"marking_ref,omitempty"` Selectors []string `json:"selectors,omitempty"` }
GranularMarking - This type defines all of the properties associated with the STIX Granular Marking type. All of the methods not defined local to this type are inherited from the individual properties.
type IDProperty ¶ added in v0.6.1
type IDProperty struct {
ID string `json:"id,omitempty"`
}
IDProperty - A property used by one or more STIX objects that captures the STIX That identifier in string format.
func (*IDProperty) Compare ¶ added in v0.6.1
func (o *IDProperty) Compare(obj2 *IDProperty) (bool, int, []string)
Compare - This method will compare two properties to make sure they are the same and will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
func (*IDProperty) CreateSTIXUUID ¶ added in v0.6.1
func (o *IDProperty) CreateSTIXUUID(objType objects.ObjectType) (string, error)
CreateSTIXUUID - This method takes in a string value representing a STIX object type and creates and returns a new ID based on the approved STIX UUIDv4 format.
func (*IDProperty) SetNewSTIXID ¶ added in v0.6.1
func (o *IDProperty) SetNewSTIXID(objType objects.ObjectType) error
SetNewSTIXID - This method takes in a string value representing a STIX object type and creates a new ID based on the approved STIX UUIDv4 format and update the id property for the object.
func (*IDProperty) VerifyExists ¶ added in v0.6.1
func (o *IDProperty) VerifyExists() error
VerifyExists - This method will verify that the id property on an object is present if required. It will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
type KillChainPhase ¶
type KillChainPhase struct { KillChainName string `json:"kill_chain_name,omitempty"` PhaseName string `json:"phase_name,omitempty"` }
KillChainPhase - This type defines all of the properties associated with the STIX Kill Chain Phase type.
type KillChainPhasesProperty ¶
type KillChainPhasesProperty struct {
KillChainPhases []KillChainPhase `json:"kill_chain_phases,omitempty"`
}
KillChainPhasesProperty - A property used by one or more STIX objects that captures a list of kll chain phases as defined by STIX.
func (*KillChainPhasesProperty) Compare ¶ added in v0.6.1
func (o *KillChainPhasesProperty) Compare(obj2 *KillChainPhasesProperty) (bool, int, []string)
Compare - This method will compare two properties to make sure they are the same and will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
func (*KillChainPhasesProperty) CreateKillChainPhase ¶
func (o *KillChainPhasesProperty) CreateKillChainPhase(name, phase string) error
CreateKillChainPhase - This method takes in two parameters and creates and adds a new kill chain phase to the list. The first value is a string value representing the name of the kill chain being used. The second value is a string value representing the phase name from that kill chain.
func (*KillChainPhasesProperty) NewKillChainPhase ¶
func (o *KillChainPhasesProperty) NewKillChainPhase() *KillChainPhase
newKillChainPhase - This method returns a reference to a slice location. This will enable the code to update an object located at that slice location.
type LabelsProperty ¶ added in v0.6.1
type LabelsProperty struct {
Labels []string `json:"labels,omitempty"`
}
LabelsProperty - This method takes in a string value, a comma separated list of string values, or a slice of string values that represents a label and adds it to the labels property.
func (*LabelsProperty) Compare ¶ added in v0.6.1
func (o *LabelsProperty) Compare(obj2 *LabelsProperty) (bool, int, []string)
Compare - This method will compare two properties to make sure they are the same and will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
type LangProperty ¶ added in v0.6.1
type LangProperty struct {
Lang string `json:"lang,omitempty"`
}
LangProperty - A property used by one or more STIX objects that captures the lang string as defined in RFC 5646. This is used to record the language that a given object is using.
func (*LangProperty) Compare ¶ added in v0.6.1
func (o *LangProperty) Compare(obj2 *LangProperty) (bool, int, []string)
Compare - This method will compare two properties to make sure they are the same and will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
type MarkingProperties ¶ added in v0.6.1
type MarkingProperties struct { ObjectMarkingRefs []string `json:"object_marking_refs,omitempty"` GranularMarkings []GranularMarking `json:"granular_markings,omitempty"` }
MarkingProperties - Properties used by one or more STIX objects that captures the data markings for an object. These can be in the form of object markings or granular markings. The object markings is a list of STIX identifier that represent marking definition objects. The granular markings is a list of granular markings.
func (*MarkingProperties) Compare ¶ added in v0.6.1
func (o *MarkingProperties) Compare(obj2 *MarkingProperties) (bool, int, []string)
Compare - This method will compare two properties to make sure they are the same and will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
type ModifiedProperty ¶ added in v0.6.1
type ModifiedProperty struct {
Modified timestamp2.Timestamp `json:"modified,omitempty"`
}
ModifiedProperty - A property used by all STIX objects that captures the date and time that the object was modified or changed. This property effectively tracks the version of the object.
func (*ModifiedProperty) Compare ¶ added in v0.6.1
func (o *ModifiedProperty) Compare(obj2 *ModifiedProperty) (bool, int, []string)
Compare - This method will compare two properties to make sure they are the same and will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
func (*ModifiedProperty) VerifyExists ¶ added in v0.6.1
func (o *ModifiedProperty) VerifyExists() error
type MotivationProperties ¶
type MotivationProperties struct { PrimaryMotivation vocabs.AttackMotivation `json:"primary_motivation,omitempty"` SecondaryMotivations []vocabs.AttackMotivation `json:"secondary_motivations,omitempty"` }
MotivationProperties - Properties used by one or more STIX objects that capture the primary and secondary motivations.
type NameProperty ¶
type NameProperty struct {
Name string `json:"name,omitempty"`
}
NameProperty - A property used by one or more STIX objects that captures a vanity name for the STIX object in string format.
func (*NameProperty) Compare ¶ added in v0.6.1
func (o *NameProperty) Compare(obj2 *NameProperty) (bool, int, []string)
Compare - This method will compare two properties to make sure they are the same and will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
func (*NameProperty) VerifyExists ¶ added in v0.6.1
func (o *NameProperty) VerifyExists() error
VerifyExists - This method will verify that the name property on an object is present. It will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
type ObjectRefsProperty ¶ added in v0.6.1
type ObjectRefsProperty struct {
ObjectRefs []string `json:"object_refs,omitempty"`
}
ObjectRefsProperty - A property used by one or more STIX objects.
func (*ObjectRefsProperty) Compare ¶ added in v0.6.1
func (o *ObjectRefsProperty) Compare(obj2 *ObjectRefsProperty) (bool, int, []string)
Compare - This method will compare two properties to make sure they are the same and will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
func (*ObjectRefsProperty) VerifyExists ¶ added in v0.6.1
func (o *ObjectRefsProperty) VerifyExists() error
VerifyExists - This method will verify that the object refs property on an object is present. It will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
type RawProperty ¶ added in v0.6.1
type RawProperty struct {
Raw []byte `json:"-"`
}
RawProperty - A property used to store the raw bytes of the JSON object.
func (*RawProperty) SetRawData ¶ added in v0.6.1
func (o *RawProperty) SetRawData(data []byte)
type ResolvesToRefsProperty ¶ added in v0.6.1
type ResolvesToRefsProperty struct {
ResolvesToRefs []string `json:"resolves_to_refs,omitempty"`
}
ResolvesToRefsProperty -
type ResourceLevelProperty ¶
type ResourceLevelProperty struct {
ResourceLevel vocabs.AttackResourceLevel `json:"resource_level,omitempty"`
}
ResourceLevelProperty - A property used by one or more STIX objects that captures the resource level.
type RevokedProperty ¶ added in v0.6.1
type RevokedProperty struct {
Revoked bool `json:"revoked,omitempty"`
}
RevokedProperty - A property used by one or more STIX objects that captures whether or not this STIX object has been revoked by the object creator.
func (*RevokedProperty) Compare ¶ added in v0.6.1
func (o *RevokedProperty) Compare(obj2 *RevokedProperty) (bool, int, []string)
Compare - This method will compare two properties to make sure they are the same and will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
type RolesProperty ¶ added in v0.6.1
type RolesProperty struct {
Roles []vocabs.ThreatActorRole `json:"roles,omitempty"`
}
RolesProperty - A property used by one or more STIX objects that captures a list of roles that are part of the STIX object.
type SeenProperties ¶ added in v0.6.1
type SeenProperties struct { FirstSeen timestamp.Timestamp `json:"first_seen,omitempty"` LastSeen timestamp.Timestamp `json:"last_seen,omitempty"` }
SeenProperties - Properties used by one or more STIX objects that captures the time that this object was first and last seen in STIX timestamp format.
func (*SeenProperties) Valid ¶ added in v1.0.0
func (o *SeenProperties) Valid() error
type SpecVersionProperty ¶ added in v0.6.1
type SpecVersionProperty struct {
SpecVersion string `json:"spec_version,omitempty"`
}
SpecVersionProperty - A property used by all STIX objects that captures the STIX specification version.
func (*SpecVersionProperty) Compare ¶ added in v0.6.1
func (o *SpecVersionProperty) Compare(obj2 *SpecVersionProperty) (bool, int, []string)
Compare - This method will compare two properties to make sure they are the same and will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
func (*SpecVersionProperty) VerifyExists ¶ added in v0.6.1
func (o *SpecVersionProperty) VerifyExists() error
VerifyExists - This method will verify that the spec version property on an object is present if required. It will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
type TitleProperty ¶ added in v0.6.1
type TitleProperty struct {
Title string `json:"title"`
}
TitleProperty - A property used by one or more TAXII resources.
type TypeProperty ¶ added in v0.6.1
type TypeProperty struct {
ObjectType objects.ObjectType `json:"type"`
}
TypeProperty - A property used by one or more STIX objects that captures the STIX object type in string format.
func (*TypeProperty) Compare ¶ added in v0.6.1
func (o *TypeProperty) Compare(obj2 *TypeProperty) (bool, int, []string)
Compare - This method will compare two properties to make sure they are the same and will return a boolean, an integer that tracks the number of problems found, and a slice of strings that contain the detailed results, whether good or bad.
func (*TypeProperty) VerifyExists ¶ added in v0.6.1
func (o *TypeProperty) VerifyExists() error
type ValueProperty ¶ added in v0.6.1
type ValueProperty struct {
Value string `json:"value,omitempty"`
}
ValueProperty -
func (*ValueProperty) VerifyExists ¶ added in v0.6.1
func (o *ValueProperty) VerifyExists() error
Source Files ¶
- aliases.go
- authors.go
- belongstorefs.go
- confidence.go
- created.go
- createdbyref.go
- custom.go
- datastoreid.go
- description.go
- extensions.go
- externalreferences.go
- goals.go
- id.go
- killChainPhases.go
- labels.go
- lang.go
- markings.go
- modified.go
- motivations.go
- name.go
- objectrefs.go
- raw.go
- resolvestorefs.go
- resourceLevel.go
- revoked.go
- roles.go
- seen.go
- specversion.go
- title.go
- type.go
- value.go