DEENESPTFRRUARHIKOZHNL

命名空间 ara::idsm

Diese Seite wurde vollständig KI-generiert auf Basis von SWS IntrusionDetectionSystemManager (R25-11) — kein offizieller AUTOSAR-Text und keine automatisch extrahierte API-Seite wie die übrigen Module. Als Interpretation gekennzeichnete Aussagen sind Schlussfolgerungen aus den Quellen.

用户指南人工智能生成

提供标准化接口和类型,以便向 IdsM 报告安全相关事件。
AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 79f9927c6ea2 来源 未决问题(2)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

提供标准化接口和类型,以便向 IdsM 报告安全相关事件。

命名空间 ara::idsm 提供了标准化的接口和类型,自适应应用程序可借此以结构化方式向侵入检测系统管理(Intrusion Detection System Management)报告安全事件([SWS_AIDSM_10205])。通过 EventReporter 以及时间戳、上下文数据和传输模式的关联 Provider,可以详细记录或筛选记录事件([SWS_AIDSM_10207])。当遇到未知事件标识符时,IdsmErrorDomain 提供针对性的错误代码以供进一步处理。

上下文

命名空间 ara::idsm 为入侵检测系统管理(IdsM)提供了 AUTOSAR Adaptive Platform 编程接口。其核心任务是以标准化方式从应用程序进程和平台实例中捕获安全相关事件(Security Events),并将其转发到上级 IdsM。

进行报告的应用程序的主要交互接口由类 EventReporter 构成。该捕获过程由专门的功能接口协同配合:ReportingModeProvider 管理当前传输模式([SWS_AIDSM_10207]),ContextDataProvider 提供动态随附数据([SWS_AIDSM_10201]、[SWS_AIDSM_10206]),而 TimestampProvider 提供时间信息([SWS_AIDSM_10202])。在接收方,QualifiedEventsReceiver 处理已限定的事件。这些角色的相互配合将自适应应用程序接入面向安全的监控体系中。

idsm_kontext app Adaptive Anwendung (Security Sensor) idsm_api ara::idsm (EventReporter, Provider, Receiver) app->idsm_api Meldet Events idsm_api->app 传递已认定的事件 idsm_daemon Intrusion Detection System Manager (IdsM) idsm_api->idsm_daemon 传输安全事件 idsm_daemon->idsm_api Konfiguriert Melde-Modus

上下文图:应用程序组件、ara::idsm 接口与 IdsM 之间的交互。来源:[SWS_AIDSM_10205]、[SWS_AIDSM_10207]

使用路径

用于指示安全事件的典型流程分为:查询报告状态、汇总相关上下文信息以及传输至 EventReporter。

在发出事件之前,应用程序通过 ReportingModeProvider 查询激活的报告模式([SWS_AIDSM_10207])。枚举 ReportingModeType 区分了包括禁用传输(kOff)、紧凑报告(kBrief)、详细报告(kDetailed)以及绕过本地筛选规则的模式(kBriefBypassingFilters、kDetailedBypassingFilters)等。如果未禁用报告,应用程序将准备有效数据。类型 EventIdType 的标识符用作事件标识符([SWS_AIDSM_10205])。对于深入分析,ContextDataProvider 以字节范围 ContextDataType([SWS_AIDSM_10201])或带有版本计数器的版本化对 VersionedContextDataType([SWS_AIDSM_10206])的形式提供可变上下文数据。此外,还可以通过 TimestampProvider 包含用于预限定事件的类型 CountType 计数器([SWS_AIDSM_10203])以及类型 TimestampType 时间戳([SWS_AIDSM_10202])。最后,应用程序将数据传递给 EventReporter。

安全事件报告流程应用ReportingModeProviderContextDataProviderEventReporterMelde-Modus abfragen返回 ReportingModeTypealtReportingModeType != kOffKontextdaten abrufenVersionedContextDataTypeEvent melden (EventIdType, ContextDataType)Ergebnis / Fehlercode (IdsmErrc)ReportingModeType == kOffMeldung verwerfen

时序图:用于检查报告状态和传输 Security Event 的调用顺序。来源:[SWS_AIDSM_10201]、[SWS_AIDSM_10205]、[SWS_AIDSM_10207]

错误场景

命名空间 ara::idsm 内的错误操作通过错误领域 IdsmErrorDomain 和错误代码类型 IdsmErrc 进行指示([SWS_AIDSM_10204])。为了实现符合标准的错误处理,存在函数 GetIdsmErrorDomain([SWS_AIDSM_10702])和 MakeErrorCode([SWS_AIDSM_10703]),可利用它们以线程安全的方式构造 ara::core::ErrorCode 实例。

一个核心错误场景是使用了未知的事件 ID。在这种情况下,系统报告错误 IdsmErrc::kUnknownEventId([SWS_AIDSM_10204])。当调用方传递了 IdsM 未知或未在清单中配置的类型 EventIdType 标识符时,就会发生这种情况。对于带有异常处理的同步接口,此状态由类 IdsmException 呈现。因此,每次成功报告的前提条件是传递的 EventIdType 值与 IdsM 配置相匹配。

本指南完全基于 AUTOSAR Release R25-11 规范。

主题图

KI-gestützte Gruppierung auf Basis der Records und Spezifikationsauszüge; keine Gliederung aus der AUTOSAR-Spezifikation.

详细视图

请在大纲中选择一个条目。

Ereignisverarbeitung

Meldet Security Events an IdsM.

Empfängt qualifizierte Ereignisse.

CountType 类型别名
using CountType = std::uint16_t;
EventIdType 类型别名
using EventIdType = std::uint16_t;

Kontextdaten

Stellt veränderbare Kontextdaten für IdsM bereit.

ContextDataType 类型别名
using ContextDataType = ara::core::Span<const std::uint8_t>;
using VersionedContextDataType = std::pair<ContextDataType, std::uint16_t>;

Zeitstempel

Stellt optionale Zeitstempel bereit.

TimestampType 类型别名
using TimestampType = std::uint64_t;

Meldemodus

Liest und setzt Reporting Modes.

enum class ReportingModeType : std::uint8_t { kOff, kBrief, kDetailed, kBriefBypassingFilters, kDetailedBypassingFilters };

Fehlerbehandlung

Fehlerdomäne für ara::idsm.

Exception-Typ für ara::idsm.

constexpr const ara::core::ErrorDomain& GetIdsmErrorDomain() noexcept;
constexpr ara::core::ErrorCode MakeErrorCode(ara::idsm::IdsmErrc code, ara::core::ErrorDomain::SupportDataType data) noexcept;
IdsmErrc 枚举
enum class IdsmErrc : ara::core::ErrorDomain::CodeType { kUnknownEventId = 3 };

枚举

枚举 ReportingModeType [SWS_AIDSM_10207]

enum class ReportingModeType : std::uint8_t { kOff, kBrief, kDetailed, kBriefBypassingFilters, kDetailedBypassingFilters };
Headerara/idsm/common.h

Enumeration der Melde-Modi.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_AIDSM_10207
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10207@rel:R25-11#b3d04dca
Content hash
b3d04dca
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10207
Status: valid/unmigrated Version: rel:R25-11#dff46ac3 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_AIDSM_10207@rel:R25-11#dff46ac3
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#94f7a6052026-09-30
  • R24-11rel:R24-11#be3fd95a2026-10-14
  • R25-11rel:R25-11#dff46ac32026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

枚举 IdsmErrc [SWS_AIDSM_10204]

enum class IdsmErrc : ara::core::ErrorDomain::CodeType { kUnknownEventId = 3 };
Headerara/idsm/idsm_error_domain.h
Upstream-AnforderungRS_AP_00130, RS_AP_00122, RS_AP_00127

Fehlercodes der IdsmErrorDomain.

AI 生成 未审核 模型: gemini-3.8-flash-medium · 推理强度: medium · 温度: 不可控 · 提示词: 58b3761a5fdb 来源 未决问题(1)
译自德文指南gemini-3.8-flash-low · 2026-10-13 · 德文原文

使用与目的

枚举 IdsmErrc 表示 IdsM 错误域的错误代码(头文件 ara/idsm/idsm_error_domain.h),并基于基础类型 ara::core::ErrorDomain::CodeType [SWS_AIDSM_10204]。为了在客户端应用程序中进行紧凑处理,AUTOSAR 提供了类型相同的别名 Errc [SWS_AIDSM_10707]。为了集成到 AUTOSAR Adaptive 的标准化错误处理模型中,提供了函数 MakeErrorCode:它将错误代码与供应商特定的附加数据(SupportDataType)一起以 noexcept 方式转换为 ara::core::ErrorCode 对象 [SWS_AIDSM_10703]。

错误代码与交互

该规范定义了具体的错误值:

  • kUnknownEventId = 3:指示传入的 eventId 未被 Intrusion Detection System Manager 识别为已配置的安全事件 [SWS_AIDSM_10204]。

此代码在同步接口中作为错误状态在返回类型 ara::core::Result 内传递。如果寻址了未配置的事件,则无论是通过 GetReportingMode [SWS_AIDSM_10602] 查询报告模式还是通过 SetReportingMode [SWS_AIDSM_10603] 更新报告模式,都会因 IdsmErrc::kUnknownEventId 而失败。Interpretation:鉴于显式分配了值 3,推测值 1 和 2 保留供该域内部使用或将来使用的错误状态。 问题 Q-374e315b0ea6d0c7 (未决)

并发性与限制

用于创建错误对象的辅助函数 MakeErrorCode 是线程安全的(thread-safe),并被标为 constexpr [SWS_AIDSM_10703]。与此相反,返回这些错误状态的 reporting_mode_provider.h 操作函数(GetReportingMode [SWS_AIDSM_10602] 以及 SetReportingMode [SWS_AIDSM_10603])被显式声明为非线程安全(not thread-safe)。因此,并行调用必须由调用方进行同步。

本文由 AI 基于规范文档编写。

实现者指南即将推出(复杂度 I1)

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_AIDSM_10204
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10204@rel:R25-11#868e5cd0
Content hash
868e5cd0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10204
Status: valid/unmigrated Version: rel:R25-11#13e7a36c Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_AIDSM_10204@rel:R25-11#13e7a36c
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#693b2e612026-09-30
  • R23-11rel:R23-11#e8bd68a92026-10-14
  • R24-11rel:R24-11#cd8df1812026-10-14
  • R25-11rel:R25-11#13e7a36c2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

类型别名

类型别名 ContextDataType [SWS_AIDSM_10201]

using ContextDataType = ara::core::Span<const std::uint8_t>;
Headerara/idsm/common.h

Kontextdaten zur Übergabe an IdsM.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_AIDSM_10201
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10201@rel:R25-11#69999021
Content hash
69999021
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10201
Status: valid/unmigrated Version: rel:R25-11#4fce0afa Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_AIDSM_10201@rel:R25-11#4fce0afa
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#0512ae3d2026-09-30
  • R20-11rel:R20-11#4b6a57072026-10-14
  • R21-11rel:R21-11#4b6a57072026-10-14
  • R22-11rel:R22-11#c77fa2c12026-10-14
  • R23-11rel:R23-11#4c6918d12026-10-14
  • R24-11rel:R24-11#4fce0afa2026-10-14
  • R25-11rel:R25-11#4fce0afa2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

类型别名 CountType [SWS_AIDSM_10203]

using CountType = std::uint16_t;
Headerara/idsm/common.h

Optionaler Zähler für vorqualifizierte Ereignisvorkommen.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_AIDSM_10203
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10203@rel:R25-11#6e4e7e0f
Content hash
6e4e7e0f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10203
Status: valid/unmigrated Version: rel:R25-11#ac4a6b12 Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_AIDSM_10203@rel:R25-11#ac4a6b12
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#90e7e5da2026-09-30
  • R20-11rel:R20-11#6ccaf6f12026-10-14
  • R21-11rel:R21-11#6ccaf6f12026-10-14
  • R22-11rel:R22-11#b41f73d32026-10-14
  • R23-11rel:R23-11#74c0f2a12026-10-14
  • R24-11rel:R24-11#74c0f2a12026-10-14
  • R25-11rel:R25-11#ac4a6b122026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

类型别名 EventIdType [SWS_AIDSM_10205]

using EventIdType = std::uint16_t;
Headerara/idsm/common.h

