Affected Code

affected_code

The Affected Code object describes details about a code block identified as vulnerable.

Attributes

CaptionNameTypeDescription
End Line end_line Integer The line number of the last line of code block identified as vulnerable.
File file File[] Entity:FILE
Details about the file that contains the affected code block.
Owner owner User[] Entity:USER
Details about the user that owns the affected file.
Raw Data raw_data JSON Group:context
The event data as received from the event source.
Record ID record_id String Group:primary
Unique identifier for the object
Remediation Guidance remediation Remediation[] Describes the recommended remediation steps to address identified issue(s).
Start Line start_line Integer The line number of the first line of code block identified as vulnerable.
Unmapped unmapped Unmapped[] Data from the source that was not mapped into the schema.

Relationships

Affected Code shown in context

Inbound Relationships

These objects and events reference Affected Code in their attributes:

Outbound Relationships

Affected Code references the following objects and events in its attributes:

This page describes ocsf-1.4.0