Skip to content

Add version-to-version risk and permission diff tracking for rescanned extensions #179

@Meghraj-100

Description

@Meghraj-100

Description

ExtensionShield evaluates extensions at a single point in time. The database (src/extension_shield/api/database.py) stores scan results and the manifest parser extracts version information, but there is no mechanism to compare risk scores or permission sets between successive scans of the same extension.

This leaves a blind spot for supply chain compromise via extension updates:

  1. Developer publishes a safe extension, accumulates a large user base
  2. A subsequent update introduces dangerous permissions and data exfiltration code
  3. Users receive the update automatically and are compromised

Problem

  • No version-to-version comparison of risk scores or permissions
  • An extension can go from "Safe" (score 85) to "Unsafe" (score 35) after an update with no historical context shown
  • Cannot detect newly added dangerous permissions between versions

Expected Behavior

  • Re-scanning an extension should compare results with the most recent previous scan
  • Significant score drops or newly added dangerous permissions should trigger alerts
  • Users should be able to see a risk timeline showing score progression across versions

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions