Fix page change detection sensitivity with threat-triggered adaptive re-scanning#1
Fix page change detection sensitivity with threat-triggered adaptive re-scanning#1
Conversation
…hing content - Add page source hash comparison to detect real content changes - Schedule 1-2 follow-up scans when threats detected (800ms, 2000ms delays) - Use shorter cooldown (500ms) for threat-triggered re-scans vs DOM changes (1200ms) - Track threat-triggered re-scan count separately from total scan count - Clear scheduled re-scans on page unload and DOM monitoring stop - Prevent redundant scans with page source hash comparison Co-authored-by: Zacgoose <107489668+Zacgoose@users.noreply.github.com>
Add test page to verify threat-triggered re-scanning catches late-loading phishing content. Page simulates realistic phishing behavior with content loading in phases: - 500ms: hide loading message - 1500ms: show Microsoft 365 login form + devtools blocking - 2500ms: add hidden tracking elements Update test index with instructions for testing the new feature. Co-authored-by: Zacgoose <107489668+Zacgoose@users.noreply.github.com>
|
@copilot 🔄 Updating verdict for tab 1856462488: not-evaluated → not-evaluated |
Extension only detected partial threats on initial page load (e.g., bad URL) but missed late-loading phishing content like devtools blocking. Manual re-scan found all indicators. Root cause: initial scan ran before dynamic content fully loaded.
Solution: Threat-Triggered Adaptive Re-scanning
When threats detected, automatically schedule follow-up scans at strategic intervals to catch late-loading content:
Implementation
New scan strategy:
Page change detection:
Smart rate limiting:
Safeguards:
Files Changed
scripts/content.js: Add threat-triggered re-scan logic, page hash comparison, smart rate limitingtest-pages/phishing-delayed-load.html: Test page with progressive content loading (500ms → 1500ms → 2500ms)test-pages/index.html: Updated test instructionsTesting
Load
test-pages/phishing-delayed-load.htmlwith DevTools console open to observe:Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.