From 8bc4c8be7040ec8d5ff824b652b5131228087d2b Mon Sep 17 00:00:00 2001 From: AugmentedMode <31675118+AugmentedMode@users.noreply.github.com> Date: Fri, 25 Oct 2024 09:43:31 -0400 Subject: [PATCH] chore: lower c2 blocklist fetch interval (#4850) ## Explanation The current C2 domain blocklist fetch interval is set to 15 minutes. After discussing with Samczsun, we determined it's best to lower this interval, as drainers have started switching C2s more quickly since C2 detection was rolled out. This update only affects the fetch interval for the C2 blocklist. ## References ## Changelog ### @metamask/phishing-controller - **CHANGED**: Lowered the C2_DOMAIN_BLOCKLIST_REFRESH_INTERVAL from 15 minutes to 5 minutes. ## Checklist - [x] I've updated the test suite for new or updated code as appropriate - [x] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [x] I've highlighted breaking changes using the "BREAKING" category above as appropriate - [x] I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes --- packages/phishing-controller/src/PhishingController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/phishing-controller/src/PhishingController.ts b/packages/phishing-controller/src/PhishingController.ts index 6b46725515..cdf8eaab23 100644 --- a/packages/phishing-controller/src/PhishingController.ts +++ b/packages/phishing-controller/src/PhishingController.ts @@ -28,7 +28,7 @@ export const CLIENT_SIDE_DETECION_BASE_URL = 'https://client-side-detection.api.cx.metamask.io'; export const C2_DOMAIN_BLOCKLIST_ENDPOINT = '/v1/request-blocklist'; -export const C2_DOMAIN_BLOCKLIST_REFRESH_INTERVAL = 15 * 60; // 15 mins in seconds +export const C2_DOMAIN_BLOCKLIST_REFRESH_INTERVAL = 5 * 60; // 5 mins in seconds export const HOTLIST_REFRESH_INTERVAL = 5 * 60; // 5 mins in seconds export const STALELIST_REFRESH_INTERVAL = 30 * 24 * 60 * 60; // 30 days in seconds