Risk scoring
Understand the governance score, partial scores, LLM-enhanced analysis, and suggested risks.
Overview
The governance score (AGRS) grades scan findings across multiple risk dimensions into a single score (0 to 100) and letter grade (A through F). Higher is better: 100 means no penalties. It gives your team a quick read on the governance risk of a scanned repository.
Every completed scan gets a score automatically, whether you started it, it ran on a schedule, or a webhook triggered it. The score appears on the scan completion card, in Scan results and on the scan details page. Turn on LLM-enhanced analysis for written summaries, recommendations and suggested risks.
Score cards
Four cards display across the top of the scan details page:
- Governance score: Score from 0 to 100 with a risk label: Low risk (80+), Moderate risk (60 to 79), or High risk (below 60). A partial score shows why instead (see below).
- Grade: Letter grade from A (Excellent) to F (Critical), with the calculation timestamp
- Dimensions at risk: Count of dimensions scoring below the 70-point threshold
- Dimension breakdown: Horizontal progress bars showing the score for each risk dimension
Risk dimensions
The score is made up of 5 weighted dimensions. Each starts at 100 and gets penalties based on what the scan finds. The engine treats inventory items (libraries, dependencies, API calls) differently from risk indicators (secrets, vulnerabilities). Inventory items only penalize when they're medium or high risk; low-risk ones are informational and don't affect the score. Vulnerability findings always count.
- Data sovereignty: Penalized when data goes to external cloud AI providers. Calls to cloud provider APIs, RAG components, and prompt injection, PII exposure and model theft findings count.
- Transparency: Penalized when AI usage is hard to explain or audit. Model references, AI libraries, and jailbreak and overreliance findings add up.
- Security: Penalized by hardcoded secrets, calls to AI provider APIs and LLM vulnerability findings such as prompt injection. Each finding's penalty depends on its type, confidence and risk level. Model file security findings are listed in the Security tab but don't change the score.
- Autonomy: Penalized when autonomous AI agents show up. Agent frameworks, MCP servers and tool-using agents increase this dimension's risk.
- Supply chain: Penalized by external dependencies and third-party AI components. Dependencies, libraries, API calls, and supply chain and training data poisoning findings add to it.
Hover over any dimension bar in the breakdown card to see the top contributors to that dimension's penalties.
Grade scale
| Grade | Score range | Label |
|---|---|---|
| A | 90 to 100 | Excellent: minimal governance risk |
| B | 80 to 89 | Good: low governance risk |
| C | 70 to 79 | Acceptable: some areas need attention |
| D | 60 to 69 | Needs attention: significant governance gaps |
| F | 0 to 59 | Critical: immediate action needed |
Partial scores
LLM vulnerability checks feed the score. When they didn't run for a scan, the score only reflects the rest of the findings, so it's marked partial. The score card says why, for example Partial: vulnerability checks off, and links to the setting. The grade stays visible, labelled Grade (partial), and Scan results shows a Partial marker next to the score.
- Vulnerability checks off: Vulnerability detection is off or hasn't been turned on yet, AI detection has no LLM key, or every vulnerability type is turned off. Turn it on in AI Detection β Scan settings β Risk scoring, then scan again.
- Vulnerability checks didn't finish: The checks were on but the LLM analysis failed for some or all vulnerability types, for example because the key no longer works. Findings from the types that finished are still listed, but the scan wasn't fully checked.
- Changed files not checked for vulnerabilities: Incremental scans don't run the checks. Vulnerability findings for unchanged files carry over from the last full scan; changed files weren't checked. Run a full scan for a complete score. When vulnerability detection is off, an incremental scan is marked vulnerability checks off instead.
Recalculating the score
The rule-based score is calculated as the last step of each scan. If it couldn't be calculated, the score card says so. On the scan details page, click Recalculate score to calculate it again. It takes a moment and the page stays usable while it runs.
Recalculate whenever you want, for example after enabling LLM analysis, adjusting dimension weights or changing finding statuses. The old score gets replaced. Recalculating doesn't rerun vulnerability checks; scan again for that.
LLM-enhanced analysis
When enabled in AI Detection β Scan settings β Risk scoring, the scoring engine sends a summary of the findings (the repository name, counts by type and the top findings with their names and providers) to your configured LLM. The LLM returns:
- Narrative summary: A written analysis of the repo's risk posture, with key concerns called out in bold
- Recommendations: Specific steps to improve the score
- Dimension adjustments: Score tweaks based on context that rule-based scoring alone would miss
- Suggested risks: Risk suggestions you can add to your risk register
LLM analysis runs in the background after the rule-based score is saved, so it never holds up a scan. While it runs, the score card reads AI analysis is running and the page refreshes the score when it finishes, on the scan details page and on the scan page right after a scan. Recalculate score is unavailable until it finishes, so each analysis is paid for once. If it doesn't finish, the card says so and the rule-based score stays.
The analysis section appears below the score cards. Click the chevron to expand or collapse it.
Suggested risks
With LLM analysis on, the system may suggest specific risks based on what the scan found. These show up in a collapsible "Suggested risks" section below the analysis.
Each suggestion includes:
- Risk name: Short title for the risk
- Risk dimension: Which AGRS dimension it relates to
- Risk level: A risk level worked out from the suggested likelihood and severity
- Description: What the risk is and what it could affect
- Risk categories: Tags like Cybersecurity risk, Compliance risk, etc.
Adding a suggestion to the risk register
Click Add to risk register on any suggestion to open the risk form with pre-filled values (name, description, category, lifecycle phase, likelihood, severity, impact and mitigation plan). Adjust as needed, then save.
The review notes field gets filled in automatically with a reference to the scan (for example "Suggested by AI Detection scan #12 (acme/app).") and the findings behind the suggestion.
When you save, the risk is created and linked to the suggestion in one step, and the link is saved on the scan, so it stays handled after a reload. A suggestion that is already linked to a risk can't be added again: if someone else added it in the meantime, you see a message and the suggestion shows as added. If that risk is later deleted, the suggestion is offered again.
Ignoring suggestions
Click Ignore on a suggestion and pick a reason: "This has already been added before" or "This is not a real risk". The reason is saved with the suggestion. Ignoring a suggestion doesn't change the score. Ignore, Restore and Add to risk register are shown only to users whose role can edit AI Detection; Add to risk register also needs permission to edit risks.
Added and ignored suggestions
Handled suggestions are summarised in one line, such as "2 added to the risk register, 1 ignored". Click Show added to see the added ones, each marked "Added to risk register" with a View risk link that opens the risk. Click Show ignored to see the ignored ones with their reason; click Restore to bring an ignored suggestion back to the list.
This record belongs to the scan. A new scan of the same repository gets its own suggestions, so check the risk register before adding one that looks familiar.
Cross-referencing findings
After a scan finishes, the system cross-references vulnerability findings with non-vulnerability findings (libraries, agents, security) in the same files. Matched findings get a teal "Cross-ref" badge in the Vulnerabilities tab, so you can see related detections together. For example, a prompt injection finding in the same file as a LangChain library finding.
Customizing dimension weights
Go to AI Detection β Scan settings β Risk scoring to adjust dimension weights. Use the sliders to shift weight between dimensions (they must total 100%). Click Save, then recalculate existing scores to apply the new weights.