GithubHelp home page GithubHelp logo

hartl3y94 / d3fend-ontology Goto Github PK

View Code? Open in Web Editor NEW

This project forked from d3fend/d3fend-ontology

0.0 0.0 0.0 403 KB

This repository holds the necessary content to produce the D3FEND ontology distribution.

Home Page: https://d3fend.mitre.org

License: MIT License

Python 27.27% Makefile 71.44% Dockerfile 1.29%

d3fend-ontology's Introduction

D3FEND Ontology

This repository holds the necessary content to produce the D3FEND ontology distribution.

  • If you are looking for the latest release of the ontology, please find it here.

  • If you are interested in contributing to this project, please see our contribution guidelines.

Overview

Note: if you are looking for the latest D3FEND ontology release please find it here.

The basic workflow is to edit the d3fend-protege.ttl file, save your changes, then simply run make all in this directory. This is designed to accommodate both plain text editing and Protege Ontology IDE modifications.

When making changes with a text editor please avoid introducing unsubstantial changes to many lines in the file. This enables efficient code reviews.

Note: before sending a merge request changes to src/ontology/d3fend-protege.ttl please always run make pre-commit before you commit changes or will will not be able to accept the request. 👀 You can run this automatically (and only against staged files) every commit with make pre-commit-install.

System Dependencies

  • java 15.0.1, other versions may work however
  • python 3.8
  • python pipenv package with pipenv in your PATH

Building

The Makefile has all the necessary targets (commands) needed to build the D3FEND ontology. Once your system dependencies are installed, Run make install-deps, then you can run make all to build the ontology.

In order to run make build/d3fend.csv, you need to be running a d3fend-backend server, this is not yet released.

Directories

Directory Purpose
dist/ Holds distributable ontology files resulting from a build (make all).
build/ Holds intermediate files used in build workflow.
reports/ Holds reports generated by report and test targets.
src/queries/ Holds queries and report profiles necessary to update ontology and generate reports.
src/ontology/ Holds the base ontology which is used during the build process to create the distribution.

Files

These files are located in the src, build, or dist directories.

Note: some files are created when make all is executed.

File Purpose
d3fend-protege.ttl Downloaded D3FEND ontology from webprotege.owl (renamed to match this name).
d3fend.{ttl,owl,json} D3FEND ontology distribution files.
d3fend-public.owl Temp merge of original web protege ontology and restrictions as object property assertions.
d3fend-res-as-prop.owl Temp file containing just restrictions as object property assertions between class puns.
d3fend-full.owl Final inference-enhanced copy with KBs for use in SPARQL end point. This is what is loaded into production Blazegraph.
d3fend-architecture.owl File of architectural elements extracted by a filter-architecture-* target.
d3fend.csv Tabular form of defensive tactics and techniques trees.
d3fend-prefixes.json D3FEND ontology context information / namespace prefixes in JSON-LD format; usable by ROBOT and RDFLib.
annotations.ttl Not currently used; stub of alternative file-based means to add ontology header (see ROBOT documentation).

Developer Notes

  • Ontology version is specified in Makefile as D3FEND_VERSION
  • Ontology style guide/conventions here (work in progress).

Build with docker

If you have docker and docker-compose, you can build a distribution in the dist/ folder running

docker-compose up d3fend-ontology

NOTICE

Use of the MITRE D3FEND™ Knowledge Graph and website is subject to the Terms of Use. Use of the MITRE D3FEND website is subject to the MITRE D3FEND Privacy Policy. MITRE D3FEND is funded by the National Security Agency (NSA) Cybersecurity Directorate and managed by the National Security Engineering Center (NSEC), which is operated by The MITRE Corporation. MITRE D3FEND; and the MITRE D3FEND logo are trademarks of The MITRE Corporation. MITRE ATT&CK® and ATT&CK® are registered trademarks of The MITRE Corporation. MITRE ATT&CK content is subject to the MITRE ATT&CK terms of use.

NOTICE

This software was produced for the U. S. Government under Basic Contract No. W56KGU-18-D-0004, and is subject to the Rights in Noncommercial Computer Software and Noncommercial Computer Software Documentation Clause 252.227-7014 (FEB 2012) © 2022 The MITRE Corporation.

NOTICE

MITRE hereby grants express written permission to use, reproduce, distribute, modify, and otherwise leverage this software to the extent permitted by the licensed terms provided in the LICENSE.md file included with this project.

NOTICE

© 2022 The MITRE Corporation.

Approved for Public Release; Distribution Unlimited #21-3978.

d3fend-ontology's People

Contributors

hack-sentinel avatar ioggstream avatar netfl0 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.