Skip to content

Class: Directory

_The Directory Object represents the properties common to a file system directory. _

URI: attack:Directory

 classDiagram
    class Directory
    click Directory href "../Directory/"
      CyberObservableObject <|-- Directory
        click CyberObservableObject href "../CyberObservableObject/"

      Directory : atime

      Directory : contains_refs

      Directory : ctime

      Directory : defanged

      Directory : description

      Directory : extensions

      Directory : granular_markings





        Directory --> "*" GranularMarking : granular_markings
        click GranularMarking href "../GranularMarking/"



      Directory : id

      Directory : mtime

      Directory : name

      Directory : object_marking_refs

      Directory : path

      Directory : path_enc

      Directory : spec_version





        Directory --> "0..1" SpecVersionEnum : spec_version
        click SpecVersionEnum href "../SpecVersionEnum/"



      Directory : type

Inheritance

Slots

Name Cardinality and Range Description Inheritance
path 1
String
Filesystem path direct
path_enc 0..1
String
Encoding used for a filesystem path direct
ctime 0..1
Datetime
Creation time direct
mtime 0..1
Datetime
Last modification time direct
atime 0..1
Datetime
Last access time direct
contains_refs *
StixIdentifier
References to contained objects direct
type 1
StixTypeName
STIX object type StixEntity, CyberObservableCore
spec_version 0..1
SpecVersionEnum
STIX specification version CyberObservableCore
id 1
StixIdentifier
STIX object identifier StixEntity, CyberObservableCore
object_marking_refs *
StixIdentifier
Marking definition references applied to this object CyberObservableCore
granular_markings *
GranularMarking
Granular markings that apply to selected content CyberObservableCore
defanged 0..1
Boolean
Defines whether or not the data contained within the object has been defanged CyberObservableCore
extensions *
String
Open-ended extension payloads CyberObservableCore
name 0..1
String
Human-readable name StixEntity
description 0..1
String
Human-readable description StixEntity

In Subsets

Comments

  • jsonschema_source: https://github.com/oasis-open/cti-stix2-json-schemas/tree/master/schemas/observables/directory.json

Identifier and Mapping Information

Schema Source

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

Mappings

Mapping Type Mapped Value
self attack:Directory
native attack:Directory
exact unified_cyber_ontology:Directory

LinkML Source

Direct

name: Directory
description: 'The Directory Object represents the properties common to a file system
  directory. '
