d3fend Knowledge Bundle
MITRE D3FEND Knowledge Graph 1.6.0 (LinkML)
https://w3id.org/lmodel/d3fend/knowledge/Health46 concepts
- Confirmed by a person0 of 46
- Checked by automation only0
- Nobody has checked46
- Drafts46
- Reopened0
- Past review date0
- Edited since confirmed0
- Retired0
- Licence
- CC BY 4.0
- Publisher
- Noel McLoughlin
- As data
concepts.jsonldgraph.jsongraph.ntdatasets.jsonld
A LOKF knowledge base for d3fend. Every Markdown file under knowledge/ is one concept; together they form a queryable knowledge graph, derived from this repository’s code, schema and documents.
Datasets#
- d3fend LinkML schema - The LinkML model of MITRE D3FEND 1.6.0,
src/d3fend/schema/d3fend.yaml(schema idhttps://w3id.org/lmodel/d3fend): an umbrella over a core and an entries module, whose tree rootD3fendCatalogholds every term of the edition as a record. - Core module -
src/d3fend/schema/d3fend_core.yaml, the module with the schema’s two value types,d3fend_date_timeandd3fend_uri, and the one list,D3fendOwlKind. - Entries module -
src/d3fend/schema/d3fend_entries.yaml, whichscripts/d3fend_to_linkml.pywrites from the Turtle: the abstractD3fendEntry, its 22 kinds, and one slot for each of the ontology’s 292 properties a record can hold, under the property’s own IRI. - The catalogue -
src/d3fend/data/d3fend-1.6.0.yaml: every class and individual of D3FEND 1.6.0, 5,419 in all, as one record each with its IRI asid, its kind astype, and its text and relations as slots, without the 340 abstracts of cited sources. - Generated artefacts - What
just gen-projectandjust gen-docgenerate from the schema: the projections inproject/, the Python models insrc/d3fend/datamodel/, and the merged schema and pages underdocs/. None is edited by hand, and the SQL generator is off. - Example data - The examples
tests/test_data.pychecks: a valid example of each class, most of them real records of D3FEND 1.6.0, a counter-example for each constraint, and a counter-example for each rule on a whole catalogue. - Copy of the upstream -
upstream/: D3FEND 1.6.0’s Turtle file, the licence file at tag 1.6.0, and the Terms of Use, unchanged.scripts/check_upstream_release.pypins each by its git object hash, and a test holds the folder to that list. - The schema’s adapt copy -
.lokf/schema/d3fend.yaml, the copyjust lokf-adaptwrites from the schema so that it sits beside LOKF’slokf.yaml: rooted onD3fendEntryandD3fendCatalog, withid,typeandrdf_typedropped for LOKF’s, and six keys renamed with ad3fend_prefix. - Neighbours’ adapt copies - The adapt copies of fourteen released lmodel repositories in
tests/neighbours/, among them attack, cwe, capec and nist-sp-800-53, each pinned by its SHA-256, against whichtests/test_schema_rules.pyholds this schema’s copy apart andtests/test_mappings.pyholds the mappings. - File Analysis - The defensive technique
d3f:FileAnalysisof D3FEND 1.6.0, written as a concept of typeD3fendDefensiveTechniquein the adapt copy’s keys. It shows that the domain schema admits a technique as a concept, with its relations to D3FEND’s own terms.
Explanations#
- Why a term is a record - Why D3FEND’s terms are records and not LinkML classes: D3FEND’s own conventions pun its techniques as instances, its distribution states nearly every class restriction again as a direct triple between terms, and most of its 4,465 classes are not types anyone instantiates.
- How the kinds are chosen - How a term gets its kind: the first in the converter’s table whose branch it sits under, the deeper before its parent and D3FEND’s own branches before the external ones, so that a term with two parents has one kind.
- What a slot may hold - Which kinds hold which slots, and why most may hold any: the ontology states a domain for few of its properties, so no domain is invented. A literal slot holds one value where no term of this edition holds two.
- Mappings - What the schema maps to and how each mapping is held: lmodel/attack, stix, cwe, capec and nist-sp-800-53 by their released copies, and SKOS, IAO, BFO and the Common Core Ontologies because the ontology itself names their terms. The earlier guessed mappings are gone.
- RDF from the catalogue - How the catalogue becomes RDF: every identifier is a CURIE, so both the JSON-LD context and LinkML’s own dumper give a record’s IRI and its relations as D3FEND’s own.
rdfs:seeAlsoandrdfs:isDefinedByproject as text. - What the schema does not cover - What the schema leaves out on purpose: D3FEND’s classes as LinkML classes, the 340 abstracts of cited sources, the restrictions the edition does not obey, two leftover subjects of WebProtege, the SQL form, and any claim about whether what an entry says is true.
- What the data shows - What the catalogue holds as the file holds it, faults included: a CAPEC id that names another entry, 27 duplicated D3FEND ids, three empty links, and terms with two labels or three definitions. A test records each, so a later edition that fixes one fails.
Glossary#
- Entry - An entry: one term of the D3FEND graph, a class or an individual, as a record with its IRI, its kind, its text and its relations.
- Kind of entry - A kind of entry: one of the 22 classes under
D3fendEntry, each a branch of D3FEND’s tree, which a record names intype. - Defensive technique - A defensive technique: a countermeasure, a method that makes a system harder to attack, related to the artifacts it acts on and to the tactic it enables.
D3fendDefensiveTechniqueholds 273 in this edition. - Offensive technique - An offensive technique: a way an adversary acts, drawn from ATT&CK Enterprise, related to the artifacts it touches and to the tactic it serves. The techniques of other frameworks are
D3fendThreatModelTechnique. - Digital artifact - A digital artifact: something that carries information for a digital system, such as a file, a process or a packet, where offensive and defensive techniques meet.
- Class restriction - A class restriction: an OWL axiom such as
d3f:FileAnalysis rdfs:subClassOf [ owl:onProperty d3f:analyzes ; owl:someValuesFrom d3f:File ], which a record holds as a value of its slot. - Punning - Punning: declaring one IRI both an
owl:Classand anowl:NamedIndividual. D3FEND’s conventions pun defensive techniques, andowl_kindrecords it asclass_and_individual. - Adapt copy - An adapt copy: the copy of a published LinkML schema that
lokf adaptwrites so that it can sit beside LOKF’slokf.yamlin a domain schema, with its chosen roots onConcept.
References#
- MITRE D3FEND ontology - D3FEND’s distribution: the ontology at
https://d3fend.mitre.org/ontologies/d3fend/1.6.0/d3fend.ttl, edition 1.6.0 of 2026-08-31, built from tag 1.6.0 ofd3fend/d3fend-ontology.upstream/holds the Turtle file. - D3FEND Terms of Use - MITRE’s terms for using D3FEND: a non-exclusive, royalty-free licence for research, development and commercial purposes, on condition that a copy reproduces MITRE’s copyright designation and the licence.
upstream/TERMS.txtholds the text, and the watch compares it. - d3fend-ontology repository -
d3fend/d3fend-ontology, the repository that builds D3FEND’s distribution, under the MIT licence. This project reads its licence file at tag 1.6.0, and pins that tag’s commit in the schema header. It is the place to report a problem in D3FEND.
Policies#
- Licence and attribution - Whose work each part is: the code and the schema under Apache-2.0, the bundle under CC BY 4.0, D3FEND under MITRE’s Terms of Use with the designation and licence those terms ask each copy to reproduce, and the third-party text inside D3FEND under its own terms.
- AI covenant - The rules for AI-assisted work here: whoever submits owns the contribution, an element says what the ontology says, a rule states only what the upstream states, a mapping is read at its source, and no commit carries an AI co-authorship trailer.
- Security policy - How to report a vulnerability in this repository, by GitHub’s private reporting, what executes here and what holds each surface. A problem in D3FEND itself belongs with the D3FEND project.
Services#
- Documentation site - The knowledge website in
website/, a Hugo site that the Knowledge website workflow publishes to GitHub Pages athttps://lmodel.github.io/d3fend, built from the README,docs/, the schema’s pages and the bundle. It replaces the mkdocs site.
Playbooks#
- Regenerate and test - How to change the schema: edit the converter or a hand-written module, run
just gen-schema,just lint,just gen-project,just gen-doc,just lokf-adaptandjust test, and commit what they write. Generated files are never edited by hand. - Validate a catalogue - How to validate a catalogue: run
linkml-validatewithD3fendCatalogas the target class, andtests/d3fend_rules.pyfor what JSON Schema cannot state.project/jsonschema/d3fend.schema.jsonserves anyone without LinkML. - Release - How a release happens:
semantic-release.ymlreads Conventional Commits onmain, promotes the## [Unreleased]section, tags and publishes. The first release needs thev0.0.0baseline tag onmain, and PyPI publishing stays off. - Move to another edition - How to move the schema to another edition when the watch reports one: read what changed, then move
upstream/, the pins inscripts/check_upstream_release.py, the schema headers and the catalogue’s name together, and let the tests show what the new Turtle changed. - Knowledge sources map - The librarian’s scrape map: every repository location and external source this bundle derives concepts from, how to re-check each, and the tracked paths left out with their reasons.
Workflows#
- Build and test (main.yaml) - The Build and test workflow: on every pull request and push to
main, it runsjust teston Python 3.11 to 3.14, and lints the schema and checks the adapt copy on 3.13. - Lint and docs (lint-and-docs.yaml) - The static checks on pull requests, on
mainand every Monday: ShellCheck, actionlint, the word budgets of CONTRIBUTING.md and SECURITY.md, markdownlint, lychee and codespell. - Semantic release (semantic-release.yml) - The workflow that computes the next version from Conventional Commits on
main, promotes the changelog, tags and publishes a GitHub Release, and dispatches the knowledge release onceKNOWLEDGE_RELEASE_ENABLEDistrue. - Upstream watch (upstream-watch.yaml) - The weekly check that
scripts/check_upstream_release.pyruns: another edition of D3FEND, a changed file, a changed licence or changed Terms of Use fails the run and opens or updates an issue. - Knowledge registrar (knowledge-registrar.yaml) - The gate on the bundle: it validates the bundle on each pull request that touches it and weekly, and checks that each new
human:event in a pull request is backed by an approval or a signature. It never judges whether content is true. - Knowledge librarian (knowledge-librarian.yaml) - The sidecar’s scheduled agent run that keeps the bundle in step with the repository and opens a pull request for a person to review. It is inert until
KNOWLEDGE_LIBRARIAN_ENABLEDistrue. - Knowledge release (knowledge-release.yaml) - The workflow that attaches the bundle, a Copilot skill and the schema’s adapt copy to a GitHub release, each with a checksum. It runs when dispatched, and on each release once
KNOWLEDGE_RELEASE_ENABLEDistrue. - Knowledge sync (knowledge-sync.yaml) - The weekly workflow that keeps the sidecar’s copies and the skills pin at the newest release of Knowledge Trust Ladder, by one pull request.
- Knowledge website (knowledge-website.yaml) - The workflow that builds
website/on each pull request that touches its inputs, and deploys the default branch’s build to GitHub Pages onceKNOWLEDGE_WEBSITE_ENABLEDistrue.