Skip to content

Class: HashesType

_The Hashes type represents one or more cryptographic hashes, as a special set of key/value pairs _

URI: attack:HashesType

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

      HashesType : description

      HashesType : id

      HashesType : name

      HashesType : 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

Usages

used by used in type used
ExternalReference hashes range HashesType
Artifact hashes range HashesType
File hashes range HashesType
AlternateDataStreamType ads_hashes range HashesType
WindowsPESection pe_section_hashes range HashesType
PEBinaryExt file_header_hashes range HashesType
X509Certificate hashes range HashesType

In Subsets

Comments

  • jsonschema_rule: patternProperties+additionalProperties=false validator_hint: validate-hash-key-specific-patterns jsonschema_source: https://github.com/oasis-open/cti-stix2-json-schemas/tree/master/schemas/common/hashes-type.json

Notes

  • JSON Schema defines strict hash key patternProperties with algorithm-specific regex value constraints.

Identifier and Mapping Information

Schema Source

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

Mappings

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

LinkML Source

Direct

name: HashesType
description: 'The Hashes type represents one or more cryptographic hashes, as a special
  set of key/value pairs '
notes:
- JSON Schema defines strict hash key patternProperties with algorithm-specific regex
  value constraints.
comments:
- 'jsonschema_rule: patternProperties+additionalProperties=false validator_hint: validate-hash-key-specific-patterns
  jsonschema_source: https://github.com/oasis-open/cti-stix2-json-schemas/tree/master/schemas/common/hashes-type.json'
in_subset:
- common
from_schema: https://w3id.org/lmodel/attack
is_a: CommonSchemaComponent

Induced

name: HashesType
description: 'The Hashes type represents one or more cryptographic hashes, as a special
  set of key/value pairs '
notes:
- JSON Schema defines strict hash key patternProperties with algorithm-specific regex
  value constraints.
comments:
- 'jsonschema_rule: patternProperties+additionalProperties=false validator_hint: validate-hash-key-specific-patterns
  jsonschema_source: https://github.com/oasis-open/cti-stix2-json-schemas/tree/master/schemas/common/hashes-type.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: HashesType
    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: HashesType
    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: HashesType
    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: HashesType
    domain_of:
    - RelatedAsset
    - MutableElement
    - StixEntity
    - ExtensionDefinition
    - ExternalReference
    range: string