comments:
- 'jsonschema_source: https://github.com/oasis-open/cti-stix2-json-schemas/tree/master/schemas/observables/directory.json'
in_subset:
- observables
from_schema: https://w3id.org/lmodel/attack
exact_mappings:
- unified_cyber_ontology:Directory
is_a: CyberObservableObject
slots:
- path
- path_enc
- ctime
- mtime
- atime
- contains_refs
slot_usage:
  id:
    name: id
    pattern: ^directory--[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$
  type:
    name: type
    pattern: ^directory$
  path:
    name: path
    required: true
  contains_refs:
    name: contains_refs
    comments:
    - 'jsonschema_minItems: "1"'

Induced

name: Directory
description: 'The Directory Object represents the properties common to a file system
  directory. '
comments:
- 'jsonschema_source: https://github.com/oasis-open/cti-stix2-json-schemas/tree/master/schemas/observables/directory.json'
in_subset:
- observables
from_schema: https://w3id.org/lmodel/attack
exact_mappings:
- unified_cyber_ontology:Directory
is_a: CyberObservableObject
slot_usage:
  id:
    name: id
    pattern: ^directory--[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$
  type:
    name: type
    pattern: ^directory$
  path:
    name: path
    required: true
  contains_refs:
    name: contains_refs
    comments:
    - 'jsonschema_minItems: "1"'
attributes:
  path:
    name: path
    description: Filesystem path.
    from_schema: https://w3id.org/lmodel/attack
    rank: 1000
    alias: path
    owner: Directory
    domain_of:
    - Directory
    range: string
    required: true
  path_enc:
    name: path_enc
    description: Encoding used for a filesystem path.
    from_schema: https://w3id.org/lmodel/attack
    rank: 1000
    alias: path_enc
    owner: Directory
    domain_of:
    - Directory
    range: string
    pattern: ^[a-zA-Z0-9/\.+_:-]{2,250}$
  ctime:
    name: ctime
    description: Creation time.
    from_schema: https://w3id.org/lmodel/attack
    rank: 1000
    alias: ctime
    owner: Directory
    domain_of:
    - Directory
    - File
    range: datetime
  mtime:
    name: mtime
    description: Last modification time.
    from_schema: https://w3id.org/lmodel/attack
    rank: 1000
    alias: mtime
    owner: Directory
    domain_of:
    - Directory
    - File
    range: datetime
  atime:
    name: atime
    description: Last access time.
    from_schema: https://w3id.org/lmodel/attack
    rank: 1000
    alias: atime
    owner: Directory
    domain_of:
    - Directory
    - File
    range: datetime
  contains_refs:
    name: contains_refs
    description: References to contained objects.
    comments:
    - 'jsonschema_minItems: "1"'
    from_schema: https://w3id.org/lmodel/attack
    rank: 1000
    alias: contains_refs
    owner: Directory
    domain_of:
    - Directory
    - File
    - ArchiveExt
    range: stix_identifier
    multivalued: true
  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: Directory
    domain_of:
    - StixEntity
    - Bundle
    - Core
    - CyberObservableCore
    - ExtensionDefinition
    - LanguageContent
    - MarkingDefinition
    - File
    range: stix_type_name
    required: true
    pattern: ^directory$
  spec_version:
    name: spec_version
    description: STIX specification version.
    from_schema: https://w3id.org/lmodel/attack
    close_mappings:
    - unified_cyber_ontology:specVersion
    rank: 1000
    alias: spec_version
    owner: Directory
    domain_of:
    - Core
    - CyberObservableCore
    - MarkingDefinition
    range: SpecVersionEnum
  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: Directory
    domain_of:
    - StixEntity
    - Bundle
    - Core
    - CyberObservableCore
    - ExtensionDefinition
    - LanguageContent
    - MarkingDefinition
    - File
    range: stix_identifier
    required: true
    pattern: ^directory--[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$
  object_marking_refs:
    name: object_marking_refs
    description: Marking definition references applied to this object.
    comments:
    - 'jsonschema_minItems: "1"'
    from_schema: https://w3id.org/lmodel/attack
    close_mappings:
    - unified_cyber_ontology:objectMarking
    rank: 1000
    alias: object_marking_refs
    owner: Directory
    domain_of:
    - Core
    - CyberObservableCore
    - MarkingDefinition
    range: stix_identifier
    multivalued: true
  granular_markings:
    name: granular_markings
    description: Granular markings that apply to selected content.
    comments:
    - 'jsonschema_minItems: "1"'
    from_schema: https://w3id.org/lmodel/attack
    narrow_mappings:
    - unified_cyber_ontology:objectMarking
    rank: 1000
    alias: granular_markings
    owner: Directory
    domain_of:
    - Core
    - CyberObservableCore
    - MarkingDefinition
    range: GranularMarking
    multivalued: true
  defanged:
    name: defanged
    description: Defines whether or not the data contained within the object has been
      defanged.
    from_schema: https://w3id.org/lmodel/attack
    rank: 1000
    alias: defanged
    owner: Directory
    domain_of:
    - CyberObservableCore
    range: boolean
  extensions:
    name: extensions
    description: Open-ended extension payloads.
    notes:
    - JSON Schema uses patternProperties for extension keys; exact key validation
      is delegated to validator tooling.
    comments:
    - 'jsonschema_rule: patternProperties validator_hint: validate-extension-keys-and-values'
    from_schema: https://w3id.org/lmodel/attack
    related_mappings:
    - unified_cyber_ontology:hasFacet
    rank: 1000
    alias: extensions
    owner: Directory
    domain_of:
    - Core
    - CyberObservableCore
    - MarkingDefinition
    - File
    range: string
    multivalued: true
  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: Directory
    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: Directory
    domain_of:
    - RelatedAsset
    - MutableElement
    - StixEntity
    - ExtensionDefinition
    - ExternalReference
    range: string