Skip to content

Class: Hex

_The hex data type encodes an array of octets (8-bit bytes) as hexadecimal. The string MUST consist of an even number of hexadecimal characters, which are the digits '0' through '9' and the letters 'a' through 'f'. In order to allow pattern matching on custom objects, all properties that use the hex type, the property name MUST end with '_hex'. _

URI: attack:Hex

 classDiagram
    class Hex
    click Hex href "../Hex/"
      CommonSchemaComponent <|-- Hex
        click CommonSchemaComponent href "../CommonSchemaComponent/"

      Hex : description

      Hex : id

      Hex : name

      Hex : type

Inheritance

Slots

Name Cardinality and Range Description Inheritance
id 0..1
StixIdentifier
STIX object identifier StixEntity
type 0..1
StixTypeName
STIX object type StixEntity
name 0..1
String
Human-readable name StixEntity
description 0..1
String
Human-readable description StixEntity

In Subsets

Comments

  • jsonschema_type: string jsonschema_pattern: "^([a-fA-F0-9]{2})+$" jsonschema_source: https://github.com/oasis-open/cti-stix2-json-schemas/tree/master/schemas/common/hex.json

Identifier and Mapping Information

Schema Source

  • from schema: https://w3id.org/lmodel/attack

Mappings

Mapping Type Mapped Value
self attack:Hex
native attack:Hex

LinkML Source

Direct

name: Hex
description: 'The hex data type encodes an array of octets (8-bit bytes) as hexadecimal.
  The string MUST consist of an even number of hexadecimal characters, which are the
  digits ''0'' through ''9'' and the letters ''a'' through ''f''. In order to allow
  pattern matching on custom objects, all properties that use the hex type, the property
  name MUST end with ''_hex''. '
comments:
- 'jsonschema_type: string jsonschema_pattern: "^([a-fA-F0-9]{2})+$" jsonschema_source:
  https://github.com/oasis-open/cti-stix2-json-schemas/tree/master/schemas/common/hex.json'
in_subset:
- common
from_schema: https://w3id.org/lmodel/attack
is_a: CommonSchemaComponent

Induced

name: Hex
description: 'The hex data type encodes an array of octets (8-bit bytes) as hexadecimal.
  The string MUST consist of an even number of hexadecimal characters, which are the
  digits ''0'' through ''9'' and the letters ''a'' through ''f''. In order to allow
  pattern matching on custom objects, all properties that use the hex type, the property
  name MUST end with ''_hex''. '
comments:
- 'jsonschema_type: string jsonschema_pattern: "^([a-fA-F0-9]{2})+$" jsonschema_source:
  https://github.com/oasis-open/cti-stix2-json-schemas/tree/master/schemas/common/hex.json'
in_subset:
- common
from_schema: https://w3id.org/lmodel/attack
is_a: CommonSchemaComponent
attributes:
  id:
    name: id
    description: STIX object identifier.
    from_schema: https://w3id.org/lmodel/attack
    related_mappings:
    - unified_cyber_ontology:externalReference
    rank: 1000
    alias: id
    owner: Hex
    domain_of:
    - StixEntity
    - Bundle
    - Core
    - CyberObservableCore
    - ExtensionDefinition
    - LanguageContent
    - MarkingDefinition
    - File
    range: stix_identifier
  type:
    name: type
    description: STIX object type.
    from_schema: https://w3id.org/lmodel/attack
    related_mappings:
    - unified_cyber_ontology:state
    rank: 1000
    alias: type
    owner: Hex
    domain_of:
    - StixEntity
    - Bundle
    - Core
    - CyberObservableCore
    - ExtensionDefinition
    - LanguageContent
    - MarkingDefinition
    - File
    range: stix_type_name
  name:
    name: name
    description: Human-readable name.
    from_schema: https://w3id.org/lmodel/attack
    exact_mappings:
    - unified_cyber_ontology:name
    rank: 1000
    alias: name
    owner: Hex
    domain_of:
    - RelatedAsset
    - StixEntity
    - ExtensionDefinition
    - MarkingDefinition
    - AutonomousSystem
    - File
    range: string
  description:
    name: description
    description: Human-readable description.
    from_schema: https://w3id.org/lmodel/attack
    close_mappings:
    - unified_cyber_ontology:description
    rank: 1000
    alias: description
    owner: Hex
    domain_of:
    - RelatedAsset
    - MutableElement
    - StixEntity
    - ExtensionDefinition
    - ExternalReference
    range: string