CyberGuardAI 安全情报工作区
AI 安全知识情报
LJH 管理员
返回首页 学术论文

此处必须做什么?在变更点使用有界应用安全本体

Farinha, Pedro

摘要与解读

论文提出有界应用安全本体,把分散的安全规范映射到代码变更点,供工程师与AI助手使用。

六维情报分析

6 个维度 · 原文可溯源

影响范围

  • 来源报告的影响对象是变更点上的软件工程师与AI编码助手:在pull request、新依赖、重构等场景中,本地决策具有安全后果,需要可寻址、可完整回答的工程指引。AppSec Core把EU NIS2等权威中可工程执行的部分转为有类型的工作集,使变更范围收敛到治理切片(如身份/访问/会话),并让合规义务反向解析为跨切片的工程义务。适用前提是存在该本体及其source→entity映射,且变更能归入某个切片。

    原文依据 · 3

    中文译文

    例如欧盟的 NIS2,而其中大部分内容的写作对象并非处于变更节点的工程师或 AI 助手。现有的网络安全本体主要为检测和分析而建模攻击、指标与风险,并未涵盖必须付诸行动的工程实践内容。本文介绍现有的有界应用安全本体 AppSec Core 的一个用例;其构建和验证另有报告。我们展示了它的用法。它将这些权威资料中可指导工程行动的部分整理成可通过类型定位的工作集合:那些控制目标……

    原文引文

    as the EU’s NIS2 — and most of it is written for readers other than the engineer, or the AI assistant, at a point of change. Existing cybersecurity ontologies largely model attacks, indicators, and risk for detection and analysis, not the engineering-practice substance one must act on. This paper presents a use case for an existing bounded application-security ontology, AppSec Core, whose construction and validation are reported separately. We show how it is used. It makes the engineering-actionable fraction of those authorities addressable as a typed working set: the control objectives that
    查看原文 · v1

    中文译文

    6,巴西维多利亚。††电子邮箱:pedro.farinha@shiftleft.pt††地址:葡萄牙 Independent Researcher, Shiftleft – Secure Software Engineering, Lda. 1 引言 软件工程师越来越多地在变更节点开展工作,例如拉取请求、引入新依赖项或重构;此时的局部决策会产生安全后果。安全设计原则认为,应在构建系统时处理这些后果,而不是事后补救。在实践中,每个变更节点都面临一个具体问题:要使这项变更安全,此处必须做什么?回答这个问题,我们……

    原文引文

    6, Vitória, Brazil.††email: pedro.farinha@shiftleft.pt††address: Independent Researcher, Shiftleft – Secure Software Engineering, Lda., Portugal 1 Introduction Software engineers increasingly work at points of change — a pull request, a new dependency, a refactor — where a local decision has security consequences. The principle of security by design holds that those consequences should be addressed as the system is built, not retrofitted afterwards; in practice this resolves, at each point of change, into a concrete question: what must be done here for this change to be secure? Answering it we
    查看原文 · v1
    sion Existing cybersecurity ontologies model the threat and the risk; an engineer — or an AI assistant — at a point of work also needs to know what must be done here, and an organization under a new regulation needs to know what must be done to comply. We have shown that a bounded, functionally typed application-security ontology answers both by returning the same object: a typed, source-traceable working set. Forward, a change to authentication middleware scopes to its slice; inverse, a NIS2 compliance duty resolves into the engineering obligations it implies across slices — the code-level fr
    查看原文 · v1

关联资产

  • 原文示明的关联资产包括:AppSec Core本体(命名空间.../appsec-core/v1#)、十个领域切片(如Identity, Access & Session Trust、Input/Output Validation、Release Promotion)、四类实体ControlObjective、Practice、Mechanism、Artifact,以及具体标识符ACO-IAT-001/002、ACP-IAT-006、ACM-IAT-003/006、ACA-IAT-003/004/005。适用前提是变更涉及身份/访问/会话组件(如认证中间件),且组织需映射EU NIS2义务;未提供本地资产清单,未匹配任何本地资产。

    原文依据 · 4
    ncrete code-level task rather than a document to interpret. It is partitioned into ten domain slices (e.g., Identity, Access & Session Trust; Input/Output Validation; Release Promotion), each a coherent module with its own per-slice contract. Within the slices, four populated entity types carry the engineering substance, in a functional reading: • ControlObjective — what must hold (a security objective for the slice); • Practice — a human/process discipline that realizes an objective; • Mechanism — a technical control that implements it; • Artifact — the evidence the objective expects. Three r
    查看原文 · v1
    to the governing slice ASC-02, the first query returns the slice’s control objectives: PREFIX ac: <.../appsec-core/v1#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?objective ?label WHERE { ?objective a ac:ControlObjective ; ac:belongsToSlice ac:SliceASC02 ; rdfs:label ?label . } ORDER BY ?objective The seven obligations a change to identity/access/session components must meet are returned verbatim: ACO-IAT-001 Authentication Strength and Identity Assurance ACO-IAT-002 Authorization Policy Integrity and Least Privilege
    查看原文 · v1
    nce artifacts it expects: realized_by ACP-IAT-006 Access Abuse Monitoring and Audit Trail implemented_by ACM-IAT-003 Periodic Review and Access Audit implemented_by ACM-IAT-006 Structured Logging and Effective Configuration Recording expects ACA-IAT-003 Log Stream expects ACA-IAT-004 Policy Report expects ACA-IAT-005 Alert Policy
    查看原文 · v1
    urce→\rightarrowentity substrate Farinha (2026b) to the typed entities the regulation’s claims land on: PREFIX ac: <.../appsec-core/v1#> SELECT ?slice ?entity WHERE { # over the cycle substrate ?item ac:source "eu_nis2" . ?claim ac:item_ref ?item ; ac:target_core_entity ?entity ;
    查看原文 · v1

风险评估

  • 来源报告指出的风险机制是:缺少可解析结构时,模型只能给出看似合理但非有界、非来源可追溯的子集,工程师或AI助手难以判断返回集合是否完整、是否覆盖全部权威要求。触发条件是变更点依赖通用安全指引或模型先验而非有界本体查询。防护优先级应放在建立有界、有类型、可追溯的工作集上,而非继续增加指引文本或让模型自行阅读法规。

    原文依据 · 2
    ose authority, and whether the returned set is complete. Without a structure to resolve against, the model offers a plausible subset, not a bounded, source-traceable one. What is missing is therefore not more guidance, nor a model that has read it, but a structure that makes the relevant guidance addressable — and answerable in full — from the point of work. Cybersecurity ontologies are a natural candidate for that structure, but most existing ones are aimed elsewhere. Threat-intelligence ontologies such as UCO Syed et al. (2016) and STUCCO Iannacone et al. (2015) integrate attack and indicato
    查看原文 · v1

    中文译文

    例如欧盟的 NIS2,而其中大部分内容的写作对象并非处于变更节点的工程师或 AI 助手。现有的网络安全本体主要为检测和分析而建模攻击、指标与风险,并未涵盖必须付诸行动的工程实践内容。本文介绍现有的有界应用安全本体 AppSec Core 的一个用例;其构建和验证另有报告。我们展示了它的用法。它将这些权威资料中可指导工程行动的部分整理成可通过类型定位的工作集合:那些控制目标……

    原文引文

    as the EU’s NIS2 — and most of it is written for readers other than the engineer, or the AI assistant, at a point of change. Existing cybersecurity ontologies largely model attacks, indicators, and risk for detection and analysis, not the engineering-practice substance one must act on. This paper presents a use case for an existing bounded application-security ontology, AppSec Core, whose construction and validation are reported separately. We show how it is used. It makes the engineering-actionable fraction of those authorities addressable as a typed working set: the control objectives that
    查看原文 · v1

相关研究

  • 研究采用设计科学路线:AppSec Core的OWL 2 DL形式化、SHACL验证、FAIR评估与变更治理协议在配套artefact论文Farinha (2026a)报告;从31个来源填充本体的设计科学循环及source→entity基底在第二篇配套论文Farinha (2026b)报告,本文不重复推导。本文贡献是展示用法:正向把认证中间件变更限定到切片,反向把NIS2合规义务解析为工程义务,二者返回同一有类型、来源可追溯的工作集。

    原文依据 · 3
    o make it addressable where development happens, by a human engineer or, increasingly, an AI coding assistant that needs grounding rather than priors. Its design, OWL 2 DL formalization, SHACL validation, FAIR assessment, and change-governance protocol are reported in a companion artefact paper Farinha (2026a); the design-science cycle that populated it from thirty-one sources, and the source→\rightarrowentity substrate that cycle produced, are reported in a second companion Farinha (2026b). We re-present none of this. This paper asks the practical question the Semantic Shields community foreg
    查看原文 · v1
    sion Existing cybersecurity ontologies model the threat and the risk; an engineer — or an AI assistant — at a point of work also needs to know what must be done here, and an organization under a new regulation needs to know what must be done to comply. We have shown that a bounded, functionally typed application-security ontology answers both by returning the same object: a typed, source-traceable working set. Forward, a change to authentication middleware scopes to its slice; inverse, a NIS2 compliance duty resolves into the engineering obligations it implies across slices — the code-level fr
    查看原文 · v1
    source→\rightarrowentity substrate, whose construction, similarity calibration, and cross-validation are the cycle paper’s contribution Farinha (2026b), referenced and not re-derived here — and the inverse mapping is coverage grounding, not a validated per-article legal reading. The ontology’s formalization, FAIR assessment, and change-governance protocol are likewise reported in the artefact paper Farinha (2026a). Both artefacts and their per-identifier provenance are deposited under open licences (identifiers in Farinha (2026a), Farinha (2026b)), so the working sets shown here are reproducib
    查看原文 · v1

验证资料

  • 来源报告以逐切片运行的方式观察效果:有界范围使查询只返回治理切片的目标而非全安全指引的开放搜索,功能类型使每项返回带动作种类(practice、mechanism、artifact),工作集读作待完成任务。材料同时给出可核查的防御性观察点:切片ASC-02返回七项义务(ACO-IAT-001至ACO-IAT-002等),ACA-IAT-003 Log Stream被该切片七个目标中的六个所期望。来源未给出量化实验数字。

    原文依据 · 3
    applicable authority” — into a bounded, checkable one: “satisfy this typed working set against the diff.” What we observed in running it, slice by slice, is what makes it work in practice: • The bounded scope meant the query returned the governing slice’s objectives, not an open search across all of security guidance — the answer was closed and finite, and stopped at the slice that governs the change. • The functional typing meant each returned item carried its kind of action — a practice to adopt, a mechanism to implement, an artifact to produce — so the working set read as tasks to discharg
    查看原文 · v1
    to the governing slice ASC-02, the first query returns the slice’s control objectives: PREFIX ac: <.../appsec-core/v1#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?objective ?label WHERE { ?objective a ac:ControlObjective ; ac:belongsToSlice ac:SliceASC02 ; rdfs:label ?label . } ORDER BY ?objective The seven obligations a change to identity/access/session components must meet are returned verbatim: ACO-IAT-001 Authentication Strength and Identity Assurance ACO-IAT-002 Authorization Policy Integrity and Least Privilege
    查看原文 · v1
    and Effective Configuration Recording expects ACA-IAT-003 Log Stream expects ACA-IAT-004 Policy Report expects ACA-IAT-005 Alert Policy The engineer’s task at the change point is now explicit: ensure the middleware emits an auditable log stream, that a review mechanism consumes it, and that an alert policy exists — and produce those artifacts as evidence. The working set is a graph, not a checklist — and that is where the typing earns its keep. The Log Stream artifact (ACA-IAT-003) is expected by six of the slice’s seven objectives (Figure 1), so satisfying it once disc
    查看原文 · v1

处置建议

  • 建议按序:一,将变更点归入对应领域切片,用有界查询取回该切片的ControlObjective集合,避免开放搜索;二,按返回的Practice、Mechanism、Artifact逐项落实,例如确保认证中间件输出可审计Log Stream(ACA-IAT-003)、有审查机制消费它、并存在Alert Policy(ACA-IAT-005),产出Policy Report等证据;三,对NIS2义务做反向映射核查覆盖;四,在日志中观察切片目标与产物的对应关系并回归验证。上述为基于来源机制的条件性建议。

    原文依据 · 3
    applicable authority” — into a bounded, checkable one: “satisfy this typed working set against the diff.” What we observed in running it, slice by slice, is what makes it work in practice: • The bounded scope meant the query returned the governing slice’s objectives, not an open search across all of security guidance — the answer was closed and finite, and stopped at the slice that governs the change. • The functional typing meant each returned item carried its kind of action — a practice to adopt, a mechanism to implement, an artifact to produce — so the working set read as tasks to discharg
    查看原文 · v1
    and Effective Configuration Recording expects ACA-IAT-003 Log Stream expects ACA-IAT-004 Policy Report expects ACA-IAT-005 Alert Policy The engineer’s task at the change point is now explicit: ensure the middleware emits an auditable log stream, that a review mechanism consumes it, and that an alert policy exists — and produce those artifacts as evidence. The working set is a graph, not a checklist — and that is where the typing earns its keep. The Log Stream artifact (ACA-IAT-003) is expected by six of the slice’s seven objectives (Figure 1), so satisfying it once disc
    查看原文 · v1
    urce→\rightarrowentity substrate Farinha (2026b) to the typed entities the regulation’s claims land on: PREFIX ac: <.../appsec-core/v1#> SELECT ?slice ?entity WHERE { # over the cycle substrate ?item ac:source "eu_nis2" . ?claim ac:item_ref ?item ; ac:target_core_entity ?entity ;
    查看原文 · v1
模型与引文记录
模型
deepseek-flash
生成时间
记录编号
REQ-79bd11f31a7a4cda907920cd13028c82
分析原文
查看原文 · v1

资料档案

文献来源与参考链接

当前保存的来源版本 · v1

作者
Farinha, Pedro
文献与标准标识
arxiv:2611.01127
来源版本
v1
来源更新时间
2026-10-31T17:15:38+00:00
日期依据
来源明确给出发表日期
采集来源格式
a_622f2d2c978f798f_html
结构化格式
source_html
原始标题与分类记录

What Must Be Done Here? Using a Bounded Application-Security Ontology at the Point of Change

研究方向
攻击方法、防御技术、评测治理
影响维度
机密性、安全与合规
风险类型
供应链风险
相关技术
LLM、Agent、工具调用

当前为离线关键词规则模式。

分类规则与原始字段
攻击方法 · attack
l. (2016) and STUCCO Iannacone et al. (2015) integrate attack and indicator schemas (CVE, CWE, CAPEC, STIX) for detection and intelligence fusion. Foundational s
防御技术 · detection
logies largely model attacks, indicators, and risk for detection and analysis, not the engineering-practice substance one must act on. This paper presents a use cas
评测治理 · evaluation
rinha, Empirical research design: A security-by-design evaluation framework for ontology-grounded code generation, 2026. doi:10.17605/OSF.IO/H5AJE, pre-registered de
供应链风险 · dependency
ingly work at points of change — a pull request, a new dependency, a refactor — where a local decision has security consequences. The principle of security by design
机密性 · secret
n Trust 6 Identity, Access & Session 10 Secret Handling & Config 5 Release & Rollback 9 Supply-chain & Build 5 Testing &
安全与合规 · compliance
atisfy this typed working set”, for a code change or a compliance duty alike. The contribution is the demonstrated use; the artefact, its validation, and its governa
LLM · llm
working set is what a human engineer reads and what an LLM-grounded assistant is handed as grounding. The use turns “read every applicable authority” into “sa
Agent · agent
her the working set measurably improves engineering or agent outcomes is a separate, pre-registered companion question Farinha (2026). For space, the full expan
工具调用 · mcp
text; such delivery, through a Model Context Protocol (MCP) server over an authored corpus, is companion work Farinha (2026c) and is not part of this use case
{
  "ai_relevance": {
    "evidence": [
      {
        "end_offset": 1734,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 1731
      },
      {
        "end_offset": 3575,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 3572
      },
      {
        "end_offset": 13285,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 13282
      },
      {
        "end_offset": 24103,
        "location": "title_and_content",
        "quote": "Generative AI",
        "rule": "ai_term",
        "start_offset": 24090
      },
      {
        "end_offset": 24897,
        "location": "title_and_content",
        "quote": "Artificial Intelligence",
        "rule": "ai_term",
        "start_offset": 24874
      },
      {
        "end_offset": 26062,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 26059
      }
    ],
    "matches": [
      {
        "end_offset": 1734,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 1731
      },
      {
        "end_offset": 3575,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 3572
      },
      {
        "end_offset": 13285,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 13282
      },
      {
        "end_offset": 24103,
        "location": "title_and_content",
        "quote": "Generative AI",
        "rule": "ai_term",
        "start_offset": 24090
      },
      {
        "end_offset": 24897,
        "location": "title_and_content",
        "quote": "Artificial Intelligence",
        "rule": "ai_term",
        "start_offset": 24874
      },
      {
        "end_offset": 26062,
        "location": "title_and_content",
        "quote": "LLM",
        "rule": "ai_term",
        "start_offset": 26059
      }
    ],
    "method": "explainable_keyword_rules",
    "reason": "Matched AI topic or component evidence",
    "relevant": true
  },
  "entity_ids": [],
  "facts": [],
  "method": "source_grounded_extraction",
  "unknown_fields": [
    "affected_products",
    "affected_versions",
    "fixed_versions",
    "cvss",
    "mitigations",
    "references",
    "papers",
    "poc"
  ]
}
原始采集文本
What Must Be Done Here? Using a Bounded Application-Security Ontology at the
Point of Change
Pedro Farinha
Abstract
The security guidance that bears on code is real but scattered. It lives
across secure-development frameworks, verification standards, controls
catalogues, threat taxonomies, and, increasingly, normative regimes such
as the EU’s NIS2 — and most of it is written for readers other than
the engineer, or the AI assistant, at a point of change. Existing
cybersecurity ontologies largely model attacks, indicators, and risk for
detection and analysis, not the engineering-practice substance one must
act on. This paper presents a use case for an existing bounded
application-security ontology, AppSec Core, whose construction and
validation are reported separately. We show how it is used. It
makes the engineering-actionable fraction of those authorities
addressable as a typed working set: the control objectives
that apply, the practices that realize them, the mechanisms that
implement them, and the evidence artifacts they expect, each traceable
to the sources that justify it. We reach that working set from two entry
points that recur in practice. Forward, from a code change: a
change to authentication middleware scopes to its governing domain slice
and returns the obligations the change must satisfy. Inverse,
from a normative obligation: “make this NIS2-compliant” resolves a
generic legal duty into the concrete engineering obligations it implies
across slices, surfacing precisely the fraction of a mostly-governance
regulation that lands in code. The same working set is what a human
engineer reads and what an LLM-grounded assistant is handed as
grounding. The use turns “read every applicable authority” into
“satisfy this typed working set”, for a code change or a compliance
duty alike. The contribution is the demonstrated use; the artefact, its
validation, and its governance are companion work.
keywords
application ontology ,cybersecurity ,ontology use case ,knowledge graph ,conceptual modeling ,traceability ,provenance ,regulatory compliance ,AI-assisted development ,secure software engineering
††copyright: Copyright for this paper by its authors. Use permitted under Creative
Commons License Attribution 4.0 International (CC BY 4.0).††venue: Semantic Shields 3: The 3rd International Workshop on Modeling for
Cybersecurity, co-located with JOWO 2026 / FOIS 2026, September 21–22, 2026,
Vitória, Brazil.††email: pedro.farinha@shiftleft.pt††address: Independent Researcher, Shiftleft – Secure Software Engineering, Lda., Portugal
1 Introduction
Software engineers increasingly work at points of change — a pull
request, a new dependency, a refactor — where a local decision has
security consequences. The principle of security by design holds
that those consequences should be addressed as the system is built, not
retrofitted afterwards; in practice this resolves, at each point of
change, into a concrete question: what must be done here for this
change to be secure? Answering it well requires knowing which security
controls apply to this change, how to realize them, and what evidence
shows they hold.
The guidance needed to answer exists, but it is hard to use at the point
of change. It is spread across secure-development frameworks,
verification standards, controls catalogues, maturity models, and threat
taxonomies, each with its own vocabulary and structure. An engineer
cannot read every authority for every change. A capable LLM, by
contrast, has in principle ingested these authorities, and — well
prompted — can recite and even apply them. But having read the corpus
is not the same as answering, for this change, which
obligations apply, on whose authority, and whether the returned
set is complete. Without a structure to resolve against, the
model offers a plausible subset, not a bounded, source-traceable one.
What is missing is therefore not more guidance, nor a model that has
read it, but a structure that makes the relevant guidance
addressable — and answerable in full — from the point of
work.
Cybersecurity ontologies are a natural candidate for that structure, but
most existing ones are aimed elsewhere. Threat-intelligence ontologies
such as UCO Syed et al. (2016) and STUCCO Iannacone et al. (2015) integrate attack and
indicator schemas (CVE, CWE, CAPEC, STIX) for detection and intelligence
fusion. Foundational security ontologies such as COVER Sales et al. (2018) and
ROSE Oliveira et al. (2022), built on UFO, model security and risk concepts with
categorial depth for conceptual clarity. Both are valuable and
complementary, but neither is bounded to the security-by-design question
above: for a change at a given point in development, what must be done,
what realizes it, and what evidences it.
AppSec Core is a bounded application-security ontology built for exactly
that question. Its purpose is to extract, from heterogeneous source
documents, the substance that bears on building software — and to make
it addressable where development happens, by a human engineer or,
increasingly, an AI coding assistant that needs grounding rather than
priors. Its design, OWL 2 DL formalization, SHACL validation, FAIR
assessment, and change-governance protocol are reported in a companion
artefact paper Farinha (2026a); the design-science cycle that
populated it from thirty-one sources, and the source→\rightarrowentity substrate
that cycle produced, are reported in a second companion
Farinha (2026b). We re-present none of this. This paper asks the
practical question the Semantic Shields community foregrounds:
how is such an ontology used?
We answer by showing the same object — a typed, source-traceable
working set — reached from two entry points that recur in
practice. Forward, from a code change: a change to
authentication middleware scopes to its governing slice and returns what
that change must satisfy (§3–4). Inverse, from a normative
obligation: a duty to comply with the EU NIS2 Directive resolves into
the engineering obligations it implies across slices (§5) — surfacing,
from a regulation that is mostly governance text, the fraction that
actually lands in code, which would otherwise stay outside the
engineer’s reach. The contribution is the demonstrated use and the
lesson it carries for cybersecurity ontologies intended for engineering
practice; it is not the artefact, the cycle, a retrieval mechanism, nor
an effectiveness study.
2 AppSec Core in brief
We recap only what the use case needs; the full account is in
Farinha (2026a).
AppSec Core is a bounded application-security ontology: it
carries the engineering-practice substance of application
security — what must be done to the software — distilled from
thirty-one heterogeneous authorities. These span secure-development
frameworks, verification standards, and controls catalogues, and reach
into the engineering-relevant substance of compliance and regulatory
sources as well. Its boundary is on the kind of substance, not
the source. From each authority it keeps the part an engineer acts on in
code; the governance substance those authorities also carry — board
reporting, vendor-risk management, regulatory examination, workforce
training — is routed elsewhere by design. It is that engineering
fraction, normalized and typed, that lets an obligation reach the
engineer as a concrete code-level task rather than a document to
interpret. It is partitioned into ten domain slices (e.g.,
Identity, Access & Session Trust; Input/Output
Validation; Release Promotion), each a coherent module with its
own per-slice contract. Within the slices, four populated entity types
carry the engineering substance, in a functional reading:
•
ControlObjective — what must hold (a security objective for
the slice);
•
Practice — a human/process discipline that realizes an
objective;
•
Mechanism — a technical control that implements it;
•
Artifact — the evidence the objective expects.
Three relations connect the types, and belongsToSlice assigns
each entity to a slice:
•
objective_realized_by_practice — objective→\rightarrowpractice
(abbreviated realized_by in the listings below);
•
objective_implemented_by_mechanism — objective→\rightarrowmechanism
(implemented_by);
•
objective_expects_artifact — objective→\rightarrowartifact
(expects).
Each instance was normalized from independent normative sources and
carries per-identifier provenance to them; that provenance is what lets
a working set resolve to the sources that justify it.
3 The use case: a change to authentication
middleware
Consider an engineer modifying a service’s authentication
middleware — the component that establishes caller identity and
session trust. The change is security-sensitive: done wrong, it can
weaken authentication strength, mishandle sessions and tokens, or break
the audit trail that detects abuse.
The engineer’s question — what must be done here? — maps to a
domain: identity, access, and session trust. In AppSec Core this is the
slice ASC-02 (IAT). Scoping the ontology to the governing slice
yields the working set the change must satisfy.
4 From change to a typed working
set
The working set is not described; it is queried against the
deposited ontology, in two steps: a first query lists the governing
slice’s control objectives, and a second expands an objective into its
typed obligations. Scoped to the governing slice ASC-02, the first query
returns the slice’s control objectives:
PREFIX ac:   <.../appsec-core/v1#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?objective ?label WHERE {
?objective a ac:ControlObjective ;
ac:belongsToSlice ac:SliceASC02 ;
rdfs:label ?label .
} ORDER BY ?objective
The seven obligations a change to identity/access/session components
must meet are returned verbatim:
ACO-IAT-001  Authentication Strength and Identity Assurance
ACO-IAT-002  Authorization Policy Integrity and Least Privilege
ACO-IAT-003  Access Revocation and Privilege Lifecycle Integrity
ACO-IAT-004  Session and Token Trust Boundaries
ACO-IAT-005  API Caller Trust and Service Boundary Enforcement
ACO-IAT-006  Access Abuse Detection and Auditability
ACO-IAT-007  Identity and Access Control Integrity
Expanding an objective into a concrete task is the second query, which
follows the three relations that link the types. For Access Abuse
Detection and Auditability (ACO-IAT-006):
SELECT ?relation ?target ?label WHERE {
VALUES (?relation ?p) {
("realized_by"    ac:objective_realized_by_practice)
("implemented_by" ac:objective_implemented_by_mechanism)
("expects"        ac:objective_expects_artifact)
}
ac:ACO_IAT_006 ?p ?target .
?target rdfs:label ?label .
}
it returns the practice that realizes the objective, the mechanisms that
implement it, and the evidence artifacts it expects:
realized_by    ACP-IAT-006  Access Abuse Monitoring and Audit Trail
implemented_by ACM-IAT-003  Periodic Review and Access Audit
implemented_by ACM-IAT-006  Structured Logging and Effective Configuration Recording
expects        ACA-IAT-003  Log Stream
expects        ACA-IAT-004  Policy Report
expects        ACA-IAT-005  Alert Policy
The engineer’s task at the change point is now explicit: ensure the
middleware emits an auditable log stream, that a review mechanism
consumes it, and that an alert policy exists — and produce those
artifacts as evidence.
The working set is a graph, not a checklist — and that is
where the typing earns its keep. The Log Stream artifact
(ACA-IAT-003) is expected by six of the slice’s seven objectives (Figure
1), so satisfying it once discharges evidence for several obligations at
once; the shared dependencies are explicit in the model, not left for
the engineer to rediscover per objective.
ACO-IAT-001ACO-IAT-003ACO-IAT-004ACO-IAT-005ACO-IAT-006ACO-IAT-007ACA-IAT-003Log Stream
Figure 1: The working set is a graph, not a checklist: one evidence artifact, Log Stream, is expected by six of the IAT slice’s seven control objectives. Producing it once discharges evidence for all six.
Each returned element carries per-identifier provenance to the deposited
source items it was distilled from, so the working set is
followable to its sources rather than asserted — the engineer,
or an auditor, can ask not only what applies but on whose
authority. Beyond that per-identifier provenance, the cycle’s substrate
records which public authorities converge on each obligation,
with a confidence band, making “on whose authority” inspectable
against the published standards themselves (Figure 2).
ACO-SCBI-001Dependency Inventory& SBOM TraceabilityOWASP DSOMMOWASP ASVSCIS Controls v8NIST SP 800-53
Figure 2: Ontology→\rightarrowSources, read from the cycle’s substrate Farinha (2026b): the
obligation ACO-SCBI-001 (Dependency Inventory and SBOM Traceability) — with its
practice Build-Linked SBOM Generation and mechanism Build and Image Inventory
Generation — draws on several converging public authorities. This makes on whose
authority inspectable against the published standards; the source-coverage layer is the
cycle’s contribution, consumed here, not validated. Per-claim relevance scores are recorded
in the substrate.
The same typed working set is what a human engineer reads and what an
LLM-grounded assistant would be handed as grounding context; such
delivery, through a Model Context Protocol (MCP) server over an authored
corpus, is companion work Farinha (2026c) and is not part of this use
case.
The same forward query, rescoped to another slice, behaves identically:
for a change to an input-handling path it returns slice ASC-07’s eight
objectives and their typed expansions, with Validation Evidence
(ACA-IVF-003) standing in for Log Stream as the artifact shared
across most of them. Only the governing slice differs; the workflow does
not.
5 A second entry point: from a regulation to a working
set
The forward use starts from code. The same working set is reachable from
the other side — from an obligation. Suppose the driver is not a diff
but a mandate: the service must comply with the EU NIS2 Directive
European Parliament and Council (2022). NIS2 Article 21 requires “appropriate and proportionate
technical, operational and organisational measures to manage
cybersecurity risks” — a generic legal duty, not a code instruction.
The engineering question hidden inside it is the one from §1: what
must be done, in code, to discharge this?
Here the query runs in the inverse direction. Rather than scoping to a
slice, it starts from the source and follows the cycle’s source→\rightarrowentity
substrate Farinha (2026b) to the typed entities the regulation’s claims
land on:
PREFIX ac: <.../appsec-core/v1#>
SELECT ?slice ?entity WHERE {        # over the cycle substrate
?item  ac:source "eu_nis2" .
?claim ac:item_ref ?item ;
ac:target_core_entity ?entity ;
ac:slice ?slice .
}
NIS2’s cyber-risk-management articles (Articles 20–23, with Article 21
chief among them) decompose, in the substrate, into 70 claims, which
land across the ontology’s engineering surface as follows:
Threat Modeling & Risk       13     Integration Trust          6
Identity, Access & Session   10     Secret Handling & Config    5
Release & Rollback            9     Supply-chain & Build        5
Testing & Validation          9     Input/Output Validation     3
Logging & Audit Trail         8     Architecture & Boundaries   2
The distribution is itself informative: a risk-management directive
concentrates on Threat Modeling & Risk and Identity,
Access & Session Trust — exactly where one would expect it to land.
The mapping is semantically coherent, not uniform noise. And each
landing point is a typed obligation the engineer already knows how to
discharge from the forward use: scoped to Identity, Access &
Session Trust, NIS2 reaches the same objectives, practices, and
mechanisms the authentication-middleware change did (ACO-IAT-001/002,
ACP-IAT-001/002/006, ACM-IAT-001/002/006). The generic legal duty has
become a concrete, typed, slice-organized working set — and an
engineer, or an AI assistant asked to “make this NIS2-compliant,”
receives the code-level residue rather than a directive to read.
Two qualifications keep this honest. First, the source→\rightarrowentity layer is
the cycle’s coverage grounding Farinha (2026b), not a
per-article legal interpretation. Its scores are a
relevance-triage signal, not a verdict. Legal prose and
engineering-practice text sit in different registers, so even a
genuinely relevant obligation aligns at modest similarity; the
substrate’s role is to surface candidate obligations for a human,
or an auditor, to confirm, not to certify them. Judging which candidates
are relevant, and the systematic decomposition of each regime, is
companion work; this use consumes the existing substrate rather than
validating it.
Second, this is exactly why the count differs from the working set’s
size: the substrate records the external claims mapped into a
slice — a claim being one decomposed normative statement, not
the source item itself — whereas the working set is the slice’s
typed instances (for IAT, the seven objectives with their six
practices, six mechanisms, and six artifacts). NIS2 is overwhelmingly
governance text; only its engineering-actionable fraction reaches the
ontology at all — which is the point. The ontology extracts from a
normative document precisely the part that lands in code and leaves the
rest — board reporting, supervision, vendor governance — where it
belongs.
6 What the use demonstrates
The use turns an open-ended reading task — “consult the relevant
chapters of every applicable authority” — into a bounded, checkable
one: “satisfy this typed working set against the diff.” What we
observed in running it, slice by slice, is what makes it work in
practice:
•
The bounded scope meant the query returned the governing
slice’s objectives, not an open search across all of security guidance
— the answer was closed and finite, and stopped at the slice that
governs the change.
•
The functional typing meant each returned item carried its kind
of action — a practice to adopt, a mechanism to implement, an
artifact to produce — so the working set read as tasks to discharge,
not topics to read.
•
The provenance meant each obligation was followable to the
deposited source items behind it, so the engineer could see why
an item was required, not only that it was.
What distinguishes the use is less the query than the shape of its
answer. Retrieval and knowledge-graph methods typically answer by
returning more — ranked passages, expanded neighbourhoods,
related concepts — and leave the engineer to judge where to stop. Here
the query stops: scoped to the governing slice, it returns a
closed, finite working set — every objective the ontology files under
that slice, each expanded into its typed, source-backed obligations, and
nothing outside it. That closure is structural, not incidental. Across
all ten slices every objective resolves to a practice and a mechanism
within its own slice, and no relation crosses a slice boundary; a
slice-scoped query is therefore bounded by the partition itself, not by
where the engineer chooses to stop. The three properties above —
bounded scope, functional typing, per-instance
provenance — are together a lightweight design stance an
engineering-facing security ontology can adopt, and it is that stance,
not the query language, that turns the ontology from something to
consult into something to satisfy.
Shown from both entry points — forward from a code change, inverse
from a regulation — the result is the same kind of object: a closed,
typed, source-backed working set. That a local engineering question and
a top-down compliance duty resolve to the same structure is the
use’s most general lesson: the bounded ontology is the meeting point
where “what must I do here?” and “what must I do to comply?” become
one answer. Whether this carries to other heterogeneously regulated
domains is a question this evidence can raise but not settle.
7 Related cybersecurity
ontologies
The use case sits alongside, not against, established cybersecurity
modeling. Threat-intelligence ontologies (UCO Syed et al. (2016), STUCCO
Iannacone et al. (2015)) and cybersecurity knowledge graphs model attacks,
indicators, and countermeasures for detection and analysis; the analysis
of D3FEND in Oliveira et al. (2023) shows the modeling care that domain
demands. Foundational security ontologies (COVER Sales et al. (2018), ROSE
Oliveira et al. (2022)) provide categorial accounts of value, risk, and security
from which conceptual clarity follows. AppSec Core is differently aimed:
it normalizes engineering-practice substance for use at the point of
change, and combines with these families without semantic conflict — a
threat surfaced by a threat-intelligence model, or a concept clarified
foundationally, can motivate or refine what an objective requires. The
systematic mapping in Oliveira et al. (2021) further frames why a published,
reusable, provenance-bearing artefact matters for such use.
8 Limitations and relation to companion
work
These are worked use cases, illustrative rather than an empirical study
of effectiveness; no comparative baseline or outcome metrics are
reported here, and whether the working set measurably improves
engineering or agent outcomes is a separate, pre-registered companion
question Farinha (2026). For space, the full expansion into practice,
mechanisms, and artifacts is shown for one representative objective
(ACO-IAT-006); the pattern is identical for the others in the slice.
A trade-off follows from the boundedness itself. Because every relation
stays within its slice, a change confined to one domain yields a single
closed working set — but a change that spans domains (authentication
logic that also alters the audit trail, say) must query each governing
slice in turn, and the ontology models no interaction between them. The
slice partition that makes each answer closed is also what leaves
cross-domain composition to the engineer; surfacing inter-slice
dependencies is out of scope here. The same burden appears on the
normative side: an obligation that emerges only from the joint reading
of several provisions — common in NIS2 — is surfaced claim by claim,
so composing interdependent provisions into one engineering requirement
likewise remains with the reader. The forward use queries the deposited
ontology directly; the inverse use additionally consumes the
source→\rightarrowentity substrate, whose construction, similarity calibration, and
cross-validation are the cycle paper’s contribution Farinha (2026b),
referenced and not re-derived here — and the inverse mapping is
coverage grounding, not a validated per-article legal reading. The
ontology’s formalization, FAIR assessment, and change-governance
protocol are likewise reported in the artefact paper Farinha (2026a).
Both artefacts and their per-identifier provenance are deposited under
open licences (identifiers in Farinha (2026a), Farinha (2026b)), so
the working sets shown here are reproducible and open to scrutiny.
9 Conclusion
Existing cybersecurity ontologies model the threat and the risk; an
engineer — or an AI assistant — at a point of work also needs to
know what must be done here, and an organization under a new
regulation needs to know what must be done to comply. We have
shown that a bounded, functionally typed application-security ontology
answers both by returning the same object: a typed, source-traceable
working set. Forward, a change to authentication middleware scopes to
its slice; inverse, a NIS2 compliance duty resolves into the engineering
obligations it implies across slices — the code-level fraction of a
regulation that is otherwise governance prose. The value is in the use:
a reusable, auditable answer at the point of work, consumable by a human
engineer or a grounded agent alike. We invite the cybersecurity-ontology
community to test the working-set use against further changes,
regulations, and domains.
Declaration on Generative AI
During the preparation of this work, the author used Anthropic Claude in
order to: draft and edit text; structure and format the manuscript
(including its LaTeX sources); and run verification queries (SPARQL/RDF)
over the deposited artefacts to confirm the figures, counts, and
identifiers reported here. All factual claims, counts, and identifiers
were checked by the author against the deposited artefacts — the
AppSec Core ontology Farinha (2026a) and the cycle substrate
Farinha (2026b). After using this tool, the author reviewed and edited
the content as needed and takes full responsibility for the
publication’s content.
References
Syed et al. (2016)
Z. Syed, A. Padia,
T. Finin, L. Mathews,
A. Joshi,
UCO: A unified cybersecurity ontology,
in: AAAI Workshop on Artificial Intelligence for
Cyber Security, 2016.
Iannacone et al. (2015)
M. D. Iannacone, et al.,
Developing an ontology for cyber security knowledge
graphs,
in: 10th Annual Cyber and Information Security
Research Conference (CISRC), 2015.
Sales et al. (2018)
T. P. Sales, F. Baião,
G. Guizzardi, J. P. A. Almeida,
N. Guarino, J. Mylopoulos,
The common ontology of value and risk,
in: Conceptual Modeling (ER 2018), volume
11157 of LNCS,
2018, pp. 121–135.
doi:10.1007/978-3-030-00847-5_11.
Oliveira et al. (2022)
Í. Oliveira, T. P. Sales,
R. Baratella, M. Fumagalli,
G. Guizzardi,
An ontology of security from a risk treatment
perspective (ROSE),
in: Conceptual Modeling (ER 2022), volume
13607 of LNCS,
2022, pp. 365–379.
doi:10.1007/978-3-031-17995-2_26.
Farinha (2026a)
P. Farinha, AppSec Core v1: A formalized
normalization ontology for application security,
2026a. doi:10.17605/OSF.IO/U9CRD,
preprint.
Farinha (2026b)
P. Farinha, Pressure-testing AppSec Core: A
design science cycle for bounded-ontology evolution under heterogeneous
application-security sources, 2026b.
doi:10.17605/OSF.IO/3E8G5, preprint.
Farinha (2026c)
P. Farinha, Ontology-grounded retrieval for
auditable LLM-assisted secure code generation,
2026c. doi:10.17605/OSF.IO/S3HET,
preprint.
European Parliament and Council (2022)
European Parliament and Council, Directive
(EU) 2022/2555 on measures for a high common level of cybersecurity across
the union (NIS2 directive),
https://eur-lex.europa.eu/eli/dir/2022/2555,
2022.
Oliveira et al. (2023)
Í. Oliveira, G. Engelberg,
P. P. F. Barcelos, T. P. Sales,
M. Fumagalli, R. Baratella,
D. Klein, G. Guizzardi,
Boosting D3FEND: Ontological analysis and
recommendations,
in: Formal Ontology in Information Systems (FOIS
2023), volume 377 of FAIA,
2023, pp. 334–348.
doi:10.3233/FAIA231138.
Oliveira et al. (2021)
Í. Oliveira, M. Fumagalli,
T. P. Sales, G. Guizzardi,
How FAIR are security core ontologies? a systematic
mapping study,
in: Research Challenges in Information Science
(RCIS 2021), volume 415 of
LNBIP, 2021, pp.
107–123. doi:10.1007/978-3-030-75018-3_7.
Farinha (2026)
P. Farinha, Empirical research design: A
security-by-design evaluation framework for ontology-grounded code
generation, 2026. doi:10.17605/OSF.IO/H5AJE,
pre-registered design; empirical execution in preparation.
采集信息与校验
完整来源元数据
{
  "authors": [
    "Farinha, Pedro"
  ],
  "content_level": "full_text",
  "date_basis": "explicit_published",
  "date_evidence": {
    "published": "2026-10-31T17:15:38Z",
    "updated": "2026-10-31T17:15:38Z"
  },
  "fallback_pdf_url": "https://arxiv.org/pdf/2611.01127v1",
  "identifiers": [
    "arxiv:2611.01127"
  ],
  "landing_page": "https://arxiv.org/abs/2611.01127v1",
  "rolling_atom_sha256": "950dbce0a7a492ee2bc09b36d4fc2e9788673ffaae227e2208b8b0041fe50b25",
  "source_updated_at": "2026-10-31T17:15:38+00:00",
  "version_label": "v1"
}
{
  "format": "source_html",
  "source_fields": {
    "authors": [
      "Farinha, Pedro"
    ],
    "content_level": "full_text",
    "date_basis": "explicit_published",
    "field_evidence": {},
    "identifiers": [
      "arxiv:2611.01127"
    ],
    "mapping_version": 1,
    "published_at": "2026-10-31T17:15:38Z",
    "source_format": "a_622f2d2c978f798f_html",
    "source_key": "a-622f2d2c978f798f",
    "source_updated_at": "2026-10-31T17:15:38Z",
    "title": "What Must Be Done Here? Using a Bounded Application-Security Ontology at the Point of Change",
    "unknown_fields": [],
    "url": "https://arxiv.org/html/2611.01127v1"
  },
  "source_format": "a_622f2d2c978f798f_html"
}
原文版本历史与校验
版本入库更新时间来源发布日期校验标识
v1 · 正在查看2026-11-05 20:59 UTC2026-10-31 17:15 UTCde5315661c18e69996db8728b1e57538818d14dc7f2314a3eb6217e8936e272b
可引用分片 · 23 段

CHK-eb4c3c61e647a8cd1c2fc0cb

What Must Be Done Here? Using a Bounded Application-Security Ontology at the
Point of Change
Pedro Farinha
Abstract
The security guidance that bears on code is real but scattered. It lives
across secure-development frameworks, verification standards, controls
catalogues, threat taxonomies, and, increasingly, normative regimes such
as the EU’s NIS2 — and most of it is written for readers other than
the engineer, or the AI assistant, at a point of change. Existing
cybersecurity ontologies largely model attacks, indicators, and risk for
detection and analysis, not the engineering-practice substance one must
act on. This paper presents a use case for an existing bounded
application-security ontology, AppSec Core, whose construction and
validation are reported separately. We show how it is used. It
makes the engineering-actionable fraction of those authorities
addressable as a typed working set: the control objectives
that apply, the practices that realize them, the mechanisms that
implement them, and the evidence artifacts they expect, each traceable
to the sources that justify it. We reach that working set from two entry
points that recur in practice. Forward, from a code change: a
change to authentication middleware scopes to its governing domain slice
and returns the obligations the change must satisfy. Inverse,
from a normative obligation: “make this NIS2-compliant” resolves a

CHK-58da22e3206169ce10430634

 to its governing domain slice
and returns the obligations the change must satisfy. Inverse,
from a normative obligation: “make this NIS2-compliant” resolves a
generic legal duty into the concrete engineering obligations it implies
across slices, surfacing precisely the fraction of a mostly-governance
regulation that lands in code. The same working set is what a human
engineer reads and what an LLM-grounded assistant is handed as
grounding. The use turns “read every applicable authority” into
“satisfy this typed working set”, for a code change or a compliance
duty alike. The contribution is the demonstrated use; the artefact, its
validation, and its governance are companion work.
keywords
application ontology ,cybersecurity ,ontology use case ,knowledge graph ,conceptual modeling ,traceability ,provenance ,regulatory compliance ,AI-assisted development ,secure software engineering
††copyright: Copyright for this paper by its authors. Use permitted under Creative
Commons License Attribution 4.0 International (CC BY 4.0).††venue: Semantic Shields 3: The 3rd International Workshop on Modeling for
Cybersecurity, co-located with JOWO 2026 / FOIS 2026, September 21–22, 2026,
Vitória, Brazil.††email: pedro.farinha@shiftleft.pt††address: Independent Researcher, Shiftleft – Secure Software Engineering, Lda., Portugal
1 Introduction

CHK-101352dca4eead5b7f9acf15

6,
Vitória, Brazil.††email: pedro.farinha@shiftleft.pt††address: Independent Researcher, Shiftleft – Secure Software Engineering, Lda., Portugal
1 Introduction
Software engineers increasingly work at points of change — a pull
request, a new dependency, a refactor — where a local decision has
security consequences. The principle of security by design holds
that those consequences should be addressed as the system is built, not
retrofitted afterwards; in practice this resolves, at each point of
change, into a concrete question: what must be done here for this
change to be secure? Answering it well requires knowing which security
controls apply to this change, how to realize them, and what evidence
shows they hold.
The guidance needed to answer exists, but it is hard to use at the point
of change. It is spread across secure-development frameworks,
verification standards, controls catalogues, maturity models, and threat
taxonomies, each with its own vocabulary and structure. An engineer
cannot read every authority for every change. A capable LLM, by
contrast, has in principle ingested these authorities, and — well
prompted — can recite and even apply them. But having read the corpus
is not the same as answering, for this change, which
obligations apply, on whose authority, and whether the returned
set is complete. Without a structure to resolve against, the

CHK-bba69a8985fc74d49b5698e1

 answering, for this change, which
obligations apply, on whose authority, and whether the returned
set is complete. Without a structure to resolve against, the
model offers a plausible subset, not a bounded, source-traceable one.
What is missing is therefore not more guidance, nor a model that has
read it, but a structure that makes the relevant guidance
addressable — and answerable in full — from the point of
work.
Cybersecurity ontologies are a natural candidate for that structure, but
most existing ones are aimed elsewhere. Threat-intelligence ontologies
such as UCO Syed et al. (2016) and STUCCO Iannacone et al. (2015) integrate attack and
indicator schemas (CVE, CWE, CAPEC, STIX) for detection and intelligence
fusion. Foundational security ontologies such as COVER Sales et al. (2018) and
ROSE Oliveira et al. (2022), built on UFO, model security and risk concepts with
categorial depth for conceptual clarity. Both are valuable and
complementary, but neither is bounded to the security-by-design question
above: for a change at a given point in development, what must be done,
what realizes it, and what evidences it.
AppSec Core is a bounded application-security ontology built for exactly
that question. Its purpose is to extract, from heterogeneous source
documents, the substance that bears on building software — and to make

CHK-41bfc8ef7fd0d5ac79be189a

