Skip to content

[REQUEST] Ensure external_references' urls are RFC3986 Compliant #60

Description

@jondricek

Is your feature request related to a problem? Please describe.

STIX 2.1 requires that the Common Data Type of External Reference (external_references) have their url field be RFC3986 compliant (link to STIX 2.1 reference). Ensuring this in the ATT&CK Data Model would help ensure that URLs stay in compliance with STIX 2.1 requirements.

Describe the solution you'd like

This could be added to the zod schema here: https://github.com/mitre-attack/attack-data-model/blob/main/src/schemas/common/property-schemas/stix-external-references.ts

Describe alternatives you've considered

Alternatively we could not bother with this enhancement since it is STIX 2.1 specific, but if not here, then where!?

Additional context

This has bitten the ATT&CK dataset in the past, e.g. here: mitre-attack/attack-stix-data#16

The referenced issue has some good examples of what was historically included in the STIX bundles before they were manually corrected

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions