steampipe plugin install gabrielsoltz/semgrep

Table: semgrep_sca_finding

Semgrep findings from the Semgrep SCA (Supply Chain) module.

Examples

List all SCA findings

select
id,
state,
repository,
triage_state,
severity,
confidence,
rule
from
semgrep_sca_finding;

Group SCA findings by severity for repository gabrielsoltz/steampipe-plugin-semgrep

select
count(*) as findings,
severity
from
semgrep_sca_finding
where
repository ->> 'name' = 'gabrielsoltz/steampipe-plugin-semgrep'
group by
severity;

Schema for semgrep_sca_finding

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form.
categoriesjsonbThe categories of the finding as classified by the associated rule metdata.
confidencetextConfidence of the finding, derived from the rule that triggered it.
created_attimestamp with time zoneThe timestamp when this finding was created.
deployment_slugtext=Sanitized machine-readable name of the deployment.
epss_scorejsonbExpected Probability and Severity score of the finding.
external_ticketjsonbExternal ticket associated with finding.
first_seen_scan_idbigintUnique ID of the Semgrep scan that first identified this finding.
fix_recommendationjsonbFix recommendation for the finding.
found_dependencyjsonbThe dependency that was found to be vulnerable.
idtextUnique ID of this finding.
line_of_code_urltextThe source URL including file and line number..
locationjsonbLocation of the record in a file, as reported by Semgrep. If null, then the information does not exist or lacks integrity (older or broken scans).
match_based_idtextID calculated based on a finding's file path, rule id, and the rule index.
reachabilitytextReachability of the finding.
reachable_conditionstextReachability conditions of the finding.
reftextExternal reference to the source of this finding (e.g. PR).
relevant_sincetimestamp with time zoneThe timestamp when this finding was detected by Semgrep (the first time, or when reintroduced).
repositoryjsonbWhich repository is this finding a part of, defined via name.
rulejsonbRule that applies to this finding.
severitytextSeverity of the finding, derived from the rule that triggered it. Low is equivalent to INFO, Medium to WARNING, and High to ERROR.
sp_connection_nametext=, !=, ~~, ~~*, !~~, !~~*Steampipe connection name.
sp_ctxjsonbSteampipe context in JSON form.
statetextThe finding's resolution state. Managed only by changes detected at scan time, the state is combined with triage_state to ultimately determine a final status which is exposed in the UI and API.
state_updated_attimestamp with time zoneWhen this issue's state (resolution state) was last updated, as distinct from when the issue was triaged (triaged_at).
statustextThe finding's status as exposed in the UI. Status is a derived property combining information from the finding state and triage_state. The triage_state can be used to override the scan state if the finding is still detected.
syntactic_idtextID calculated based on a finding's file path, rule identifier and matched code, and index.
triage_commenttextThe detailed comment provided during triage.
triage_reasontextReason provided when this issue was triaged.
triage_statetextThe finding's triage state. Set by the user and used along with state to generate the final status viewable in the UI.
triaged_attimestamp with time zoneWhen the finding was triaged.
usagejsonbUsage of the dependency that was found to be vulnerable.
vulnerability_identifiertextIdentifier of the vulnerability that this finding is associated with.