gy built for exactly
that question. Its purpose is to extract, from heterogeneous source
documents, the substance that bears on building software — and to make
it addressable where development happens, by a human engineer or,
increasingly, an AI coding assistant that needs grounding rather than
priors. Its design, OWL 2 DL formalization, SHACL validation, FAIR
assessment, and change-governance protocol are reported in a companion
artefact paper Farinha (2026a); the design-science cycle that
populated it from thirty-one sources, and the source→\rightarrowentity substrate
that cycle produced, are reported in a second companion
Farinha (2026b). We re-present none of this. This paper asks the
practical question the Semantic Shields community foregrounds:
how is such an ontology used?
We answer by showing the same object — a typed, source-traceable
working set — reached from two entry points that recur in
practice. Forward, from a code change: a change to
authentication middleware scopes to its governing slice and returns what
that change must satisfy (§3–4). Inverse, from a normative
obligation: a duty to comply with the EU NIS2 Directive resolves into
the engineering obligations it implies across slices (§5) — surfacing,
from a regulation that is mostly governance text, the fraction that
actually lands in code, which would otherwise stay outside the
engineer’s reach.

CHK-42c2580988eff9b12b7d0558

 surfacing,
from a regulation that is mostly governance text, the fraction that
actually lands in code, which would otherwise stay outside the
engineer’s reach. The contribution is the demonstrated use and the
lesson it carries for cybersecurity ontologies intended for engineering
practice; it is not the artefact, the cycle, a retrieval mechanism, nor
an effectiveness study.
2 AppSec Core in brief
We recap only what the use case needs; the full account is in
Farinha (2026a).
AppSec Core is a bounded application-security ontology: it
carries the engineering-practice substance of application
security — what must be done to the software — distilled from
thirty-one heterogeneous authorities. These span secure-development
frameworks, verification standards, and controls catalogues, and reach
into the engineering-relevant substance of compliance and regulatory
sources as well. Its boundary is on the kind of substance, not
the source. From each authority it keeps the part an engineer acts on in
code; the governance substance those authorities also carry — board
reporting, vendor-risk management, regulatory examination, workforce
training — is routed elsewhere by design. It is that engineering
fraction, normalized and typed, that lets an obligation reach the
engineer as a concrete code-level task rather than a document to
interpret. It is partitioned into ten domain slices (e.g.,

CHK-76127b0f121c24d602e3ea3f

, that lets an obligation reach the
engineer as a concrete code-level task rather than a document to
interpret. It is partitioned into ten domain slices (e.g.,
Identity, Access & Session Trust; Input/Output
Validation; Release Promotion), each a coherent module with its
own per-slice contract. Within the slices, four populated entity types
carry the engineering substance, in a functional reading:
•
ControlObjective — what must hold (a security objective for
the slice);
•
Practice — a human/process discipline that realizes an
objective;
•
Mechanism — a technical control that implements it;
•
Artifact — the evidence the objective expects.
Three relations connect the types, and belongsToSlice assigns
each entity to a slice:
•
objective_realized_by_practice — objective→\rightarrowpractice
(abbreviated realized_by in the listings below);
•
objective_implemented_by_mechanism — objective→\rightarrowmechanism
(implemented_by);
•
objective_expects_artifact — objective→\rightarrowartifact
(expects).
Each instance was normalized from independent normative sources and
carries per-identifier provenance to them; that provenance is what lets
a working set resolve to the sources that justify it.
3 The use case: a change to authentication
middleware
Consider an engineer modifying a service’s authentication
middleware — the component that establishes caller identity and
session trust.

CHK-1571da9637982a5a794e26fd

thentication
middleware
Consider an engineer modifying a service’s authentication
middleware — the component that establishes caller identity and
session trust. The change is security-sensitive: done wrong, it can
weaken authentication strength, mishandle sessions and tokens, or break
the audit trail that detects abuse.
The engineer’s question — what must be done here? — maps to a
domain: identity, access, and session trust. In AppSec Core this is the
slice ASC-02 (IAT). Scoping the ontology to the governing slice
yields the working set the change must satisfy.
4 From change to a typed working
set
The working set is not described; it is queried against the
deposited ontology, in two steps: a first query lists the governing
slice’s control objectives, and a second expands an objective into its
typed obligations. Scoped to the governing slice ASC-02, the first query
returns the slice’s control objectives:
PREFIX ac:   <.../appsec-core/v1#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?objective ?label WHERE {
?objective a ac:ControlObjective ;
ac:belongsToSlice ac:SliceASC02 ;
rdfs:label ?label .
} ORDER BY ?objective
The seven obligations a change to identity/access/session components
must meet are returned verbatim:
ACO-IAT-001  Authentication Strength and Identity Assurance
ACO-IAT-002  Authorization Policy Integrity and Least Privilege

CHK-762803443d4143217454e9dc

ts
must meet are returned verbatim:
ACO-IAT-001  Authentication Strength and Identity Assurance
ACO-IAT-002  Authorization Policy Integrity and Least Privilege
ACO-IAT-003  Access Revocation and Privilege Lifecycle Integrity
ACO-IAT-004  Session and Token Trust Boundaries
ACO-IAT-005  API Caller Trust and Service Boundary Enforcement
ACO-IAT-006  Access Abuse Detection and Auditability
ACO-IAT-007  Identity and Access Control Integrity
Expanding an objective into a concrete task is the second query, which
follows the three relations that link the types. For Access Abuse
Detection and Auditability (ACO-IAT-006):
SELECT ?relation ?target ?label WHERE {
VALUES (?relation ?p) {
("realized_by"    ac:objective_realized_by_practice)
("implemented_by" ac:objective_implemented_by_mechanism)
("expects"        ac:objective_expects_artifact)
}
ac:ACO_IAT_006 ?p ?target .
?target rdfs:label ?label .
}
it returns the practice that realizes the objective, the mechanisms that
implement it, and the evidence artifacts it expects:
realized_by    ACP-IAT-006  Access Abuse Monitoring and Audit Trail
implemented_by ACM-IAT-003  Periodic Review and Access Audit
implemented_by ACM-IAT-006  Structured Logging and Effective Configuration Recording
expects        ACA-IAT-003  Log Stream
expects        ACA-IAT-004  Policy Report
expects        ACA-IAT-005  Alert Policy

CHK-3e18f1a29cb7476897160362

and Effective Configuration Recording
expects        ACA-IAT-003  Log Stream
expects        ACA-IAT-004  Policy Report
expects        ACA-IAT-005  Alert Policy
The engineer’s task at the change point is now explicit: ensure the
middleware emits an auditable log stream, that a review mechanism
consumes it, and that an alert policy exists — and produce those
artifacts as evidence.
The working set is a graph, not a checklist — and that is
where the typing earns its keep. The Log Stream artifact
(ACA-IAT-003) is expected by six of the slice’s seven objectives (Figure
1), so satisfying it once discharges evidence for several obligations at
once; the shared dependencies are explicit in the model, not left for
the engineer to rediscover per objective.
ACO-IAT-001ACO-IAT-003ACO-IAT-004ACO-IAT-005ACO-IAT-006ACO-IAT-007ACA-IAT-003Log Stream
Figure 1: The working set is a graph, not a checklist: one evidence artifact, Log Stream, is expected by six of the IAT slice’s seven control objectives. Producing it once discharges evidence for all six.
Each returned element carries per-identifier provenance to the deposited
source items it was distilled from, so the working set is
followable to its sources rather than asserted — the engineer,
or an auditor, can ask not only what applies but on whose
authority. Beyond that per-identifier provenance, the cycle’s substrate

CHK-7c32ba908402ca2f4b7b8ef0

than asserted — the engineer,
or an auditor, can ask not only what applies but on whose
authority. Beyond that per-identifier provenance, the cycle’s substrate
records which public authorities converge on each obligation,
with a confidence band, making “on whose authority” inspectable
against the published standards themselves (Figure 2).
ACO-SCBI-001Dependency Inventory& SBOM TraceabilityOWASP DSOMMOWASP ASVSCIS Controls v8NIST SP 800-53
Figure 2: Ontology→\rightarrowSources, read from the cycle’s substrate Farinha (2026b): the
obligation ACO-SCBI-001 (Dependency Inventory and SBOM Traceability) — with its
practice Build-Linked SBOM Generation and mechanism Build and Image Inventory
Generation — draws on several converging public authorities. This makes on whose
authority inspectable against the published standards; the source-coverage layer is the
cycle’s contribution, consumed here, not validated. Per-claim relevance scores are recorded
in the substrate.
The same typed working set is what a human engineer reads and what an
LLM-grounded assistant would be handed as grounding context; such
delivery, through a Model Context Protocol (MCP) server over an authored
corpus, is companion work Farinha (2026c) and is not part of this use
case.
The same forward query, rescoped to another slice, behaves identically:
for a change to an input-handling path it returns slice ASC-07’s eight

CHK-ef4218fe3d7e84ed36b7d4b9

