Skip to content
lmodelPublic

About

Open Security Controls Assessment Language (LinkML)

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

92 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Copier Badge

oscal

Build and test Licence OpenSSF Scorecard KTL scorecard

Open Security Controls Assessment Language (LinkML)

Only want to ask? Install ktl-docent into any agent you use, by a route from the install page, and ask it about this project. It answers from the bundle and says how far each answer has been checked.

Agents: if .lokf/knowledge/index.md exists, read it first. llms.txt says how to weigh it.

Documentation Website

https://lmodel.github.io/oscal

What it models

The schema models NIST's Open Security Controls Assessment Language (OSCAL) 1.2.3. It has one module for each of OSCAL's models: the catalog, the profile, the component definition, the system security plan, the assessment plan and results, the plan of action and milestones, and the mapping collection. Every model shares OSCAL's metadata and back matter, which the catalog module defines.

The schema header pins OSCAL's release tag and commit, and src/oscal/schema/metaschema/ holds that commit's metaschema sources. Each enum names the allowed-values lists it renders there, which tests/test_schema_rules.py checks. A weekly workflow opens an issue when NIST releases a newer OSCAL or the copy drifts.

Mappings

None yet.

Not modelled here

OSCAL's metaschema states constraints that the schema does not check: the keys an index, index-has-key or is-unique constraint names, expect tests, and has-cardinality counts. An OSCAL document that passes the schema can still fail NIST's own validators on these.

Repository Structure

  • docs/: the website's pages, with the generated schema pages in docs/elements/
  • examples/: usage examples
  • project/: generated project files (do not edit them)
  • scripts/: the upstream watch
  • src/oscal/schema/: the LinkML schema, oscal.yaml and the modules it imports (edit these), and the metaschema copy
  • src/oscal/datamodel/: the generated Python datamodel
  • tests/: Python tests, with example data and third-party OSCAL documents in data/
  • website/: the Hugo site built from the README, docs/, the schema's pages and the knowledge bundle

Developer Tools

Run just to list the project's just recipes.

Knowledge Trust Ladder (KTL)

.lokf/ holds this project's KTL knowledge bundle. Its domain schema, .lokf/schema/oscal.yaml, is the copy just lokf-adapt writes from src/oscal/schema/oscal.yaml, and just lokf-adapt-check says when it is stale. Edit the source, never the copy. A release carries the copy as schema-<tag>-oscal.yaml, on the terms CONTRIBUTING.md gives.

The copy roots these classes on Concept, so a concept may name any of them, or a subclass, as its type. In Obsidian, add them to the Known LOKF types setting of the KTL Registrar and KTL Curator plugins:

Catalog, Profile, ComponentDefinition, SystemSecurityPlan, AssessmentPlan, AssessmentResults, PlanOfActionAndMilestones, MappingCollection

OSCAL gives none of these classes an identifier slot, so a concept keeps each one's required uuid and metadata, and its id names it beside them.

The copy renames what LOKF defines: the classes Role, Parameter, Citation and Revision take an Oscal prefix, and seventeen keys, such as title, version and last-modified, an oscal_ one. It writes OSCAL's hyphenated keys with underscores, so oscal-version becomes oscal_oscal_version. Seven keys are also slsa's or github-actions' under another IRI, and tests/test_schema_rules.py lists them and fails on a new shared key.

License

The schema and the code are under the Apache License 2.0 (LICENSE). OSCAL's metaschema is NIST's work, in the public domain, and keeps NIST's licence beside it, and the third-party test documents keep their own: see NOTICE. This is not an official NIST project, and its use implies no endorsement by NIST.

Contributing and security

CONTRIBUTING.md is the checklist for pull requests and releases, AI_COVENANT.md sets the rules for AI-assisted work, SECURITY.md says how to report a vulnerability, and CHANGELOG.md records the changes.

Credits

Built from the linkml-project-copier template (doi:10.5281/zenodo.15163584).

About

Open Security Controls Assessment Language (LinkML)

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages