Affected Code

affected_code

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

Attributes

CaptionNameTypeDescription
End Lineend_lineInteger

The line number of the last line of code block identified as vulnerable.

FilefileFile[]

Entity:FILE
Details about the file that contains the affected code block.

OwnerownerUser[]

Entity:USER
Details about the user that owns the affected file.

Raw Dataraw_dataJSON

Group:context
The event data as received from the event source.

Record IDrecord_idString

Group:primary
Unique identifier for the object

Remediation GuidanceremediationRemediation[]

Describes the recommended remediation steps to address identified issue(s).

Start Linestart_lineInteger

The line number of the first line of code block identified as vulnerable.

UnmappedunmappedUnmapped[]

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