ScoreBadgeComponent

Score badge component displaying evidence flags with icons and labels.

Overview

The ScoreBadgeComponent displays evidence quality flags that provide context about score reliability and data sources.

Selector

<stella-score-badge />

Inputs

InputTypeDefaultDescription
typeScoreFlagrequiredThe flag type to display
size'sm' | 'md''md'Size variant
showTooltipbooleantrueShow description on hover
showLabelbooleantrueShow label text (false = icon only)

Flag Types

TypeIconColorDescription
live-signalSignal waveGreen (#059669)Active runtime signals detected from deployed environments
proven-pathCheckmarkBlue (#2563EB)Verified reachability path to vulnerable code
vendor-naStrikethroughGray (#6B7280)Vendor has marked as not affected
speculativeQuestion markOrange (#F97316)Evidence is speculative or unconfirmed
anchored[A]Violet (#7C3AED)Score is anchored with DSSE attestation and/or Rekor transparency log
hard-fail[!]Red (#DC2626)Policy hard-fail triggered - requires immediate remediation

Usage Examples

Basic Usage

<stella-score-badge type="live-signal" />

All Flag Types

<stella-score-badge type="live-signal" />
<stella-score-badge type="proven-path" />
<stella-score-badge type="vendor-na" />
<stella-score-badge type="speculative" />
<stella-score-badge type="anchored" />
<stella-score-badge type="hard-fail" />

Size Variants

<stella-score-badge type="proven-path" size="sm" />
<stella-score-badge type="proven-path" size="md" />

Icon-Only Mode

<stella-score-badge type="live-signal" [showLabel]="false" />

With Score Pill

<div class="score-display">
  <stella-score-pill [score]="92" />
  <div class="flags">
    <stella-score-badge type="live-signal" size="sm" />
    <stella-score-badge type="proven-path" size="sm" />
  </div>
</div>

Rendering from Flags Array

@for (flag of scoreResult.flags; track flag) {
  <stella-score-badge [type]="flag" size="sm" />
}

In a Table

<td class="flags-column">
  @for (flag of finding.score?.flags; track flag) {
    <stella-score-badge
      [type]="flag"
      size="sm"
      [showLabel]="false"
    />
  }
</td>

Flag Significance

live-signal (Green - High Confidence)

Indicates the vulnerability affects code that is actively being executed in production. This is the highest confidence indicator and typically elevates priority.

Sources:

proven-path (Blue - Confirmed)

A verified call path from application entry points to the vulnerable function has been confirmed through static or dynamic analysis.

Sources:

vendor-na (Gray - Vendor Override)

The software vendor has issued a VEX statement indicating this vulnerability does not affect their product configuration or version.

Sources:

speculative (Orange - Unconfirmed)

The evidence for this vulnerability is speculative or based on incomplete analysis. Score caps are typically applied.

Sources:

anchored (Violet - Attested)

The score calculation has been cryptographically anchored via DSSE attestation and/or inclusion in a Rekor transparency log. This provides verifiable proof of the score at a specific point in time.

Attestation Types:

Visual Behavior:

hard-fail (Red - Immediate Action)

A policy hard-fail condition has been triggered. This indicates the vulnerability meets criteria for mandatory immediate remediation, bypassing normal triage workflow.

Triggers:

Visual Behavior:

Accessibility

Styling

stella-score-badge {
  --badge-font-size: 12px;
  --badge-padding: 4px 8px;
  --badge-border-radius: 4px;
}

Live Signal Animation

The live-signal badge features a subtle pulse animation to draw attention:

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.live-signal-badge {
  animation: pulse 2s ease-in-out infinite;
}