This part of the project focuses on defining the required telemetry to gather security context of different behaviors that happen in a network environment. Network behaviors are described using data entities and the interaction or relationships among them. These relationships and its metadata may facilitate the creation of data analytics and validate detection of adversary techniques. We have also extended this concept to the MITRE-ATT&CK framework.
We document relationships metadata in YAML format (.yml extension) using the following schema:
a) General Metadata
Metadata that help to identify and describe the relationship
Field
Mandatory
Data Type
Description
Example
relationship_id
Yes
String
ID that uniquely identifies a relationship. It considers three components: string REL + creation year + sequence number (4 digits) that is restarted every year.This field is not required when contributing a relationship yaml file because it is added using a Python script.
REL-2022-0175
name
Yes
String
Name of the relationship that describes the activity around data entities. Usually, entities' names have the first character of earch word capitalized.
Process created Process
contributors
Yes
List of Strings
People that helped with the creation or update of yaml files. Additional context can be provided such as Twitter handle.
Jose Rodriguez @Cyb3rPandaH
references
No
List of Strings
Any web link that could provide more context about the relationship and\or security events mapped to it.
Any comment or note that could help to get a better understanding of the relationship YAML file and/or security events mapped to it.
For event 4688 - You must enable "Administrative Templates\System\Audit Process Creation\Include command line in process creation events" group policy to include command line in process creation events.
b) ATT&CK Data Sources Mapping (attack)
Metadata that describes the mapping of relationships to Data Sources and Data Components from the MITRE-ATT&CK framework.
This section of the YAML file is not mandatory, and it should be described using a Dictionary.
Field
Mandatory
Data Type
Description
Example
data_source
No
String
ATT&CK data source
process
data_component
No
String
ATT&CK data component
process creation
c) Network Environment Behavior (behavior)
Metadata that describes the interaction among entities. It considers three components: source entity, relationship, and target entity. Entities' names are aligned with the OSSEM Common Data Model project.
This sections of the YAML file is mandatory, and it should be described using a Dictionary.
Field
Mandatory
Data Type
Description
Example
source
Yes
String
Usually the entity that performs the activity.
process
relationship
Yes
String
Action or activity performed or related to source entity
created
target
Yes
String
Usually the entity affected by the activity
process
d) Security Telemetry Mapping (security_events)
Metadata that describes the mapping of security telemetry to relationships.
This section of the YAML file is mandatory, and it should be described using a List of Dictionaries, where each dictionary represents a specific event log or source of data.
Even though this section is mandatory, some of the fields within this section are not since they only apply for specific telemetry sources.
We use fields audit_category, audit_sub_category, and channel when mapping Microsoft Windows Security Auditing events.
We use field audit_category in Windows Sysmon events in order to populate the Enable Commands columns of the ATT&CK CSV file
We use field filter_in to provide additional context when an event log or telemetry source describes multiple objects or actions using the same schema. A good example of this is Windows Security Auditing event 4656, where the object context varies based on the ObjectType field (Process, Key, Service, etc).
Field
Mandatory
Data Type
Description
Example
event_id
Yes
String
ID uniquely identifies and differentiate events from the same source.
'4688'
name
Yes
String
Name of the event. Is some cases, it might be similar to its ID.
A new process has been created.
platform
Yes
String
Operating system or application where the event can be collected.
Windows
audit_cateogry
No
String
Windows related field. It describes the audit policy subcategory an event belongs to.
Detailed Tracking
audit_sub_category
No
String
Windows related field. It describes the audit policy subcategory an event belongs to.
Process Creation
channel
No
String
Windows related field. It describes a group of events for a target audience. They belong to one of the four types: admin, operational, analytic, and debug.
Security
log_source
Yes
String
Describes the source that provides an event or we can collect the event from. In Windows environments, for ETW-based events, this field represent the Provider.
Microsoft-Windows-Security-Auditing
filter_in
No
List of Dictionaries
For events that use the same schema and provide different security context based on the activity or the object they are describing. For example: DeviceProcessEvents from Microsoft Defender for Endpoint provides different context based on field ActionType. Another example would be event 4656 from Microsoft Windows Security Auditing because the context is different based on field ObjectType.
ActionType: ProcessCreated
event_version
No
List of Strings
This information help us when relating OSSEM-DM with OSSEM-DD. If event metadata contains a version, this means that there is an OSSEM dictionary available. For now, this field is not required when contributing a relationship yaml file.
'2'
Contribution Example
Here is YAML example that you can use as a reference when contributing relationships:
name: Process created Processcontributors:
- Jose Rodriguez @Cyb3rPandaHattack:
data_source: processdata_component: process creationbehavior:
source: processrelationship: createdtarget: processsecurity_events:
- event_id: '4688'name: A new process has been created.platform: windowsaudit_category: Detailed Trackingaudit_sub_category: Process Creationchannel: Securitylog_source: Microsoft-Windows-Security-Auditingevent_version:
- '2'
- event_id: DeviceProcessEventsname: DeviceProcessEventsplatform: windowslog_source: Microsoft Defender for Endpointfilter_in:
- ActionType: ProcessCreatedevent_version:
- '1'
- event_id: '1'name: Process Creation.platform: windowsaudit_category: ProcessCreatechannel: Microsoft-Windows-Sysmon/Operationallog_source: Microsoft-Windows-Sysmonevent_version:
- '4.32'references:
- https://learn.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4688
- https://learn.microsoft.com/en-us/sysinternals/downloads/sysmon#event-id-1-process-creationnotes:
- For event 4688 - You must enable "Administrative Templates\System\Audit Process Creation\Include command line in process creation events" group policy to include command line in process creation events.