Affected Code
affected_code
The Affected Code object describes details about a code block identified as vulnerable.
Contents
Attributes
Caption | Name | Type | Is Array | Default | Description |
---|---|---|---|---|---|
End Line | end_line | Integer | The line number of the last line of code block identified as vulnerable. | ||
File | file | File | Details about the file that contains the affected code block. | ||
Owner | owner | User | Details about the user that owns the affected file. | ||
Raw Data | raw_data | JSON | The event data as received from the event source. | ||
Record ID | record_id | String | 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 Data | unmapped | Unmapped | The attributes that are not mapped to the event schema. The names and values of those attributes are specific to the event source. |
References
Referenced By
Context
JSON
{
"caption": "Affected Code",
"description": "The Affected Code object describes details about a code block identified as vulnerable.",
"extends": "object",
"name": "affected_code",
"attributes": {
"end_line": {
"requirement": "recommended",
"caption": "End Line",
"description": "The line number of the last line of code block identified as vulnerable.",
"type": "integer_t"
},
"file": {
"description": "Details about the file that contains the affected code block.",
"requirement": "required",
"caption": "File",
"type": "file"
},
"owner": {
"description": "Details about the user that owns the affected file.",
"requirement": "optional",
"caption": "Owner",
"type": "user"
},
"remediation": {
"requirement": "optional",
"caption": "Remediation Guidance",
"description": "Describes the recommended remediation steps to address identified issue(s).",
"type": "remediation"
},
"start_line": {
"requirement": "recommended",
"caption": "Start Line",
"description": "The line number of the first line of code block identified as vulnerable.",
"type": "integer_t"
},
"raw_data": {
"group": "context",
"caption": "Raw Data",
"description": "The event data as received from the event source.",
"type": "json_t"
},
"record_id": {
"description": "Unique identifier for the object",
"group": "primary",
"requirement": "required",
"caption": "Record ID",
"type": "string_t"
},
"unmapped": {
"caption": "Unmapped Data",
"description": "The attributes that are not mapped to the event schema. The names and values of those attributes are specific to the event source.",
"type": "unmapped",
"is_array": true
}
}
}