Typ einer Ereignis-ID.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_AIDSM_10205
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10205@rel:R25-11#fe8d44d8
Content hash
fe8d44d8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10205
Status: valid/unmigrated Version: rel:R25-11#dac07242 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_AIDSM_10205@rel:R25-11#dac07242
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#bf8a20342026-09-30
  • R23-11rel:R23-11#dac072422026-10-14
  • R24-11rel:R24-11#c046b6272026-10-14
  • R25-11rel:R25-11#dac072422026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

类型别名 TimestampType [SWS_AIDSM_10202]

using TimestampType = std::uint64_t;
Headerara/idsm/common.h

Optionaler sensorspezifischer Zeitstempeltyp.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_AIDSM_10202
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10202@rel:R25-11#a8e9890b
Content hash
a8e9890b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10202
Status: valid/unmigrated Version: rel:R25-11#a57229f2 Versionshistorie & Revisions (1 transition, 7 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_AIDSM_10202@rel:R25-11#a57229f2
Point-in-Time History:
Recorded Revisions (7):
  • R25-11rel:R25-11#ff18bc232026-09-30
  • R20-11rel:R20-11#7c87d6bf2026-10-14
  • R21-11rel:R21-11#1d09e5db2026-10-14
  • R22-11rel:R22-11#fe26fdd52026-10-14
  • R23-11rel:R23-11#a57229f22026-10-14
  • R24-11rel:R24-11#a57229f22026-10-14
  • R25-11rel:R25-11#a57229f22026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

类型别名 VersionedContextDataType [SWS_AIDSM_10206]

using VersionedContextDataType = std::pair<ContextDataType, std::uint16_t>;
Headerara/idsm/common.h

Versionierte Kontextdaten für IdsM.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_AIDSM_10206
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10206@rel:R25-11#bca43130
Content hash
bca43130
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10206
Status: valid/unmigrated Version: rel:R25-11#fb380948 Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_AIDSM_10206@rel:R25-11#fb380948
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#0f8403ff2026-09-30
  • R24-11rel:R24-11#fb3809482026-10-14
  • R25-11rel:R25-11#fb3809482026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

自由函数文档

函数 GetIdsmErrorDomain [SWS_AIDSM_10702]

constexpr const ara::core::ErrorDomain& GetIdsmErrorDomain() noexcept;
Headerara/idsm/idsm_error_domain.h
Upstream-AnforderungRS_AP_00120, RS_AP_00130
Thread Safetythread-safe
Rückgabeconst ara::core::ErrorDomain&

Liefert die IdsmErrorDomain.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_AIDSM_10702
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10702@rel:R25-11#c096a1a4
Content hash
c096a1a4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10702
Status: valid/unmigrated Version: rel:R25-11#6f8411ca Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_AIDSM_10702@rel:R25-11#6f8411ca
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#2184fd6c2026-09-30
  • R24-11rel:R24-11#6f8411ca2026-10-14
  • R25-11rel:R25-11#6f8411ca2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

函数 MakeErrorCode [SWS_AIDSM_10703]

constexpr ara::core::ErrorCode MakeErrorCode(ara::idsm::IdsmErrc code, ara::core::ErrorDomain::SupportDataType data) noexcept;
Headerara/idsm/idsm_error_domain.h
Upstream-AnforderungRS_AP_00120, RS_AP_00121, RS_AP_00130
Thread Safetythread-safe
Rückgabeara::core::ErrorCode

Erzeugt einen ErrorCode aus IdsmErrc und SupportData.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_AIDSM_10703
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_AIDSM_10703@rel:R25-11#8ebd116d
Content hash
8ebd116d
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_IntrusionDetectionSystemManager.pdf#nameddest=SWS_AIDSM_10703
Status: valid/unmigrated Version: rel:R25-11#3a30bc7a Versionshistorie & Revisions (1 transition, 3 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_AIDSM_10703@rel:R25-11#3a30bc7a
Point-in-Time History:
Recorded Revisions (3):
  • R25-11rel:R25-11#c506d5062026-09-30
  • R24-11rel:R24-11#3a30bc7a2026-10-14
  • R25-11rel:R25-11#3a30bc7a2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill