Hostile 100% chrome 1 installs Download

Search Shield 3.0.2

Search hijacker, deceptive intent

“"Search Shield" lets you choose the types of content you prefer to avoid by selecting predefined categories inside the extension. When a…”

Extension couples external webpage messaging with default search hijackingDNR main-frame search redirect

Evidence

References external extension messaging background.js · line 1
1var background=function(){"use strict";var y,$;function b(n){return n==null||typeof n=="function"?{main:n}:n}const _=n=>new URL(n),x=n=>{let i={};n.startsWith("?")&&(n=n.substring(1));let h=n.split("&");for(let c=0;c<h.length;c++){let d=h[c].split("=");i[d[0]]=decodeURIComponent(d[1])}return i},s=_(chrome.runtime.getManifest().chrome_settings_overrides.search_provider.search_url),U=`${s.hostname.split(".")[1]}.${s.hostname.split(".")[2]}`,R=s.hostname,r=x(s.search),u={domain:U,fullDomain:R,yid:r.s,vert:r.vert,hub:`${s.origin}/wim/gotohub?s=${r.s}&vert=${r.vert}`,uninstall:`${s.origin}/wim/uninstall?s=${r.s}&vert=${r.vert}`,search:`${s.origin}${s.pathname}?category=web&s=${r.s}&vert=${r.vert}`,privacy:`${s.origin}/wim/privacy?s=${r.s}`,checkForUpdate:`${s.origin}/wim/check_for_update/?s=${r.s}`,eula:`${s.origin}/wim/eula?s=${r.s}`,contact:`${s.origin}/wim/contact?s=${r.s}`};async function T(n,i=null){let h="";i&&(h=`&extra=${JSON.stringify(i)}`),chrome.storage.local.get(["checksum"],async c=>{await fetch(`${u.checkForUpdate}${h}&id=${n.toLowerCase()}&checksum=${c.checksum}`,{method:"get",timeout:8e3})})}const C=b(async()=>{chrome.runtime.onInstalled.addListener(async e=>{n(),e.reason==="install"&&(await S(),chrome.storage.local.set({blocked_categories:[]}),chrome.runtime.setUninstallURL(u.uninstall),T("1"))}),chrome.runtime.onMessageExternal.addListener((e,t,o)=>{var l,m;if(e.showThankYou)d(e.showThankYou);else if(e==="open_thank_you_page")(async()=>await h())();else if(e.message==="set_checksum")chrome.storage.local.set({checksum:e.checksum} …
Context-menu click listener background.js · line 1
1:1588… =="validate_checksum")chrome.storage.local.get(["checksum"],a=>{fetch(`https://${u.domain}/wim/validate_checksum?checksum=${a.checksum}`),o(a.checksum)});else if(e.message==="set_setting"&&((l=e.setting)!=null&&l.key)&&((m=e.setting)==null?void 0:m.value)!==void 0){const{key:a,value:w}=e.setting;chrome.storage.local.set({[a]:w})}return!1}),chrome.contextMenus.onClicked.addListener(e=>{switch(e.menuItemId){case"uninstall":i(!1);break;case"privacy":chrome.tabs.create({url:u.privacy});break;case"eula":chrome.tabs.create({url:u.eula});break}});function n(){const e=["page_action","action"];chrome.contextMenus.create({title:"Privacy",type:"normal",id:"privacy",contexts:e}),chrome.contextMenus.create({title:"EUL …
References core Chrome extension APIs background.js · line 1
1:2392… Chrome",type:"normal",id:"uninstall",contexts:e})}function i(e){chrome.management.uninstallSelf({showConfirmDialog:e})}async function h(){const e=await chrome.tabs.query({windowType:"popup"});Array.isArray(e)&&e.forEach(({id:t})=>chrome.tabs.remove(t))}let c=null;function d(e){e.forEach(t=>{c&&chrome.windows.get(c,{},m=>{!chrome.runtime.lastError&&m&&chrome.windows.remove(c),c=null});const o=t.method||"windows";delete t.method;const l=t.action||"create";delete t.action,t.url=t.url||u.hub,o==="windows"?(t.type="popup",t.width=t.w,delete t.w,t.height=t.h,delete t.h,t.left=t.x,delete t.x,t.top=t.y,delete t.y):t.active=t.active||!1,chrome[o][l](t,function(m){c=m.id})})}function f(e,t=null){return new Promise(o=>chrome.storage.local.get([e],l=>o(l.hasOwnProperty(e)?l[e]:t)))}function L(e,t){return new Pr …
Object type field specifies a redirect background.js · line 1
1:3251… ))}async function I(){let e=await f("guid");return e||(e=`ext-${crypto.randomUUID()}`,await L("guid",e)),e}async function S(){const e=await I(),t=E();if(!t||!t.includes("{")){console.warn("Template URL is missing a dynamic placeholder.");return}const o=await M(e,t);await F(o)}async function M(e,t){const o=new URLSearchParams({ext_clickid:e,ext_lang:await f("ext_lang","en"),ext_geo:await f("ext_geo","us"),ext_safe:await f("ext_safe","moderate")}),[l,m]=t.split("?"),a=m.split("&");a[a.length-1]=a[a.length-1].replace(/=[^=]*$/,"=\\1");const w=`${l}?${a.join("&")}&${o.toString()}`,k=[`${u.fullDomain.replace(/\./g,"\\.")}\\/search\\/\\?.*s=${u.yid}.*?q=([^&]*)$`,".*\\/search\\?q=([^&]*)(.*)(.*)\\&(sourceid)=([^&]*)(.*)"];return k.map((D,v)=>({id:v+1,priority:k.length-v,action:{type:"redirect",redirect:{regexSubstitution:w}},condition:{regexFilter:`^https?:\\/\\/${D}`,isUrlFilterCaseSensitive:!1,resourceTypes:["main_frame"]}}))}function E(){var t,o;return((o=(t=chrome.runtime.getManifest().chrome_settings_overrides)==null?void 0:t.search_provider)==null?void 0:o.search_url)||""}async function F(e){const t=e.map(o=>o.id);await chrome.declarativeNetRequest.updateDynamicRules({removeRuleIds:t,addRules:e})}});function Y(){}(($=(y=globalThis.browser)==null?void 0:y.runtime)==null?void 0:$.id)==null?glob …
Chrome default search provider override manifest.json · lines 1–3
1{
2"update_url": "https://clients2.google.com/service/update2/crx",
3"manifest_version":3,"name":"Search Shield","description":"Help users avoid specific types of content by blocking predefined categories during search","version":"3.0.2","short_name":"Search Shield","icons":{"16":"img/icon16.png","48":"img/icon48.png","128":"img/icon128.png"},"chrome_settings_overrides":{"search_provider":{"encoding":"UTF-8","favicon_url":"https://www.safescopesearch.com/favicon.ico","is_default":true,"name":"Shield","keyword":"Search Shield","search_url":"https://www.safescopesearch.com/search/?category=web&s=rnpr&vert=private&q={searchTerms}","suggest_url":"https://sug.safescopesearch.com/v1/sug/?yid=rnpr&vert=private&q={searchTerms}"}},"homepage_url":"https://www.safescopesearch.com/wim/gotohub?s=rnpr","action":{"default_title":"Search Shield","default_popup":"popup.html","default_icon":{"16":"img/icon16.png","48":"img/icon48.png","128":"img/icon128.png"}},"permissions":["contextMenus","cookies","storage","declarativeNetRequest"],"externally_connectable":{"matches":["https://*.safescopesearch.com/*"]},"background":{"service_worker":"background.js"},"host_permissions":["<all_urls>"],"web_accessible_resources":[{"resources":["/img/icon16.png"],"matches":["<all_urls>"]}]}

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.