f this use
case.
The same forward query, rescoped to another slice, behaves identically:
for a change to an input-handling path it returns slice ASC-07’s eight
objectives and their typed expansions, with Validation Evidence
(ACA-IVF-003) standing in for Log Stream as the artifact shared
across most of them. Only the governing slice differs; the workflow does
not.
5 A second entry point: from a regulation to a working
set
The forward use starts from code. The same working set is reachable from
the other side — from an obligation. Suppose the driver is not a diff
but a mandate: the service must comply with the EU NIS2 Directive
European Parliament and Council (2022). NIS2 Article 21 requires “appropriate and proportionate
technical, operational and organisational measures to manage
cybersecurity risks” — a generic legal duty, not a code instruction.
The engineering question hidden inside it is the one from §1: what
must be done, in code, to discharge this?
Here the query runs in the inverse direction. Rather than scoping to a
slice, it starts from the source and follows the cycle’s source→\rightarrowentity
substrate Farinha (2026b) to the typed entities the regulation’s claims
land on:
PREFIX ac: <.../appsec-core/v1#>
SELECT ?slice ?entity WHERE {        # over the cycle substrate
?item  ac:source "eu_nis2" .
?claim ac:item_ref ?item ;
ac:target_core_entity ?entity ;

CHK-dc1dc96cf41db25531206dc6

re/v1#>
SELECT ?slice ?entity WHERE {        # over the cycle substrate
?item  ac:source "eu_nis2" .
?claim ac:item_ref ?item ;
ac:target_core_entity ?entity ;
ac:slice ?slice .
}
NIS2’s cyber-risk-management articles (Articles 20–23, with Article 21
chief among them) decompose, in the substrate, into 70 claims, which
land across the ontology’s engineering surface as follows:
Threat Modeling & Risk       13     Integration Trust          6
Identity, Access & Session   10     Secret Handling & Config    5
Release & Rollback            9     Supply-chain & Build        5
Testing & Validation          9     Input/Output Validation     3
Logging & Audit Trail         8     Architecture & Boundaries   2
The distribution is itself informative: a risk-management directive
concentrates on Threat Modeling & Risk and Identity,
Access & Session Trust — exactly where one would expect it to land.
The mapping is semantically coherent, not uniform noise. And each
landing point is a typed obligation the engineer already knows how to
discharge from the forward use: scoped to Identity, Access &
Session Trust, NIS2 reaches the same objectives, practices, and
mechanisms the authentication-middleware change did (ACO-IAT-001/002,
ACP-IAT-001/002/006, ACM-IAT-001/002/006). The generic legal duty has
become a concrete, typed, slice-organized working set — and an

CHK-60d4f4605650c53f0a949229

ange did (ACO-IAT-001/002,
ACP-IAT-001/002/006, ACM-IAT-001/002/006). The generic legal duty has
become a concrete, typed, slice-organized working set — and an
engineer, or an AI assistant asked to “make this NIS2-compliant,”
receives the code-level residue rather than a directive to read.
Two qualifications keep this honest. First, the source→\rightarrowentity layer is
the cycle’s coverage grounding Farinha (2026b), not a
per-article legal interpretation. Its scores are a
relevance-triage signal, not a verdict. Legal prose and
engineering-practice text sit in different registers, so even a
genuinely relevant obligation aligns at modest similarity; the
substrate’s role is to surface candidate obligations for a human,
or an auditor, to confirm, not to certify them. Judging which candidates
are relevant, and the systematic decomposition of each regime, is
companion work; this use consumes the existing substrate rather than
validating it.
Second, this is exactly why the count differs from the working set’s
size: the substrate records the external claims mapped into a
slice — a claim being one decomposed normative statement, not
the source item itself — whereas the working set is the slice’s
typed instances (for IAT, the seven objectives with their six
practices, six mechanisms, and six artifacts). NIS2 is overwhelmingly

CHK-00bc38c8e3afc0fbb681d16e

 working set is the slice’s
typed instances (for IAT, the seven objectives with their six
practices, six mechanisms, and six artifacts). NIS2 is overwhelmingly
governance text; only its engineering-actionable fraction reaches the
ontology at all — which is the point. The ontology extracts from a
normative document precisely the part that lands in code and leaves the
rest — board reporting, supervision, vendor governance — where it
belongs.
6 What the use demonstrates
The use turns an open-ended reading task — “consult the relevant
chapters of every applicable authority” — into a bounded, checkable
one: “satisfy this typed working set against the diff.” What we
observed in running it, slice by slice, is what makes it work in
practice:
•
The bounded scope meant the query returned the governing
slice’s objectives, not an open search across all of security guidance
— the answer was closed and finite, and stopped at the slice that
governs the change.
•
The functional typing meant each returned item carried its kind
of action — a practice to adopt, a mechanism to implement, an
artifact to produce — so the working set read as tasks to discharge,
not topics to read.
•
The provenance meant each obligation was followable to the
deposited source items behind it, so the engineer could see why
an item was required, not only that it was.

CHK-54cc13a90e71daf644c4c882

venance meant each obligation was followable to the
deposited source items behind it, so the engineer could see why
an item was required, not only that it was.
What distinguishes the use is less the query than the shape of its
answer. Retrieval and knowledge-graph methods typically answer by
returning more — ranked passages, expanded neighbourhoods,
related concepts — and leave the engineer to judge where to stop. Here
the query stops: scoped to the governing slice, it returns a
closed, finite working set — every objective the ontology files under
that slice, each expanded into its typed, source-backed obligations, and
nothing outside it. That closure is structural, not incidental. Across
all ten slices every objective resolves to a practice and a mechanism
within its own slice, and no relation crosses a slice boundary; a
slice-scoped query is therefore bounded by the partition itself, not by
where the engineer chooses to stop. The three properties above —
bounded scope, functional typing, per-instance
provenance — are together a lightweight design stance an
engineering-facing security ontology can adopt, and it is that stance,
not the query language, that turns the ontology from something to
consult into something to satisfy.
Shown from both entry points — forward from a code change, inverse
from a regulation — the result is the same kind of object: a closed,

CHK-66f6c511dba38a46f4793308

o something to satisfy.
Shown from both entry points — forward from a code change, inverse
from a regulation — the result is the same kind of object: a closed,
typed, source-backed working set. That a local engineering question and
a top-down compliance duty resolve to the same structure is the
use’s most general lesson: the bounded ontology is the meeting point
where “what must I do here?” and “what must I do to comply?” become
one answer. Whether this carries to other heterogeneously regulated
domains is a question this evidence can raise but not settle.
7 Related cybersecurity
ontologies
The use case sits alongside, not against, established cybersecurity
modeling. Threat-intelligence ontologies (UCO Syed et al. (2016), STUCCO
Iannacone et al. (2015)) and cybersecurity knowledge graphs model attacks,
indicators, and countermeasures for detection and analysis; the analysis
of D3FEND in Oliveira et al. (2023) shows the modeling care that domain
demands. Foundational security ontologies (COVER Sales et al. (2018), ROSE
Oliveira et al. (2022)) provide categorial accounts of value, risk, and security
from which conceptual clarity follows. AppSec Core is differently aimed:
it normalizes engineering-practice substance for use at the point of
change, and combines with these families without semantic conflict — a
threat surfaced by a threat-intelligence model, or a concept clarified

CHK-bdbb425763a424f1c4cb0908

e at the point of
change, and combines with these families without semantic conflict — a
threat surfaced by a threat-intelligence model, or a concept clarified
foundationally, can motivate or refine what an objective requires. The
systematic mapping in Oliveira et al. (2021) further frames why a published,
reusable, provenance-bearing artefact matters for such use.
8 Limitations and relation to companion
work
These are worked use cases, illustrative rather than an empirical study
of effectiveness; no comparative baseline or outcome metrics are
reported here, and whether the working set measurably improves
engineering or agent outcomes is a separate, pre-registered companion
question Farinha (2026). For space, the full expansion into practice,
mechanisms, and artifacts is shown for one representative objective
(ACO-IAT-006); the pattern is identical for the others in the slice.
A trade-off follows from the boundedness itself. Because every relation
stays within its slice, a change confined to one domain yields a single
closed working set — but a change that spans domains (authentication
logic that also alters the audit trail, say) must query each governing
slice in turn, and the ontology models no interaction between them. The
slice partition that makes each answer closed is also what leaves
cross-domain composition to the engineer; surfacing inter-slice

CHK-b5d2a31fe1a576d925bbc7a7

interaction between them. The
slice partition that makes each answer closed is also what leaves
cross-domain composition to the engineer; surfacing inter-slice
dependencies is out of scope here. The same burden appears on the
normative side: an obligation that emerges only from the joint reading
of several provisions — common in NIS2 — is surfaced claim by claim,
so composing interdependent provisions into one engineering requirement
likewise remains with the reader. The forward use queries the deposited
ontology directly; the inverse use additionally consumes the
source→\rightarrowentity substrate, whose construction, similarity calibration, and
cross-validation are the cycle paper’s contribution Farinha (2026b),
referenced and not re-derived here — and the inverse mapping is
coverage grounding, not a validated per-article legal reading. The
ontology’s formalization, FAIR assessment, and change-governance
protocol are likewise reported in the artefact paper Farinha (2026a).
Both artefacts and their per-identifier provenance are deposited under
open licences (identifiers in Farinha (2026a), Farinha (2026b)), so
the working sets shown here are reproducible and open to scrutiny.
9 Conclusion
Existing cybersecurity ontologies model the threat and the risk; an
engineer — or an AI assistant — at a point of work also needs to

CHK-b1803f2add8a7c7d921954de

 to scrutiny.
9 Conclusion
Existing cybersecurity ontologies model the threat and the risk; an
engineer — or an AI assistant — at a point of work also needs to
know what must be done here, and an organization under a new
regulation needs to know what must be done to comply. We have
shown that a bounded, functionally typed application-security ontology
answers both by returning the same object: a typed, source-traceable
working set. Forward, a change to authentication middleware scopes to
its slice; inverse, a NIS2 compliance duty resolves into the engineering
obligations it implies across slices — the code-level fraction of a
regulation that is otherwise governance prose. The value is in the use:
a reusable, auditable answer at the point of work, consumable by a human
engineer or a grounded agent alike. We invite the cybersecurity-ontology
community to test the working-set use against further changes,
regulations, and domains.
Declaration on Generative AI
During the preparation of this work, the author used Anthropic Claude in
order to: draft and edit text; structure and format the manuscript
(including its LaTeX sources); and run verification queries (SPARQL/RDF)
over the deposited artefacts to confirm the figures, counts, and
identifiers reported here. All factual claims, counts, and identifiers
were checked by the author against the deposited artefacts — the

CHK-b8b5907ecb203bd5d2833a01

he figures, counts, and
identifiers reported here. All factual claims, counts, and identifiers
were checked by the author against the deposited artefacts — the
AppSec Core ontology Farinha (2026a) and the cycle substrate
Farinha (2026b). After using this tool, the author reviewed and edited
the content as needed and takes full responsibility for the
publication’s content.
References
Syed et al. (2016)
Z. Syed, A. Padia,
T. Finin, L. Mathews,
A. Joshi,
UCO: A unified cybersecurity ontology,
in: AAAI Workshop on Artificial Intelligence for
Cyber Security, 2016.
Iannacone et al. (2015)
M. D. Iannacone, et al.,
Developing an ontology for cyber security knowledge
graphs,
in: 10th Annual Cyber and Information Security
Research Conference (CISRC), 2015.
Sales et al. (2018)
T. P. Sales, F. Baião,
G. Guizzardi, J. P. A. Almeida,
N. Guarino, J. Mylopoulos,
The common ontology of value and risk,
in: Conceptual Modeling (ER 2018), volume
11157 of LNCS,
2018, pp. 121–135.
doi:10.1007/978-3-030-00847-5_11.
Oliveira et al. (2022)
Í. Oliveira, T. P. Sales,
R. Baratella, M. Fumagalli,
G. Guizzardi,
An ontology of security from a risk treatment
perspective (ROSE),
in: Conceptual Modeling (ER 2022), volume
13607 of LNCS,
2022, pp. 365–379.
doi:10.1007/978-3-031-17995-2_26.
Farinha (2026a)
P. Farinha, AppSec Core v1: A formalized
normalization ontology for application security,
2026a.

CHK-856e70f6000b037dda81dcd8

 pp. 365–379.
doi:10.1007/978-3-031-17995-2_26.
Farinha (2026a)
P. Farinha, AppSec Core v1: A formalized
normalization ontology for application security,
2026a. doi:10.17605/OSF.IO/U9CRD,
preprint.
Farinha (2026b)
P. Farinha, Pressure-testing AppSec Core: A
design science cycle for bounded-ontology evolution under heterogeneous
application-security sources, 2026b.
doi:10.17605/OSF.IO/3E8G5, preprint.
Farinha (2026c)
P. Farinha, Ontology-grounded retrieval for
auditable LLM-assisted secure code generation,
2026c. doi:10.17605/OSF.IO/S3HET,
preprint.
European Parliament and Council (2022)
European Parliament and Council, Directive
(EU) 2022/2555 on measures for a high common level of cybersecurity across
the union (NIS2 directive),
https://eur-lex.europa.eu/eli/dir/2022/2555,
2022.
Oliveira et al. (2023)
Í. Oliveira, G. Engelberg,
P. P. F. Barcelos, T. P. Sales,
M. Fumagalli, R. Baratella,
D. Klein, G. Guizzardi,
Boosting D3FEND: Ontological analysis and
recommendations,
in: Formal Ontology in Information Systems (FOIS
2023), volume 377 of FAIA,
2023, pp. 334–348.
doi:10.3233/FAIA231138.
Oliveira et al. (2021)
Í. Oliveira, M. Fumagalli,
T. P. Sales, G. Guizzardi,
How FAIR are security core ontologies? a systematic
mapping study,
in: Research Challenges in Information Science
(RCIS 2021), volume 415 of
LNBIP, 2021, pp.
107–123. doi:10.1007/978-3-030-75018-3_7.
Farinha (2026)

CHK-6d370475670e02d1e281a268

ping study,
in: Research Challenges in Information Science
(RCIS 2021), volume 415 of
LNBIP, 2021, pp.
107–123. doi:10.1007/978-3-030-75018-3_7.
Farinha (2026)
P. Farinha, Empirical research design: A
security-by-design evaluation framework for ontology-grounded code
generation, 2026. doi:10.17605/OSF.IO/H5AJE,
pre-registered design; empirical execution in preparation.
补充资料

中文译文

正文译文暂缺,以下为已译原文片段。

已译原文片段

引文译文 · 原文位置 332–932

例如欧盟的 NIS2,而其中大部分内容的写作对象并非处于变更节点的工程师或 AI 助手。现有的网络安全本体主要为检测和分析而建模攻击、指标与风险,并未涵盖必须付诸行动的工程实践内容。本文介绍现有的有界应用安全本体 AppSec Core 的一个用例;其构建和验证另有报告。我们展示了它的用法。它将这些权威资料中可指导工程行动的部分整理成可通过类型定位的工作集合:那些控制目标……

as the EU’s NIS2 — and most of it is written for readers other than the engineer, or the AI assistant, at a point of change. Existing cybersecurity ontologies largely model attacks, indicators, and risk for detection and analysis, not the engineering-practice substance one must act on. This paper presents a use case for an existing bounded application-security ontology, AppSec Core, whose construction and validation are reported separately. We show how it is used. It makes the engineering-actionable fraction of those authorities addressable as a typed working set: the control objectives that

引文译文 · 原文位置 2425–3025

6,巴西维多利亚。††电子邮箱:pedro.farinha@shiftleft.pt††地址:葡萄牙 Independent Researcher, Shiftleft – Secure Software Engineering, Lda. 1 引言 软件工程师越来越多地在变更节点开展工作,例如拉取请求、引入新依赖项或重构;此时的局部决策会产生安全后果。安全设计原则认为,应在构建系统时处理这些后果,而不是事后补救。在实践中,每个变更节点都面临一个具体问题:要使这项变更安全,此处必须做什么?回答这个问题,我们……

6, Vitória, Brazil.††email: pedro.farinha@shiftleft.pt††address: Independent Researcher, Shiftleft – Secure Software Engineering, Lda., Portugal 1 Introduction Software engineers increasingly work at points of change — a pull request, a new dependency, a refactor — where a local decision has security consequences. The principle of security by design holds that those consequences should be addressed as the system is built, not retrofitted afterwards; in practice this resolves, at each point of change, into a concrete question: what must be done here for this change to be secure? Answering it we

已采集原文

访问来源网页

What Must Be Done Here? Using a Bounded Application-Security Ontology at the Point of Change Pedro Farinha Abstract The security guidance that bears on code is real but scattered. It lives across secure-development frameworks, verification standards, controls catalogues, threat taxonomies, and, increasingly, normative regimes such as the EU’s NIS2 — and most of it is written for readers other than the engineer, or the AI assistant, at a point of change. Existing cybersecurity ontologies largely model attacks, indicators, and risk for detection and analysis, not the engineering-practice substance one must act on. This paper presents a use case for an existing bounded application-security ontology, AppSec Core, whose construction and validation are reported separately. We show how it is used. It makes the engineering-actionable fraction of those authorities addressable as a typed working set: the control objectives that apply, the practices that realize them, the mechanisms that implement them, and the evidence artifacts they expect, each traceable to the sources that justify it. We reach that working set from two entry points that recur in practice. Forward, from a code change: a change to authentication middleware scopes to its governing domain slice and returns the obligations the change must satisfy. Inverse, from a normative obligation: “make this NIS2-compliant” resolves a generic legal duty into the concrete engineering obligations it implies across slices, surfacing precisely the fraction of a mostly-governance regulation that lands in code. The same working set is what a human engineer reads and what an LLM-grounded assistant is handed as grounding. The use turns “read every applicable authority” into “satisfy this typed working set”, for a code change or a compliance duty alike. The contribution is the demonstrated use; the artefact, its validation, and its governance are companion work. keywords application ontology ,cybersecurity ,ontology use case ,knowledge graph ,conceptual modeling ,traceability ,provenance ,regulatory compliance ,AI-assisted development ,secure software engineering ††copyright: Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).††venue: Semantic Shields 3: The 3rd International Workshop on Modeling for Cybersecurity, co-located with JOWO 2026 / FOIS 2026, September 21–22, 2026, Vitória, Brazil.††email: pedro.farinha@shiftleft.pt††address: Independent Researcher, Shiftleft – Secure Software Engineering, Lda., Portugal 1 Introduction Software engineers increasingly work at points of change — a pull request, a new dependency, a refactor — where a local decision has security consequences. The principle of security by design holds that those consequences should be addressed as the system is built, not retrofitted afterwards; in practice this resolves, at each point of change, into a concrete question: what must be done here for this change to be secure? Answering it well requires knowing which security controls apply to this change, how to realize them, and what evidence shows they hold. The guidance needed to answer exists, but it is hard to use at the point of change. It is spread across secure-development frameworks, verification standards, controls catalogues, maturity models, and threat taxonomies, each with its own vocabulary and structure. An engineer cannot read every authority for every change. A capable LLM, by contrast, has in principle ingested these authorities, and — well prompted — can recite and even apply them. But having read the corpus is not the same as answering, for this change, which obligations apply, on whose authority, and whether the returned set is complete. Without a structure to resolve against, the model offers a plausible subset, not a bounded, source-traceable one. What is missing is therefore not more guidance, nor a model that has read it, but a structure that makes the relevant guidance addressable — and answerable in full — from the point of work. Cybersecurity ontologies are a natural candidate for that structure, but most existing ones are aimed elsewhere. Threat-intelligence ontologies such as UCO Syed et al. (2016) and STUCCO Iannacone et al. (2015) integrate attack and indicator schemas (CVE, CWE, CAPEC, STIX) for detection and intelligence fusion. Foundational security ontologies such as COVER Sales et al. (2018) and ROSE Oliveira et al. (2022), built on UFO, model security and risk concepts with categorial depth for conceptual clarity. Both are valuable and complementary, but neither is bounded to the security-by-design question above: for a change at a given point in development, what must be done, what realizes it, and what evidences it. AppSec Core is a bounded application-security ontology built for exactly that question. Its purpose is to extract, from heterogeneous source documents, the substance that bears on building software — and to make it addressable where development happens, by a human engineer or, increasingly, an AI coding assistant that needs grounding rather than priors. Its design, OWL 2 DL formalization, SHACL validation, FAIR assessment, and change-governance protocol are reported in a companion artefact paper Farinha (2026a); the design-science cycle that populated it from thirty-one sources, and the source→\rightarrowentity substrate that cycle produced, are reported in a second companion Farinha (2026b). We re-present none of this. This paper asks the practical question the Semantic Shields community foregrounds: how is such an ontology used? We answer by showing the same object — a typed, source-traceable working set — reached from two entry points that recur in practice. Forward, from a code change: a change to authentication middleware scopes to its governing slice and returns what that change must satisfy (§3–4). Inverse, from a normative obligation: a duty to comply with the EU NIS2 Directive resolves into the engineering obligations it implies across slices (§5) — surfacing, from a regulation that is mostly governance text, the fraction that actually lands in code, which would otherwise stay outside the engineer’s reach. The contribution is the demonstrated use and the lesson it carries for cybersecurity ontologies intended for engineering practice; it is not the artefact, the cycle, a retrieval mechanism, nor an effectiveness study. 2 AppSec Core in brief We recap only what the use case needs; the full account is in Farinha (2026a). AppSec Core is a bounded application-security ontology: it carries the engineering-practice substance of application security — what must be done to the software — distilled from thirty-one heterogeneous authorities. These span secure-development frameworks, verification standards, and controls catalogues, and reach into the engineering-relevant substance of compliance and regulatory sources as well. Its boundary is on the kind of substance, not the source. From each authority it keeps the part an engineer acts on in code; the governance substance those authorities also carry — board reporting, vendor-risk management, regulatory examination, workforce training — is routed elsewhere by design. It is that engineering fraction, normalized and typed, that lets an obligation reach the engineer as a concrete code-level task rather than a document to interpret. It is partitioned into ten domain slices (e.g., Identity, Access & Session Trust; Input/Output Validation; Release Promotion), each a coherent module with its own per-slice contract. Within the slices, four populated entity types carry the engineering substance, in a functional reading: • ControlObjective — what must hold (a security objective for the slice); • Practice — a human/process discipline that realizes an objective; • Mechanism — a technical control that implements it; • Artifact — the evidence the objective expects. Three relations connect the types, and belongsToSlice assigns each entity to a slice: • objective_realized_by_practice — objective→\rightarrowpractice (abbreviated realized_by in the listings below); • objective_implemented_by_mechanism — objective→\rightarrowmechanism (implemented_by); • objective_expects_artifact — objective→\rightarrowartifact (expects). Each instance was normalized from independent normative sources and carries per-identifier provenance to them; that provenance is what lets a working set resolve to the sources that justify it. 3 The use case: a change to authentication middleware Consider an engineer modifying a service’s authentication middleware — the component that establishes caller identity and session trust. The change is security-sensitive: done wrong, it can weaken authentication strength, mishandle sessions and tokens, or break the audit trail that detects abuse. The engineer’s question — what must be done here? — maps to a domain: identity, access, and session trust. In AppSec Core this is the slice ASC-02 (IAT). Scoping the ontology to the governing slice yields the working set the change must satisfy. 4 From change to a typed working set The working set is not described; it is queried against the deposited ontology, in two steps: a first query lists the governing slice’s control objectives, and a second expands an objective into its typed obligations. Scoped to the governing slice ASC-02, the first query returns the slice’s control objectives: PREFIX ac: <.../appsec-core/v1#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?objective ?label WHERE { ?objective a ac:ControlObjective ; ac:belongsToSlice ac:SliceASC02 ; rdfs:label ?label . } ORDER BY ?objective The seven obligations a change to identity/access/session components must meet are returned verbatim: ACO-IAT-001 Authentication Strength and Identity Assurance ACO-IAT-002 Authorization Policy Integrity and Least Privilege ACO-IAT-003 Access Revocation and Privilege Lifecycle Integrity ACO-IAT-004 Session and Token Trust Boundaries ACO-IAT-005 API Caller Trust and Service Boundary Enforcement ACO-IAT-006 Access Abuse Detection and Auditability ACO-IAT-007 Identity and Access Control Integrity Expanding an objective into a concrete task is the second query, which follows the three relations that link the types. For Access Abuse Detection and Auditability (ACO-IAT-006): SELECT ?relation ?target ?label WHERE { VALUES (?relation ?p) { ("realized_by" ac:objective_realized_by_practice) ("implemented_by" ac:objective_implemented_by_mechanism) ("expects" ac:objective_expects_artifact) } ac:ACO_IAT_006 ?p ?target . ?target rdfs:label ?label . } it returns the practice that realizes the objective, the mechanisms that implement it, and the evidence artifacts it expects: realized_by ACP-IAT-006 Access Abuse Monitoring and Audit Trail implemented_by ACM-IAT-003 Periodic Review and Access Audit implemented_by ACM-IAT-006 Structured Logging and Effective Configuration Recording expects ACA-IAT-003 Log Stream expects ACA-IAT-004 Policy Report expects ACA-IAT-005 Alert Policy The engineer’s task at the change point is now explicit: ensure the middleware emits an auditable log stream, that a review mechanism consumes it, and that an alert policy exists — and produce those artifacts as evidence. The working set is a graph, not a checklist — and that is where the typing earns its keep. The Log Stream artifact (ACA-IAT-003) is expected by six of the slice’s seven objectives (Figure 1), so satisfying it once discharges evidence for several obligations at once; the shared dependencies are explicit in the model, not left for the engineer to rediscover per objective. ACO-IAT-001ACO-IAT-003ACO-IAT-004ACO-IAT-005ACO-IAT-006ACO-IAT-007ACA-IAT-003Log Stream Figure 1: The working set is a graph, not a checklist: one evidence artifact, Log Stream, is expected by six of the IAT slice’s seven control objectives. Producing it once discharges evidence for all six. Each returned element carries per-identifier provenance to the deposited source items it was distilled from, so the working set is followable to its sources rather than asserted — the engineer, or an auditor, can ask not only what applies but on whose authority. Beyond that per-identifier provenance, the cycle’s substrate records which public authorities converge on each obligation, with a confidence band, making “on whose authority” inspectable against the published standards themselves (Figure 2). ACO-SCBI-001Dependency Inventory& SBOM TraceabilityOWASP DSOMMOWASP ASVSCIS Controls v8NIST SP 800-53 Figure 2: Ontology→\rightarrowSources, read from the cycle’s substrate Farinha (2026b): the obligation ACO-SCBI-001 (Dependency Inventory and SBOM Traceability) — with its practice Build-Linked SBOM Generation and mechanism Build and Image Inventory Generation — draws on several converging public authorities. This makes on whose authority inspectable against the published standards; the source-coverage layer is the cycle’s contribution, consumed here, not validated. Per-claim relevance scores are recorded in the substrate. The same typed working set is what a human engineer reads and what an LLM-grounded assistant would be handed as grounding context; such delivery, through a Model Context Protocol (MCP) server over an authored corpus, is companion work Farinha (2026c) and is not part of this use case. The same forward query, rescoped to another slice, behaves identically: for a change to an input-handling path it returns slice ASC-07’s eight objectives and their typed expansions, with Validation Evidence (ACA-IVF-003) standing in for Log Stream as the artifact shared across most of them. Only the governing slice differs; the workflow does not. 5 A second entry point: from a regulation to a working set The forward use starts from code. The same working set is reachable from the other side — from an obligation. Suppose the driver is not a diff but a mandate: the service must comply with the EU NIS2 Directive European Parliament and Council (2022). NIS2 Article 21 requires “appropriate and proportionate technical, operational and organisational measures to manage cybersecurity risks” — a generic legal duty, not a code instruction. The engineering question hidden inside it is the one from §1: what must be done, in code, to discharge this? Here the query runs in the inverse direction. Rather than scoping to a slice, it starts from the source and follows the cycle’s source→\rightarrowentity substrate Farinha (2026b) to the typed entities the regulation’s claims land on: PREFIX ac: <.../appsec-core/v1#> SELECT ?slice ?entity WHERE { # over the cycle substrate ?item ac:source "eu_nis2" . ?claim ac:item_ref ?item ; ac:target_core_entity ?entity ; ac:slice ?slice . } NIS2’s cyber-risk-management articles (Articles 20–23, with Article 21 chief among them) decompose, in the substrate, into 70 claims, which land across the ontology’s engineering surface as follows: Threat Modeling & Risk 13 Integration Trust 6 Identity, Access & Session 10 Secret Handling & Config 5 Release & Rollback 9 Supply-chain & Build 5 Testing & Validation 9 Input/Output Validation 3 Logging & Audit Trail 8 Architecture & Boundaries 2 The distribution is itself informative: a risk-management directive concentrates on Threat Modeling & Risk and Identity, Access & Session Trust — exactly where one would expect it to land. The mapping is semantically coherent, not uniform noise. And each landing point is a typed obligation the engineer already knows how to discharge from the forward use: scoped to Identity, Access & Session Trust, NIS2 reaches the same objectives, practices, and mechanisms the authentication-middleware change did (ACO-IAT-001/002, ACP-IAT-001/002/006, ACM-IAT-001/002/006). The generic legal duty has become a concrete, typed, slice-organized working set — and an engineer, or an AI assistant asked to “make this NIS2-compliant,” receives the code-level residue rather than a directive to read. Two qualifications keep this honest. First, the source→\rightarrowentity layer is the cycle’s coverage grounding Farinha (2026b), not a per-article legal interpretation. Its scores are a relevance-triage signal, not a verdict. Legal prose and engineering-practice text sit in different registers, so even a genuinely relevant obligation aligns at modest similarity; the substrate’s role is to surface candidate obligations for a human, or an auditor, to confirm, not to certify them. Judging which candidates are relevant, and the systematic decomposition of each regime, is companion work; this use consumes the existing substrate rather than validating it. Second, this is exactly why the count differs from the working set’s size: the substrate records the external claims mapped into a slice — a claim being one decomposed normative statement, not the source item itself — whereas the working set is the slice’s typed instances (for IAT, the seven objectives with their six practices, six mechanisms, and six artifacts). NIS2 is overwhelmingly governance text; only its engineering-actionable fraction reaches the ontology at all — which is the point. The ontology extracts from a normative document precisely the part that lands in code and leaves the rest — board reporting, supervision, vendor governance — where it belongs. 6 What the use demonstrates The use turns an open-ended reading task — “consult the relevant chapters of every applicable authority” — into a bounded, checkable one: “satisfy this typed working set against the diff.” What we observed in running it, slice by slice, is what makes it work in practice: • The bounded scope meant the query returned the governing slice’s objectives, not an open search across all of security guidance — the answer was closed and finite, and stopped at the slice that governs the change. • The functional typing meant each returned item carried its kind of action — a practice to adopt, a mechanism to implement, an artifact to produce — so the working set read as tasks to discharge, not topics to read. • The provenance meant each obligation was followable to the deposited source items behind it, so the engineer could see why an item was required, not only that it was. What distinguishes the use is less the query than the shape of its answer. Retrieval and knowledge-graph methods typically answer by returning more — ranked passages, expanded neighbourhoods, related concepts — and leave the engineer to judge where to stop. Here the query stops: scoped to the governing slice, it returns a closed, finite working set — every objective the ontology files under that slice, each expanded into its typed, source-backed obligations, and nothing outside it. That closure is structural, not incidental. Across all ten slices every objective resolves to a practice and a mechanism within its own slice, and no relation crosses a slice boundary; a slice-scoped query is therefore bounded by the partition itself, not by where the engineer chooses to stop. The three properties above — bounded scope, functional typing, per-instance provenance — are together a lightweight design stance an engineering-facing security ontology can adopt, and it is that stance, not the query language, that turns the ontology from something to consult into something to satisfy. Shown from both entry points — forward from a code change, inverse from a regulation — the result is the same kind of object: a closed, typed, source-backed working set. That a local engineering question and a top-down compliance duty resolve to the same structure is the use’s most general lesson: the bounded ontology is the meeting point where “what must I do here?” and “what must I do to comply?” become one answer. Whether this carries to other heterogeneously regulated domains is a question this evidence can raise but not settle. 7 Related cybersecurity ontologies The use case sits alongside, not against, established cybersecurity modeling. Threat-intelligence ontologies (UCO Syed et al. (2016), STUCCO Iannacone et al. (2015)) and cybersecurity knowledge graphs model attacks, indicators, and countermeasures for detection and analysis; the analysis of D3FEND in Oliveira et al. (2023) shows the modeling care that domain demands. Foundational security ontologies (COVER Sales et al. (2018), ROSE Oliveira et al. (2022)) provide categorial accounts of value, risk, and security from which conceptual clarity follows. AppSec Core is differently aimed: it normalizes engineering-practice substance for use at the point of change, and combines with these families without semantic conflict — a threat surfaced by a threat-intelligence model, or a concept clarified foundationally, can motivate or refine what an objective requires. The systematic mapping in Oliveira et al. (2021) further frames why a published, reusable, provenance-bearing artefact matters for such use. 8 Limitations and relation to companion work These are worked use cases, illustrative rather than an empirical study of effectiveness; no comparative baseline or outcome metrics are reported here, and whether the working set measurably improves engineering or agent outcomes is a separate, pre-registered companion question Farinha (2026). For space, the full expansion into practice, mechanisms, and artifacts is shown for one representative objective (ACO-IAT-006); the pattern is identical for the others in the slice. A trade-off follows from the boundedness itself. Because every relation stays within its slice, a change confined to one domain yields a single closed working set — but a change that spans domains (authentication logic that also alters the audit trail, say) must query each governing slice in turn, and the ontology models no interaction between them. The slice partition that makes each answer closed is also what leaves cross-domain composition to the engineer; surfacing inter-slice dependencies is out of scope here. The same burden appears on the normative side: an obligation that emerges only from the joint reading of several provisions — common in NIS2 — is surfaced claim by claim, so composing interdependent provisions into one engineering requirement likewise remains with the reader. The forward use queries the deposited ontology directly; the inverse use additionally consumes the source→\rightarrowentity substrate, whose construction, similarity calibration, and cross-validation are the cycle paper’s contribution Farinha (2026b), referenced and not re-derived here — and the inverse mapping is coverage grounding, not a validated per-article legal reading. The ontology’s formalization, FAIR assessment, and change-governance protocol are likewise reported in the artefact paper Farinha (2026a). Both artefacts and their per-identifier provenance are deposited under open licences (identifiers in Farinha (2026a), Farinha (2026b)), so the working sets shown here are reproducible and open to scrutiny. 9 Conclusion Existing cybersecurity ontologies model the threat and the risk; an engineer — or an AI assistant — at a point of work also needs to know what must be done here, and an organization under a new regulation needs to know what must be done to comply. We have shown that a bounded, functionally typed application-security ontology answers both by returning the same object: a typed, source-traceable working set. Forward, a change to authentication middleware scopes to its slice; inverse, a NIS2 compliance duty resolves into the engineering obligations it implies across slices — the code-level fraction of a regulation that is otherwise governance prose. The value is in the use: a reusable, auditable answer at the point of work, consumable by a human engineer or a grounded agent alike. We invite the cybersecurity-ontology community to test the working-set use against further changes, regulations, and domains. Declaration on Generative AI During the preparation of this work, the author used Anthropic Claude in order to: draft and edit text; structure and format the manuscript (including its LaTeX sources); and run verification queries (SPARQL/RDF) over the deposited artefacts to confirm the figures, counts, and identifiers reported here. All factual claims, counts, and identifiers were checked by the author against the deposited artefacts — the AppSec Core ontology Farinha (2026a) and the cycle substrate Farinha (2026b). After using this tool, the author reviewed and edited the content as needed and takes full responsibility for the publication’s content. References Syed et al. (2016) Z. Syed, A. Padia, T. Finin, L. Mathews, A. Joshi, UCO: A unified cybersecurity ontology, in: AAAI Workshop on Artificial Intelligence for Cyber Security, 2016. Iannacone et al. (2015) M. D. Iannacone, et al., Developing an ontology for cyber security knowledge graphs, in: 10th Annual Cyber and Information Security Research Conference (CISRC), 2015. Sales et al. (2018) T. P. Sales, F. Baião, G. Guizzardi, J. P. A. Almeida, N. Guarino, J. Mylopoulos, The common ontology of value and risk, in: Conceptual Modeling (ER 2018), volume 11157 of LNCS, 2018, pp. 121–135. doi:10.1007/978-3-030-00847-5_11. Oliveira et al. (2022) Í. Oliveira, T. P. Sales, R. Baratella, M. Fumagalli, G. Guizzardi, An ontology of security from a risk treatment perspective (ROSE), in: Conceptual Modeling (ER 2022), volume 13607 of LNCS, 2022, pp. 365–379. doi:10.1007/978-3-031-17995-2_26. Farinha (2026a) P. Farinha, AppSec Core v1: A formalized normalization ontology for application security, 2026a. doi:10.17605/OSF.IO/U9CRD, preprint. Farinha (2026b) P. Farinha, Pressure-testing AppSec Core: A design science cycle for bounded-ontology evolution under heterogeneous application-security sources, 2026b. doi:10.17605/OSF.IO/3E8G5, preprint. Farinha (2026c) P. Farinha, Ontology-grounded retrieval for auditable LLM-assisted secure code generation, 2026c. doi:10.17605/OSF.IO/S3HET, preprint. European Parliament and Council (2022) European Parliament and Council, Directive (EU) 2022/2555 on measures for a high common level of cybersecurity across the union (NIS2 directive), https://eur-lex.europa.eu/eli/dir/2022/2555, 2022. Oliveira et al. (2023) Í. Oliveira, G. Engelberg, P. P. F. Barcelos, T. P. Sales, M. Fumagalli, R. Baratella, D. Klein, G. Guizzardi, Boosting D3FEND: Ontological analysis and recommendations, in: Formal Ontology in Information Systems (FOIS 2023), volume 377 of FAIA, 2023, pp. 334–348. doi:10.3233/FAIA231138. Oliveira et al. (2021) Í. Oliveira, M. Fumagalli, T. P. Sales, G. Guizzardi, How FAIR are security core ontologies? a systematic mapping study, in: Research Challenges in Information Science (RCIS 2021), volume 415 of LNBIP, 2021, pp. 107–123. doi:10.1007/978-3-030-75018-3_7. Farinha (2026) P. Farinha, Empirical research design: A security-by-design evaluation framework for ontology-grounded code generation, 2026. doi:10.17605/OSF.IO/H5AJE, pre-registered design; empirical execution in preparation.

原文依据