Skip to content

feat: add risk-based prioritization engine#155

Open
ChaudhariPiyush15 wants to merge 1 commit into
ionfwsrijan:mainfrom
ChaudhariPiyush15:main
Open

feat: add risk-based prioritization engine#155
ChaudhariPiyush15 wants to merge 1 commit into
ionfwsrijan:mainfrom
ChaudhariPiyush15:main

Conversation

@ChaudhariPiyush15

Copy link
Copy Markdown

Description

Implements Issue #143: Risk-Based Prioritization Engine.

Backend

  • Added risk_score calculation based on severity, category, ML score, and reachability
  • Preserved existing ML ranking behavior
  • Added risk_score persistence in the database
  • Exposed risk_score through findings API responses

Frontend

  • Added risk score support to TypeScript models
  • Added risk score display and sorting in findings UI

Evidence Pack

  • Added prioritized findings reporting

Database

  • Added risk_score column
  • Added migration support for existing databases

Closes #143

@github-actions github-actions Bot added backend Backend issues frontend Frontend issues SSoC26 needs-work Work needed labels Jun 22, 2026
@github-actions

Copy link
Copy Markdown

⚠️ Automated Check: This PR does not strictly follow the required template. Please ensure you have not deleted any checkboxes or mandatory headings, and that you have written explanations under What this PR does and How did you test this?.

Correct PR Template

Please copy and paste the raw template below into your PR description and fill it out:

> **Before opening:** make sure there is an issue tracking this work, and link it below. PRs without a linked issue may be closed without review.

## Linked issue

Closes #

## What this PR does



## Type of change

- [ ] Bug fix
- [ ] New feature
- [ ] ML model / training pipeline
- [ ] Refactor (no behaviour change)
- [ ] Documentation
- [ ] Tests only

## ML tier (if applicable)

- [ ] Tier 1 — Triage
- [ ] Tier 2 — Predictive
- [ ] Tier 3 — Autonomous
- [ ] Not ML-related

## Stack affected

- [ ] Backend
- [ ] Frontend
- [ ] Both

---

## Changes

### Backend



-

### Frontend



-

### New dependencies



-

### Database / schema changes



-

---

## Testing

**How did you test this?**



**Checklist**

- [ ] Tested locally end-to-end (upload ZIP or GitHub URL → scan → findings returned correctly)
- [ ] New ML model falls back gracefully when model file is absent
- [ ] No new `console.error` or unhandled Python exceptions introduced
- [ ] Added or updated tests where applicable
- [ ] `requirements.txt` / `package.json` updated if new dependencies added
- [ ] New model files (`.pkl`, `.pt`, etc.) are gitignored, not committed

---

## Anything reviewers should focus on



## Screenshots (if UI changed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Backend issues frontend Frontend issues needs-work Work needed SSoC26

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ML-Tier?] Risk-Based Prioritization Engine for Security Findings

1 participant