LinkML schema
Common Attack Pattern Enumeration and Classification (CAPEC)
A LinkML model of the CAPEC catalogue. It keeps the keys and listed values of the catalogue's XML Schema, so the catalogue validates as MITRE spells it once scripts/capec_to_json.py has turned it into data.
Schema file: capec.yaml, from src/capec/schema/capec.yaml
URI: https://w3id.org/lmodel/capec
Name: capec
Diagram#
erDiagram
CapecAlternateTerm {
capec_structured_text Description
string Term
}
CapecAttackPattern {
CapecAbstraction Abstraction
capec_structured_text Description
capec_structured_textList Example_Instances
capec_structured_text Extended_Description
capec_structured_textList Indicators
CapecLikelihood Likelihood_Of_Attack
capec_structured_textList Mitigations
capec_structured_textList Prerequisites
capec_structured_textList Resources_Required
CapecSeverity Typical_Severity
capec_numeric_id ID
string Name
CapecStatus Status
}
CapecAttackPatternCatalog {
date Date
string Name
string Version
}
CapecAttackStep {
capec_structured_text Description
CapecAttackStepPhase Phase
integer Step
}
CapecCategory {
capec_structured_text Summary
capec_numeric_id ID
string Name
CapecStatus Status
}
CapecConsequence {
string Consequence_ID
CapecTechnicalImpactList Impact
CapecLikelihood Likelihood
capec_structured_text Note
CapecScopeList Scope
}
CapecContentHistory {
}
CapecContribution {
string Contribution_Comment
date Contribution_Date
string Contribution_Name
string Contribution_Organization
CapecContributionType Type
}
CapecEntry {
capec_numeric_id ID
string Name
CapecStatus Status
}
CapecExcludeRelated {
}
CapecExternalReference {
stringList Author
string Edition
string Publication
capec_day Publication_Day
capec_month Publication_Month
capec_year Publication_Year
string Publisher
capec_reference_id Reference_ID
string Title
capec_uri URL
date URL_Date
}
CapecHasMember {
}
CapecMemberOf {
}
CapecModification {
string Modification_Comment
date Modification_Date
CapecImportance Modification_Importance
string Modification_Name
string Modification_Organization
}
CapecNote {
CapecNoteType Type
capec_structured_text Value
}
CapecPreviousEntryName {
date Date
string Value
}
CapecReference {
string Section
}
CapecRelatedAttackPattern {
CapecRelatedNature Nature
}
CapecRelatedWeakness {
capec_numeric_id CWE_ID
}
CapecRelationships {
}
CapecSkill {
CapecSkillLevel Level
string Value
}
CapecStakeholder {
capec_structured_text Description
CapecStakeholderType Type
}
CapecSubmission {
string Submission_Comment
date Submission_Date
string Submission_Name
string Submission_Organization
}
CapecTaxonomyMapping {
string Entry_ID
string Entry_Name
CapecTaxonomyMappingFit Mapping_Fit
CapecTaxonomyName Taxonomy_Name
}
CapecTechnique {
capec_structured_text Value
}
CapecView {
string Filter
capec_structured_text Objective
CapecViewType Type
capec_numeric_id ID
string Name
CapecStatus Status
}
CapecAttackPattern ||--|o CapecContentHistory : "Content_History"
CapecAttackPattern ||--}o CapecAlternateTerm : "Alternate_Terms"
CapecAttackPattern ||--}o CapecAttackStep : "Execution_Flow"
CapecAttackPattern ||--}o CapecConsequence : "Consequences"
CapecAttackPattern ||--}o CapecNote : "Notes"
CapecAttackPattern ||--}o CapecReference : "References"
CapecAttackPattern ||--}o CapecRelatedAttackPattern : "Related_Attack_Patterns"
CapecAttackPattern ||--}o CapecRelatedWeakness : "Related_Weaknesses"
CapecAttackPattern ||--}o CapecSkill : "Skills_Required"
CapecAttackPattern ||--}o CapecTaxonomyMapping : "Taxonomy_Mappings"
CapecAttackPatternCatalog ||--}o CapecAttackPattern : "Attack_Patterns"
CapecAttackPatternCatalog ||--}o CapecCategory : "Categories"
CapecAttackPatternCatalog ||--}o CapecExternalReference : "External_References"
CapecAttackPatternCatalog ||--}o CapecView : "Views"
CapecAttackStep ||--}o CapecTechnique : "Technique"
CapecCategory ||--|o CapecContentHistory : "Content_History"
CapecCategory ||--|o CapecRelationships : "Relationships"
CapecCategory ||--}o CapecNote : "Notes"
CapecCategory ||--}o CapecReference : "References"
CapecCategory ||--}o CapecTaxonomyMapping : "Taxonomy_Mappings"
CapecContentHistory ||--|o CapecSubmission : "Submission"
CapecContentHistory ||--}o CapecContribution : "Contribution"
CapecContentHistory ||--}o CapecModification : "Modification"
CapecContentHistory ||--}o CapecPreviousEntryName : "Previous_Entry_Name"
CapecEntry ||--|o CapecContentHistory : "Content_History"
CapecEntry ||--}o CapecNote : "Notes"
CapecEntry ||--}o CapecReference : "References"
CapecExcludeRelated ||--|| CapecEntry : "Exclude_ID"
CapecHasMember ||--|| CapecEntry : "CAPEC_ID"
CapecHasMember ||--}o CapecExcludeRelated : "Exclude_Related"
CapecMemberOf ||--|| CapecEntry : "CAPEC_ID"
CapecMemberOf ||--}o CapecExcludeRelated : "Exclude_Related"
CapecReference ||--|| CapecExternalReference : "External_Reference_ID"
CapecRelatedAttackPattern ||--|| CapecAttackPattern : "CAPEC_ID"
CapecRelatedAttackPattern ||--}o CapecExcludeRelated : "Exclude_Related"
CapecRelationships ||--}o CapecHasMember : "Has_Member"
CapecRelationships ||--}o CapecMemberOf : "Member_Of"
CapecTechnique ||--|o CapecEntry : "CAPEC_ID"
CapecView ||--|o CapecContentHistory : "Content_History"
CapecView ||--|o CapecRelationships : "Members"
CapecView ||--}o CapecNote : "Notes"
CapecView ||--}o CapecReference : "References"
CapecView ||--}o CapecStakeholder : "Audience"Classes#
| Class | Description |
|---|---|
| CapecAlternateTerm | Another name by which an attack pattern is known |
| CapecAttackPatternCatalog | One release of the whole catalogue, with its entries and the references they … |
| CapecAttackStep | One step of the way an adversary typically carries out an attack |
| CapecConsequence | One thing that can happen if an attack succeeds |
| CapecContentHistory | The record of who wrote and changed an entry |
| CapecContribution | Help given to an entry by someone other than its submitter |
| CapecEntry | Anything in the catalogue with a CAPEC number, whether an attack pattern, a c… |
| CapecAttackPattern | A catalogued way that adversaries go about an attack, with what it takes and … |
| CapecCategory | A group of attack patterns that share an effect or intent, and not itself a p… |
| CapecView | One way of looking over the catalogue, by a hierarchy or by a slice of its en… |
| CapecExcludeRelated | An ancestor under which a relation does not hold |
| CapecExclusionsMixin | The field of any relation that can leave out some ancestors |
| CapecExternalReference | A publication or page outside CAPEC that entries point to for more detail |
| CapecHasMember | A statement that a view or a category holds an entry |
| CapecMemberOf | A statement that an entry belongs to a view or a category |
| CapecModification | One later edit to an entry |
| CapecNote | A remark on an entry that no other field can hold |
| CapecPreviousEntryName | A name an entry used to carry |
| CapecReference | One citation by an entry of an external reference |
| CapecRelatedAttackPattern | A relation from one attack pattern to another |
| CapecRelatedWeakness | A weakness in the Common Weakness Enumeration that can make an attack possibl… |
| CapecRelationships | Which entries a category or a view holds, and which it belongs to |
| CapecSkill | A skill or piece of knowledge an adversary needs |
| CapecStakeholder | One kind of person a view is meant for, and what they would get from it |
| CapecSubmission | Who first put an entry forward, and when |
| CapecTaxonomyMappedMixin | The field of an entry that can map to other taxonomies |
| CapecTaxonomyMapping | A link from an entry to the matching entry of another taxonomy |
| CapecTechnique | One way of carrying out a step of an attack |
Slots#
| Slot | Description |
|---|---|
| Abstraction | How concrete the pattern is |
| Alternate_Terms | Other names for the pattern |
| Attack_Patterns | The attack patterns |
| Audience | Who the view is meant for |
| Author | A person or body who wrote the work |
| CAPEC_ID | The other attack pattern |
| Categories | The categories |
| Consequence_ID | The CAPEC team’s identifier for a consequence repeated across patterns, in th… |
| Consequences | What can happen if the attack succeeds |
| Content_History | Who wrote and changed the entry |
| Contribution | Each contribution from someone else |
| Contribution_Comment | A remark on the contribution |
| Contribution_Date | The day of the contribution |
| Contribution_Name | The contributor’s name |
| Contribution_Organization | The contributor’s organisation |
| CWE_ID | The weakness’s number in the Common Weakness Enumeration |
| Date | The day this catalogue was made or last updated |
| Description | Where or how the other name is used |
| Edition | Which edition of the work is meant |
| Entry_ID | The other entry’s identifier in that taxonomy |
| Entry_Name | The other entry’s name in that taxonomy |
| Example_Instances | Concrete examples of the attack |
| Exclude_ID | The number of the ancestor |
| Exclude_Related | Ancestors under which the relation does not hold |
| Execution_Flow | The steps an adversary typically takes |
| Extended_Description | A longer account of the pattern |
| External_Reference_ID | The reference cited |
| External_References | The external references that entries cite |
| Filter | A query over the catalogue that selects the view’s entries |
| Has_Member | What this entry holds |
| ID | The entry’s CAPEC number |
| Impact | What the attack does to the system |
| Indicators | Signs that an attack is near, under way or over |
| Level | How much of it is needed |
| Likelihood | How likely this consequence is, beside the pattern’s others |
| Likelihood_Of_Attack | How likely an attack of this kind is to succeed |
| Mapping_Fit | How well the two entries fit |
| Member_Of | What this entry belongs to |
| Members | The entries the view holds |
| Mitigations | Ways to prevent the attack or lessen its harm |
| Modification | Each later edit |
| Modification_Comment | What the edit did |
| Modification_Date | The day of the edit |
| Modification_Importance | How much the edit matters to anyone relying on the entry |
| Modification_Name | The editor’s name |
| Modification_Organization | The editor’s organisation |
| Name | The catalogue’s name |
| Nature | What kind of relation it is |
| Note | A remark on the consequence |
| Notes | Remarks that no other field can hold |
| Objective | What the view is for |
| Phase | The stage of the attack it belongs to |
| Prerequisites | Conditions that must hold for the attack to work |
| Previous_Entry_Name | Each name the entry used to carry |
| Publication | The journal, conference or larger work that holds it |
| Publication_Day | The day of the month it appeared |
| Publication_Month | The month it appeared |
| Publication_Year | The year it appeared |
| Publisher | Who published it |
| Reference_ID | The identifier entries use to cite this reference |
| References | The external references the entry cites |
| Related_Attack_Patterns | The pattern’s relations to others |
| Related_Weaknesses | The weaknesses that can make the attack possible |
| Relationships | What the category holds and belongs to |
| Resources_Required | What an adversary must have to hand, such as tools or addresses |
| Scope | The security properties violated |
| Section | The section title or page that this citation means |
| Skills_Required | The skills an adversary needs |
| Status | How far the entry has got through review |
| Step | The step’s number |
| Submission | The entry’s first submission |
| Submission_Comment | A remark on the submission |
| Submission_Date | The day it was submitted |
| Submission_Name | The submitter’s name |
| Submission_Organization | The submitter’s organisation |
| Summary | What the patterns in this category have in common |
| Taxonomy_Mappings | Matching entries in other taxonomies |
| Taxonomy_Name | The other taxonomy |
| Technique | Ways of doing it |
| Term | The other name |
| Title | The work’s title |
| Type | What kind of remark it is |
| Typical_Severity | How bad the outcome usually is |
| URL | Where it can be read |
| URL_Date | The day someone last confirmed the address worked |
| Value | The remark itself |
| Version | The catalogue’s version, which together with its name identifies it |
| Views | The views |
Enumerations#
| Enumeration | Description |
|---|---|
| CapecAbstraction | How concrete an attack pattern is |
| CapecAttackStepPhase | Which stage of an attack a step belongs to |
| CapecContributionType | Whether a contribution changed an entry’s content or only commented on it |
| CapecImportance | How much a change to an entry matters to anyone relying on it |
| CapecLikelihood | How likely something is to happen |
| CapecNoteType | What kind of remark a note makes |
| CapecRelatedNature | How one attack pattern relates to another |
| CapecScope | The security property that a consequence violates |
| CapecSeverity | How bad the typical outcome of an attack is |
| CapecSkillLevel | How much skill or knowledge an adversary needs |
| CapecStakeholderType | The kinds of people a view is meant for |
| CapecStatus | How far an entry has got through CAPEC’s review |
| CapecTaxonomyMappingFit | How well an entry fits the entry of another taxonomy that it maps to |
| CapecTaxonomyName | The other taxonomies that CAPEC maps to |
| CapecTechnicalImpact | What a successful attack does to the system, in technical terms |
| CapecViewType | How a view selects its entries |
Types#
| Type | Description |
|---|---|
| Boolean | A binary (true or false) value |
| CapecDay | A day of the month in the XSD’s xs:gDay form, such as —08 |
| CapecMonth | A month in the XSD’s xs:gMonth form, such as –02 for February |
| CapecNumericId | The number of a CAPEC entry or a CWE weakness, written as a string of digits |
| CapecReferenceId | The identifier of an external reference, such as REF-1 |
| CapecStructuredText | Text that may hold XHTML markup such as paragraphs and lists, with no namespa… |
| CapecUri | An address, as XML Schema’s anyURI admits it |
| CapecYear | A year in the XSD’s xs:gYear form, such as 2004 |
| Curie | a compact URI |
| Date | a date (year, month and day) in an idealized calendar |
| DateOrDatetime | Either a date or a datetime |
| Datetime | The combination of a date and time |
| Decimal | A real number with arbitrary precision that conforms to the xsd:decimal speci… |
| Double | A real number that conforms to the xsd:double specification |
| Float | A real number that conforms to the xsd:float specification |
| Integer | An integer |
| Jsonpath | A string encoding a JSON Path |
| Jsonpointer | A string encoding a JSON Pointer |
| Ncname | Prefix part of CURIE |
| Nodeidentifier | A URI, CURIE or BNODE that represents a node in a model |
| Objectidentifier | A URI or CURIE that represents an object in the model |
| Sparqlpath | A string encoding a SPARQL Property Path |
| String | A character string |
| Time | A time object represents a (local) time of day, independent of any particular… |
| Uri | a complete URI |
| Uriorcurie | a URI or a CURIE |