39.2 How Malware Spreads
Malware gharat yesayche common raste (Maharashtra SMB pan same pattern):
- Phishing email / WhatsApp link – fake invoice, "Courier delivery", "IT password reset"
- Drive-by – compromised / shady website silently drops payload (often via browser/plugin bugs)
- USB / removable media – autorun or user double-clicks
salary_sheet.exedisguised as folder - Supply chain – trusted update / vendor software already poisoned (rare but high impact)
- Cracked / pirated software – keygens and "full version" zip = trojan cafe
- Office macros –
.docm/.xlsm"Enable Content" → script downloads payload
Lab awareness: tumhi phishing template awareness class madhe dakhavu shakta – pan real malware link click nako, real payload host var save nako.
| Red team (attacker) does | Blue team (defender) detects / stops |
|---|---|
| Sends invoice-themed phishing with macro or link | Email filtering, attachment sandbox, disable macros by default, user reporting button |
| Leaves infected USB in parking (classic bait) | Disable autorun; USB allowlisting / control; endpoint alerts on new removable media executables |
| Trojans cracked software on file-share sites | Block unknown publishers; company software portal only; hash allowlists |
Ravindra Bagale's Tip
Students say "I'm careful" and then install a cracked plugin on their personal Chrome. One weak home PC + a reused password = a risk to the office. Company rule: software only from the IT portal. Don't worry – changing a habit is protection.
Ravindra Bagale's Tip – मराठी
Students "मी careful आहे" म्हणतात आणि personal Chrome वर cracked plugin लावतात. एक weak home PC + reused password = office ला risk. Company rule: software फक्त IT portal वरून. घाबरू नका – सवय बदलली = बचाव.
Ravindra Bagale's Tip – हिंदी
Students कहते हैं "मैं careful हूँ" और personal Chrome पर cracked plugin लगा लेते हैं. एक weak home PC + reused password = office के लिए risk. Company rule: software सिर्फ़ IT portal से. घबराओ मत – आदत बदली = बचाव.
Practice task
Raja-Rani Traders (Nashik) sathi 8-line user awareness notice Marathi+English mix: macros, USB, cracked apps, phishing. Mag Red vs Blue table madhun 3 spread methods pick karun "control + how we verify" column bhara.
Real incident: Emotet campaigns (public reporting)
Emotet was widely reported as a malware distribution botnet that often arrived via malicious Office documents and links, then dropped further payloads (including ransomware affiliates in later waves – per public vendor/CERT reporting). Weakness theme: macros + user click + weak email controls. Defence: block macros from internet, advanced email filtering, EDR, rapid isolation. Source: CERT-In / CISA / major vendor Emotet advisories (verify).
Extended teaching notes
Why this lesson matters
Malware analysis in this course is defensive: recognise indicators, isolate hosts, preserve evidence. Never run unknown malware on your main OS or on someone else's network.
- Isolate the host from the network.
- Capture volatile data if trained to do so.
- Hash samples; search only in licensed/safe tools.
- Rebuild from a known-good image when unsure.
- Share IOCs with your SOC, not on random chats.
Mini case study
Suppose we are on a purple-team exercise for an Indian mid-size company (sample data). Red notes a technique from this lesson against a lab clone. Blue must show the control that stops it, the log that would have fired, and the ticket that hardens production. That is the standard this course trains you for.
Defender's worksheet (do this today)
- Write the lesson title, date and the exact lab target you are allowed to use.
- List three owned systems (VMs, apps, or cloud accounts) where this lesson applies.
- Run one safe check from the lesson on a lab system only. Paste the command and output.
- Write a two-sentence fix you would give a teammate.
- Name one related public advisory (CERT-In, CISA, NVD, or a vendor bulletin) with its date.
Indian workplace (sample data)
Suppose we are a junior analyst at Infosys, TCS, Wipro or a fintech SOC in Bengaluru/Pune. Turn this lesson into one checklist item with an owner, a due date and a place to store evidence (ticket + screenshot).
Global practice
Compare your notes with OWASP, CIS Benchmarks, NIST CSF/IR guidance or a cloud Well-Architected security question. Write five lines on what overlaps.
Everyday analogy
Explain the risk and the fix to a family member without jargon. If they can repeat the warning, you understand it well enough to teach juniors.
Key terms
- Control: a safeguard (patch, config, process, detection).
- Finding: a weakness backed by evidence.
- Remediation: the fix plus how you verified it.
- Scope: systems you have written permission to touch.
- Least privilege: only the access the task needs.
- Defence in depth: several layers so one failure does not end the story.
Common mistakes
- Skipping written permission "just for a quick scan".
- Practising on hostel, office or public targets without authorisation.
- Collecting tool output without writing the fix.
- Copying attack steps onto production to "verify". Defenders verify with versions, configs and patches.
- Publishing screenshots that contain secrets, cookies or internal hostnames.
Recap
- Evidence, fix, owner, date.
- Own lab only.
- Fix > spectacle.
Real incident: Searchjacked – 319 hidden Chrome extensions with 13.4 million installs took over people’s searches (Oct 2026)
1. What happened
In this lesson you learnt the ways malware reaches a computer. One quiet way is a browser extension. An extension (also called an add-on) is a small program you add to Chrome to give it an extra feature. Example: a button that converts files or blocks ads. A good extension helps you. A bad one can watch or change what you do in the browser.
- On 29 October 2026, John Tuckner of the security company Socket published a report called Searchjacked. BleepingComputer reported it the same day.
- Socket found 319 Chrome extensions with about 13.4 million installs in total. 57 of them, with 6 million users, were first found in April 2025. The new report added 264 more, with another 8.7 million users.
- The extensions pretended to be file converters, manual finders, "safe search" tools and AI search tools. Many were security-themed, like Fire Shield, Securify and WatchTower.
- Their real job was to take over the browser's default search engine. The default search engine is the site that answers when you type words in the address bar. Every search first went to the operators' own server, then to Bing or Yahoo. The operators earned referral money from Bing or Yahoo for each search.
- The extensions were on the official Chrome Web Store, but many were unlisted, so they did not show up when you searched the store. People reached them through ads on websites.
- Socket says a handful of organised operators were behind them, and this trick has run for about ten years. Most of the listed extensions were removed from the store when the report came out, but new ones keep appearing.
2. How the hack happened (public reporting only – high-level)
- A user saw an ad on a website for a "useful" tool, like a manual finder or safe search.
- The ad led to the extension's page on the Chrome Web Store. The user clicked Add to Chrome. Because it was the official store, it looked safe.
- The extension used a normal Chrome setting that lets an extension replace the default search engine. Some extensions had almost no code: only a settings file and icons, and no special permissions.
- From then on, every search went through the operators' server first. That server saw the complete search history, often linked to a unique ID for that user.
- The server then sent the search on to Bing or Yahoo with a partner tag, so the operators got paid.
- The server decides the final page for each search. In one test, six identical searches through one extension (Predator Search) ended in four different places. Socket warns the operators could switch some searches to a phishing page or a malware download at any time, without changing the extension at all.
3. How to stop it / defend (this lesson: how malware spreads)
Why: an extension runs inside the browser, where you log in to email, bank and work sites. One bad extension can see a lot, and the official store alone does not make it safe.
Controls you can use:
- Install extensions only when you really need them, and never from an ad. Go to the store yourself and check the publisher name.
- Remove extensions you do not recognise or do not use. Fewer extensions means fewer doors.
- Check your default search engine. If it is not the one you chose, find the extension that changed it, remove it, and set your search engine back.
- For companies: allow only an approved list of extensions through Chrome's admin policy, and block all others. Review the list every few months.
- Run a full antivirus scan after you remove a bad extension, as BleepingComputer advises.
- Teach people that "Add to Chrome" is the same as installing a program. Ask: who made it, why do I need it, and what can it change?
Example 1: see every extension in your Chrome. Run these steps one by one.
- Open Chrome and type
chrome://extensionsin the address bar. Press Enter. - Output: a list of cards. Each card shows the extension name, a short description and an on/off switch.
- Click Details on one card. You see its version, its site access and where it came from.
- What it means: this is the full list of add-ons that run inside your browser. If you did not add one on purpose, or you do not use it, click Remove.
Example 2: check which search engine answers your searches.
- Type
chrome://settings/searchEnginesin the address bar and press Enter. - Output: a section that shows your default search engine, for example Google or Bing.
- If an extension controls it, Chrome shows a note with that extension's name and a button to turn it off.
- What it means: if the default is a name you never chose, an extension took over your searches. Remove that extension and pick your search engine again.
Example 3: on your own Linux computer, find extensions that can replace the search engine.
- Close Chrome and open a terminal.
- Run
grep -l "chrome_settings_overrides" ~/.config/google-chrome/Default/Extensions/*/*/manifest.json - Output: zero or more file paths, like
/home/asha/.config/google-chrome/Default/Extensions/abcdefgh.../1.0.2_0/manifest.json. - What it means: each path is one extension whose settings file asks Chrome to override settings such as the search engine (
chrome_settings_overrides). The long folder name is the extension ID. Match it with the ID on the Details page from Example 1, and keep it only if you trust it. No output means no extension asks for this. On Windows, the same folders are under%LOCALAPPDATA%\Google\Chrome\User Data\Default\Extensions.
4. How to take care so it won't happen again (checklist)
- [ ] I never install a browser extension from an ad or a pop-up.
- [ ] Before I click "Add to Chrome", I check the publisher, the reviews and what the extension can change.
- [ ] Once a month I open
chrome://extensionsand remove anything I do not use or do not recognise. - [ ] My default search engine is the one I chose, and no unknown extension controls it.
- [ ] At work, only approved extensions are allowed by policy, and the list is reviewed regularly.
- [ ] After removing a bad extension, I run a full antivirus scan and change passwords I typed while it was installed, if it could see those pages.
Source: Socket, "Searchjacked: Hidden Browser Extensions Hijack Searches for 13 Million Users" (John Tuckner), 29 October 2026; BleepingComputer, "Chrome extensions with 13.4 million installs caught hijacking searches" (Bill Toulas), 29 October 2026.
1. काय झालं
या lesson मध्ये तुम्ही शिकलात की malware computer पर्यंत कसा पोहोचतो. त्यातला एक शांत मार्ग म्हणजे browser extension. Extension (याला add-on सुद्धा म्हणतात) म्हणजे Chrome ला एखादं जास्तीचं feature देणारा छोटा program. उदाहरण: files convert करणारं किंवा ads थांबवणारं बटण. चांगलं extension मदत करतं. वाईट extension browser मध्ये तुम्ही काय करता ते बघू शकतं किंवा बदलू शकतं.
- 29 ऑक्टोबर 2026 ला security company Socket चे John Tuckner यांनी Searchjacked नावाचा report publish केला. BleepingComputer ने त्याच दिवशी त्याची बातमी दिली.
- Socket ला 319 Chrome extensions सापडले, ज्यांचे एकूण सुमारे 1.34 कोटी (13.4 million) installs होते. यातले 57, 60 लाख users सह, एप्रिल 2025 मध्ये आधी सापडले होते. नव्या report मध्ये आणखी 264 जोडले गेले, आणखी 87 लाख users सह.
- हे extensions स्वतःला file converters, manual finders, "safe search" tools आणि AI search tools म्हणवत होते. बरेच security च्या नावाचे होते, जसं Fire Shield, Securify आणि WatchTower.
- त्यांचं खरं काम होतं browser चं default search engine ताब्यात घेणं. Default search engine म्हणजे address bar मध्ये शब्द टाइप केल्यावर उत्तर देणारी site. प्रत्येक search आधी operators च्या स्वतःच्या server वर जायचा, मग Bing किंवा Yahoo वर. प्रत्येक search साठी operators ना Bing किंवा Yahoo कडून referral पैसे मिळायचे.
- हे extensions अधिकृत Chrome Web Store वर होते, पण बरेच unlisted होते, म्हणजे store मध्ये शोधलं तरी दिसत नव्हते. लोक त्यांच्यापर्यंत websites वरच्या ads मधून पोहोचायचे.
- Socket म्हणतं की यामागे काही मोजके संघटित operators होते, आणि ही युक्ती सुमारे दहा वर्षं चालू आहे. Report आला तेव्हा यादीतले बहुतेक extensions store मधून काढले गेले होते, पण नवीन येतच राहतात.
2. Hack कसा झाला (फक्त public reporting – high-level)
- User ला एखाद्या website वर "उपयोगी" tool ची ad दिसली, जसं manual finder किंवा safe search.
- Ad मधून तो Chrome Web Store वरच्या extension च्या page वर गेला. User ने Add to Chrome click केलं. अधिकृत store असल्यामुळे ते सुरक्षित वाटलं.
- Extension ने Chrome ची एक साधी setting वापरली, जी extension ला default search engine बदलू देते. काही extensions मध्ये जवळजवळ code च नव्हता: फक्त एक settings file आणि icons, आणि कोणत्याही खास permissions नाहीत.
- तेव्हापासून प्रत्येक search आधी operators च्या server मधून जायचा. त्या server ला पूर्ण search history दिसायची, बऱ्याचदा त्या user च्या एका unique ID शी जोडलेली.
- मग server तो search partner tag सह Bing किंवा Yahoo कडे पाठवायचा, म्हणजे operators ना पैसे मिळायचे.
- शेवटचं page कोणतं, हे server प्रत्येक search साठी ठरवतो. एका test मध्ये एका extension (Predator Search) मधून केलेले सहा सारखेच searches चार वेगवेगळ्या ठिकाणी पोहोचले. Socket चा इशारा आहे की operators काही searches कधीही phishing page किंवा malware download कडे वळवू शकतात, extension अजिबात न बदलता.
3. हे कसं थांबवायचं / बचाव (हा lesson: malware कसा पसरतो)
का: extension browser च्या आत चालतं, जिथे तुम्ही email, bank आणि कामाच्या sites वर login करता. एक वाईट extension खूप काही बघू शकतं, आणि फक्त अधिकृत store मुळे ते सुरक्षित होत नाही.
तुम्ही वापरू शकता असे controls:
- खरंच गरज असेल तेव्हाच extensions install करा, आणि ad मधून कधीच नाही. स्वतः store मध्ये जा आणि publisher चं नाव चेक करा.
- ओळखत नसलेले किंवा न वापरणारे extensions काढून टाका. कमी extensions म्हणजे कमी दारं.
- तुमचं default search engine चेक करा. ते तुम्ही निवडलेलं नसेल, तर ते बदलणारं extension शोधा, काढून टाका, आणि search engine परत सेट करा.
- Companies साठी: Chrome च्या admin policy ने फक्त मंजूर extensions ची यादी allow करा, बाकी सगळे block करा. ही यादी दर काही महिन्यांनी चेक करा.
- वाईट extension काढल्यानंतर पूर्ण antivirus scan चालवा, BleepingComputer च्या सल्ल्याप्रमाणे.
- लोकांना शिकवा की "Add to Chrome" म्हणजे एक program install करण्यासारखंच आहे. विचारा: हे कोणी बनवलं, मला याची गरज का आहे, आणि हे काय बदलू शकतं?
Example 1: तुमच्या Chrome मधले सगळे extensions बघा. या steps एक-एक करून करा.
- Chrome उघडा आणि address bar मध्ये
chrome://extensionsटाइप करा. Enter दाबा. - Output: cards ची एक यादी. प्रत्येक card वर extension चं नाव, छोटं वर्णन आणि on/off switch दिसतो.
- एका card वर Details click करा. त्याचं version, त्याला कोणत्या sites पर्यंत access आहे, आणि ते कुठून आलं ते दिसतं.
- याचा अर्थ: ही तुमच्या browser मध्ये चालणाऱ्या सगळ्या add-ons ची पूर्ण यादी आहे. एखादं तुम्ही मुद्दाम जोडलं नसेल, किंवा वापरत नसाल, तर Remove click करा.
Example 2: तुमच्या searches ना कोणतं search engine उत्तर देतं ते चेक करा.
- Address bar मध्ये
chrome://settings/searchEnginesटाइप करा आणि Enter दाबा. - Output: तुमचं default search engine दाखवणारा भाग, उदाहरणार्थ Google किंवा Bing.
- एखादं extension ते control करत असेल, तर Chrome त्या extension चं नाव आणि ते बंद करण्याचं बटण असलेली note दाखवतो.
- याचा अर्थ: default म्हणून तुम्ही कधीच न निवडलेलं नाव दिसत असेल, तर एखाद्या extension ने तुमचे searches ताब्यात घेतले आहेत. ते extension काढा आणि search engine पुन्हा निवडा.
Example 3: तुमच्या स्वतःच्या Linux computer वर search engine बदलू शकणारे extensions शोधा.
- Chrome बंद करा आणि terminal उघडा.
grep -l "chrome_settings_overrides" ~/.config/google-chrome/Default/Extensions/*/*/manifest.jsonrun करा.- Output: शून्य किंवा जास्त file paths, जसं
/home/asha/.config/google-chrome/Default/Extensions/abcdefgh.../1.0.2_0/manifest.json. - याचा अर्थ: प्रत्येक path म्हणजे एक extension, ज्याची settings file Chrome ला search engine सारख्या settings बदलायला सांगते (
chrome_settings_overrides). लांब folder नाव म्हणजे extension ID. ते Example 1 मधल्या Details page वरच्या ID शी जुळवा, आणि विश्वास असेल तरच ठेवा. काहीच output नाही म्हणजे कोणतंही extension हे मागत नाही. Windows वर हेच folders%LOCALAPPDATA%\Google\Chrome\User Data\Default\Extensionsखाली असतात.
4. पुन्हा असं होऊ नये म्हणून काळजी कशी घ्यायची (checklist)
- [ ] मी ad किंवा pop-up मधून कधीच browser extension install करत नाही.
- [ ] "Add to Chrome" click करण्याआधी मी publisher, reviews आणि extension काय बदलू शकतं ते चेक करतो.
- [ ] महिन्यातून एकदा मी
chrome://extensionsउघडतो आणि न वापरणारं किंवा न ओळखणारं सगळं काढून टाकतो. - [ ] माझं default search engine मी निवडलेलंच आहे, आणि कोणतंही अनोळखी extension ते control करत नाही.
- [ ] कामावर policy ने फक्त मंजूर extensions allow आहेत, आणि यादी नियमित चेक केली जाते.
- [ ] वाईट extension काढल्यानंतर मी पूर्ण antivirus scan चालवतो, आणि ते install असताना त्याला दिसू शकणाऱ्या pages वर टाइप केलेले passwords बदलतो.
स्रोत: Socket, "Searchjacked: Hidden Browser Extensions Hijack Searches for 13 Million Users" (John Tuckner), 29 ऑक्टोबर 2026; BleepingComputer, "Chrome extensions with 13.4 million installs caught hijacking searches" (Bill Toulas), 29 ऑक्टोबर 2026.
1. क्या हुआ
इस lesson में आपने सीखा कि malware computer तक कैसे पहुँचता है. इसका एक चुपचाप तरीका है browser extension. Extension (इसे add-on भी कहते हैं) एक छोटा program है जो Chrome को कोई extra feature देता है. उदाहरण: files convert करने वाला या ads रोकने वाला बटन. अच्छा extension मदद करता है. बुरा extension browser में आप जो करते हैं, उसे देख या बदल सकता है.
- 29 अक्टूबर 2026 को security company Socket के John Tuckner ने Searchjacked नाम की report publish की. BleepingComputer ने उसी दिन इसकी खबर दी.
- Socket को 319 Chrome extensions मिले, जिनके कुल लगभग 1.34 करोड़ (13.4 million) installs थे. इनमें से 57, 60 लाख users के साथ, अप्रैल 2025 में पहले मिले थे. नई report में 264 और जोड़े गए, 87 लाख और users के साथ.
- ये extensions खुद को file converters, manual finders, "safe search" tools और AI search tools बताते थे. कई security वाले नामों के थे, जैसे Fire Shield, Securify और WatchTower.
- इनका असली काम था browser का default search engine अपने कब्ज़े में लेना. Default search engine यानी वह site जो address bar में शब्द टाइप करने पर जवाब देती है. हर search पहले operators के अपने server पर जाता था, फिर Bing या Yahoo पर. हर search के लिए operators को Bing या Yahoo से referral पैसे मिलते थे.
- ये extensions official Chrome Web Store पर थे, लेकिन कई unlisted थे, यानी store में खोजने पर नहीं दिखते थे. लोग इन तक websites पर दिखने वाले ads से पहुँचते थे.
- Socket के अनुसार इसके पीछे कुछ गिने-चुने संगठित operators थे, और यह तरकीब लगभग दस साल से चल रही है. Report आने तक लिस्ट के ज़्यादातर extensions store से हटा दिए गए थे, लेकिन नए आते रहते हैं.
2. Hack कैसे हुआ (सिर्फ़ public reporting – high-level)
- User को किसी website पर एक "काम के" tool का ad दिखा, जैसे manual finder या safe search.
- Ad उसे Chrome Web Store पर extension के page तक ले गया. User ने Add to Chrome click किया. Official store होने से यह सुरक्षित लगा.
- Extension ने Chrome की एक आम setting इस्तेमाल की, जो extension को default search engine बदलने देती है. कुछ extensions में लगभग कोई code नहीं था: सिर्फ़ एक settings file और icons, और कोई खास permissions नहीं.
- उसके बाद हर search पहले operators के server से होकर जाता था. उस server को पूरी search history दिखती थी, अक्सर उस user की एक unique ID से जुड़ी हुई.
- फिर server वह search partner tag के साथ Bing या Yahoo को भेजता था, ताकि operators को पैसे मिलें.
- आखिरी page कौन-सा होगा, यह server हर search के लिए तय करता है. एक test में एक extension (Predator Search) से किए गए छह एक जैसे searches चार अलग जगहों पर पहुँचे. Socket की चेतावनी है कि operators कभी भी कुछ searches को phishing page या malware download की ओर मोड़ सकते हैं, extension को बिल्कुल बदले बिना.
3. इसे कैसे रोकें / बचाव (यह lesson: malware कैसे फैलता है)
क्यों: extension browser के अंदर चलता है, जहाँ आप email, bank और काम की sites पर login करते हैं. एक बुरा extension बहुत कुछ देख सकता है, और सिर्फ़ official store से वह सुरक्षित नहीं हो जाता.
आप ये controls इस्तेमाल कर सकते हैं:
- Extensions तभी install करें जब सच में ज़रूरत हो, और ad से कभी नहीं. खुद store में जाएँ और publisher का नाम चेक करें.
- जिन extensions को आप पहचानते नहीं या इस्तेमाल नहीं करते, उन्हें हटा दें. कम extensions यानी कम दरवाज़े.
- अपना default search engine चेक करें. अगर वह आपका चुना हुआ नहीं है, तो उसे बदलने वाला extension ढूँढें, हटाएँ, और search engine वापस सेट करें.
- Companies के लिए: Chrome की admin policy से सिर्फ़ मंज़ूर extensions की लिस्ट allow करें, बाकी सब block करें. यह लिस्ट हर कुछ महीनों में चेक करें.
- बुरा extension हटाने के बाद पूरा antivirus scan चलाएँ, जैसा BleepingComputer सलाह देता है.
- लोगों को सिखाएँ कि "Add to Chrome" एक program install करने जैसा ही है. पूछें: इसे किसने बनाया, मुझे इसकी ज़रूरत क्यों है, और यह क्या बदल सकता है?
Example 1: अपने Chrome के सारे extensions देखें. ये steps एक-एक करके करें.
- Chrome खोलें और address bar में
chrome://extensionsटाइप करें. Enter दबाएँ. - Output: cards की एक लिस्ट. हर card पर extension का नाम, छोटा विवरण और on/off switch दिखता है.
- किसी एक card पर Details click करें. उसका version, उसे किन sites तक access है, और वह कहाँ से आया, यह दिखता है.
- इसका मतलब: यह आपके browser में चलने वाले सभी add-ons की पूरी लिस्ट है. अगर कोई आपने जानबूझकर नहीं जोड़ा, या इस्तेमाल नहीं करते, तो Remove click करें.
Example 2: चेक करें कि आपके searches का जवाब कौन-सा search engine देता है.
- Address bar में
chrome://settings/searchEnginesटाइप करें और Enter दबाएँ. - Output: आपका default search engine दिखाने वाला हिस्सा, जैसे Google या Bing.
- अगर कोई extension इसे control करता है, तो Chrome उस extension के नाम और उसे बंद करने के बटन वाली note दिखाता है.
- इसका मतलब: अगर default में ऐसा नाम है जो आपने कभी नहीं चुना, तो किसी extension ने आपके searches कब्ज़े में ले लिए हैं. उस extension को हटाएँ और search engine फिर से चुनें.
Example 3: अपने Linux computer पर ऐसे extensions ढूँढें जो search engine बदल सकते हैं.
- Chrome बंद करें और terminal खोलें.
grep -l "chrome_settings_overrides" ~/.config/google-chrome/Default/Extensions/*/*/manifest.jsonrun करें.- Output: शून्य या ज़्यादा file paths, जैसे
/home/asha/.config/google-chrome/Default/Extensions/abcdefgh.../1.0.2_0/manifest.json. - इसका मतलब: हर path एक extension है, जिसकी settings file Chrome से search engine जैसी settings बदलने को कहती है (
chrome_settings_overrides). लंबा folder नाम extension ID है. इसे Example 1 के Details page वाली ID से मिलाएँ, और भरोसा हो तभी रखें. कोई output नहीं यानी कोई extension यह नहीं माँगता. Windows पर यही folders%LOCALAPPDATA%\Google\Chrome\User Data\Default\Extensionsके अंदर होते हैं.
4. दोबारा ऐसा न हो, इसके लिए ध्यान कैसे रखें (checklist)
- [ ] मैं ad या pop-up से कभी browser extension install नहीं करता.
- [ ] "Add to Chrome" click करने से पहले मैं publisher, reviews और extension क्या बदल सकता है, यह चेक करता हूँ.
- [ ] महीने में एक बार मैं
chrome://extensionsखोलता हूँ और जो इस्तेमाल नहीं करता या पहचानता नहीं, उसे हटा देता हूँ. - [ ] मेरा default search engine मेरा चुना हुआ ही है, और कोई अनजान extension उसे control नहीं करता.
- [ ] काम पर policy से सिर्फ़ मंज़ूर extensions allow हैं, और लिस्ट नियमित चेक की जाती है.
- [ ] बुरा extension हटाने के बाद मैं पूरा antivirus scan चलाता हूँ, और उसके install रहते जिन pages को वह देख सकता था, वहाँ टाइप किए passwords बदलता हूँ.
स्रोत: Socket, "Searchjacked: Hidden Browser Extensions Hijack Searches for 13 Million Users" (John Tuckner), 29 अक्टूबर 2026; BleepingComputer, "Chrome extensions with 13.4 million installs caught hijacking searches" (Bill Toulas), 29 अक्टूबर 2026.
Check if you're safe: Phishing Link Checker
Real incident: Microsoft agent-framework – hijacked PyPI releases ran a cloud-key stealer every time Python started (Nov 2026)
1. What happened
In this lesson you learnt the ways malware spreads. One of them is the supply chain: a trusted update or package that is already poisoned. It is rare, but one bad release reaches thousands of machines at once. This real case shows exactly that, inside the tools developers use every day.
- agent-framework is Microsoft's official Python package for building AI agents. It is downloaded about 190,000 times a month from PyPI, the public Python package store.
- On 17 November 2026 (evening UTC, early 18 November in India), two new versions, 1.26.1 and 1.26.2, were published about 33 minutes apart. Microsoft did not make them.
- Both versions carried a hidden credential stealer. It collected secret environment variables, saved logins for Azure, Git, Docker, npm and Hugging Face,
.envfiles, and cloud identity tokens for Azure and Azure DevOps. Version 1.26.2 also went after GitHub Actions tokens. - The stolen data was sent to a public web "webhook" address that the attacker controlled.
- PyPI quarantined and then removed both versions in under an hour. The last safe version is 1.26.0.
- Wiz said the attacker appears to have used a stolen certificate and private key for Microsoft's internal release service. How they got it is not yet known.
2. How the hack happened (public reporting only – high-level)
- The attacker got publishing access for the package. Wiz says a first upload try from an outside cloud server was blocked by IP filtering, and a second try from Microsoft-owned network space worked.
- They took the real 1.26.0 package and added two small things: a hidden stealer module and a tiny
.pthfile. - Python reads
.pthfiles every time it starts. So the stealer ran on every Python start in that environment, even if nobody imported agent-framework, even when running pip itself. - Automatic update bots saw a "new version" and opened upgrade requests in other projects within minutes (JFrog reported about six minutes).
- On laptops, build servers (CI runners) and cloud machines, the stealer read saved secrets and also asked the cloud for fresh tokens. So simply rotating saved passwords is not enough.
- Everything was packed and sent to the attacker's webhook address. Security firms spotted it quickly and PyPI pulled the versions.
3. How to stop it / defend (this lesson: how malware spreads)
Why: a package from a trusted name is still code from the internet. If the publisher is hacked, your build machine runs the attacker's code with all its keys.
What you can do:
- Pin exact versions and hashes in your requirements file, so a surprise new release cannot slip in (Example 3).
- Add a short waiting time before update bots offer brand-new versions (for example a few days). Most poisoned releases are caught in hours.
- Keep long-lived secrets off build machines. Give CI jobs short-lived tokens with only the permissions that one job needs.
- Limit outgoing traffic from CI runners to the sites they really need, so stolen data cannot easily leave.
- Use a company package mirror or proxy that can block a bad version for everyone at once.
- Check which version you have (Example 1) and look for unexpected
.pthfiles (Example 2).
Example 1: check which agent-framework version is installed.
- Open a terminal in your own project environment.
- Run
pip show agent-framework | grep -i ^version - Output (example):
Version: 1.26.0 - What it means: 1.26.0 or older is the safe build. If you see 1.26.1 or 1.26.2, treat that machine as hacked.
Example 2: list the startup files Python reads.
- Find your package folder:
python3 -c "import site; print(site.getsitepackages())" - List the
.pthfiles in that folder:ls /path/from/step-2/*.pth - Output (example):
/usr/lib/python3/site-packages/distutils-precedence.pth - What it means: only files you can explain should be there. Advisories name
agent_framework_meta.pthandaf_runtime_diag.pthas signs of the bad versions.
Example 3: install only packages whose hash you already trust.
- Write each package in requirements.txt with
==versionand its--hash=sha256:...value. - Run
pip install --require-hashes -r requirements.txt - Output if a file was changed (example):
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. - What it means: pip refuses any file that does not match the hash you checked earlier. A swapped release cannot install quietly.
If you installed 1.26.1 or 1.26.2: stop using that machine or runner, rebuild it from a clean image with 1.26.0, then from a clean computer rotate every key and token it could reach (cloud, CI, GitHub, npm, PyPI, AI keys) and check cloud sign-in logs.
4. How to take care so it won't happen again (checklist)
- [ ] Every dependency is pinned to an exact version with a hash.
- [ ] Update bots wait a few days before offering a brand-new release.
- [ ] CI jobs use short-lived tokens with least privilege, not saved long-lived keys.
- [ ] CI runners can reach only the sites they need.
- [ ] We can block a bad package version for all teams from one place.
- [ ] We have a written plan: rebuild, rotate keys from a clean machine, check logs.
- [ ] We follow security advisories for the packages we use most.
Source: Wiz Research, "Microsoft agent-framework Compromised: Credential Stealer Targets Azure and CI Pipelines", 17 November 2026; The Hacker News, "Attackers Compromise Microsoft's Agent Framework PyPI Package to Steal Cloud Credentials" (Ravie Lakshmanan), 18 November 2026; GitHub Advisory GHSA-764m-3ppc-5m73 and PyPI advisory PYSEC-2026-4388, "agent-framework 1.26.1 and 1.26.2 contain credential-stealing code", 17–18 November 2026.
1. काय झालं
या lesson मध्ये आपण malware कसा पसरतो ते शिकलो. त्यातला एक रस्ता म्हणजे supply chain: विश्वासाचं update किंवा package आधीच खराब झालेलं असतं. असं कमी होतं, पण एक वाईट release एकाच वेळी हजारो machines वर पोहोचतो. ही खरी घटना developers रोज वापरतात त्या tools मध्येच हेच दाखवते.
- agent-framework हे AI agents बनवण्यासाठी Microsoft चं official Python package आहे. PyPI (Python packages चं public store) वरून ते महिन्याला सुमारे 1,90,000 वेळा download होतं.
- 17 नोव्हेंबर 2026 ला (UTC प्रमाणे संध्याकाळी, भारतात 18 नोव्हेंबरची पहाट) दोन नवीन versions, 1.26.1 आणि 1.26.2, सुमारे 33 मिनिटांच्या अंतराने publish झाले. ते Microsoft ने बनवलेले नव्हते.
- दोन्ही versions मध्ये लपलेला credential stealer होता. तो secret environment variables, Azure, Git, Docker, npm आणि Hugging Face चे saved logins,
.envfiles, आणि Azure व Azure DevOps चे cloud identity tokens गोळा करायचा. 1.26.2 GitHub Actions tokens पण चोरायचा प्रयत्न करायचा. - चोरलेला data attacker च्या ताब्यातल्या एका public web "webhook" address वर पाठवला जायचा.
- PyPI ने एका तासाच्या आत दोन्ही versions quarantine करून काढून टाकले. शेवटचं safe version 1.26.0 आहे.
- Wiz च्या मते attacker ने Microsoft च्या internal release service चं चोरलेलं certificate आणि private key वापरलं असावं. ते कसं मिळालं हे अजून माहीत नाही.
2. Hack कसा झाला (फक्त public reporting – थोडक्यात)
- Attacker ला package publish करायचा access मिळाला. Wiz नुसार बाहेरच्या cloud server वरून केलेला पहिला upload IP filtering ने block झाला, आणि Microsoft च्या network space मधून केलेला दुसरा प्रयत्न यशस्वी झाला.
- त्यांनी खरं 1.26.0 package घेतलं आणि त्यात दोन छोट्या गोष्टी टाकल्या: एक लपलेलं stealer module आणि एक छोटी
.pthfile. - Python प्रत्येक वेळी start होताना
.pthfiles वाचतो. म्हणून त्या environment मध्ये Python start झाला की stealer चालायचा, कोणी agent-framework import केलं नाही तरी, अगदी pip चालवताना सुद्धा. - Automatic update bots ना "नवीन version" दिसलं आणि त्यांनी काही मिनिटांत दुसऱ्या projects मध्ये upgrade requests उघडल्या (JFrog नुसार सुमारे सहा मिनिटांत).
- Laptops, build servers (CI runners) आणि cloud machines वर stealer saved secrets वाचायचा आणि cloud कडून नवीन tokens पण मागायचा. म्हणून फक्त saved passwords बदलणं पुरेसं नाही.
- सगळं pack करून attacker च्या webhook address वर पाठवलं जायचं. Security कंपन्यांनी हे लवकर पकडलं आणि PyPI ने versions काढले.
3. कसं थांबवायचं / बचाव (हा lesson: malware कसा पसरतो)
का: मोठ्या नावाचं package सुद्धा internet वरचा code च असतो. Publisher hack झाला तर तुमची build machine attacker चा code तिच्या सगळ्या keys सोबत चालवते.
तुम्ही काय करू शकता:
- Exact versions आणि hashes pin करा requirements file मध्ये, म्हणजे अचानक आलेला नवीन release आत घुसू शकत नाही (Example 3).
- थोडा waiting time ठेवा म्हणजे update bots अगदी नवीन versions लगेच देत नाहीत (उदा. काही दिवस). बहुतेक खराब releases काही तासांत पकडले जातात.
- Build machines वर जास्त दिवस चालणारे secrets ठेवू नका. CI jobs ना फक्त त्या job ला लागतील तेवढ्याच permissions असलेले short-lived tokens द्या.
- CI runners चं बाहेर जाणारं traffic limit करा फक्त गरजेच्या sites पुरतं, म्हणजे चोरलेला data सहज बाहेर जाऊ शकत नाही.
- Company चा package mirror किंवा proxy वापरा, जो एखादं वाईट version सगळ्यांसाठी एकदम block करू शकतो.
- तुमच्याकडे कोणतं version आहे ते check करा (Example 1) आणि अनोळखी
.pthfiles शोधा (Example 2).
Example 1: कोणतं agent-framework version install आहे ते check करा.
- तुमच्या स्वतःच्या project environment मध्ये terminal उघडा.
- हे चालवा:
pip show agent-framework | grep -i ^version - Output (उदाहरण):
Version: 1.26.0 - अर्थ: 1.26.0 किंवा जुनं version safe आहे. 1.26.1 किंवा 1.26.2 दिसलं, तर ती machine hack झाली असं समजा.
Example 2: Python start होताना वाचतो त्या files ची list बघा.
- तुमचा package folder शोधा:
python3 -c "import site; print(site.getsitepackages())" - त्या folder मधल्या
.pthfiles ची list काढा:ls /path/from/step-2/*.pth - Output (उदाहरण):
/usr/lib/python3/site-packages/distutils-precedence.pth - अर्थ: तिथे फक्त ओळखीच्या files असाव्यात. Advisories नुसार
agent_framework_meta.pthआणिaf_runtime_diag.pthदिसल्या तर ते वाईट versions चं लक्षण आहे.
Example 3: फक्त आधी trust केलेल्या hash चीच packages install करा.
- requirements.txt मध्ये प्रत्येक package
==versionआणि त्याच्या--hash=sha256:...value सोबत लिहा. - हे चालवा:
pip install --require-hashes -r requirements.txt - File बदलली असेल तर output (उदाहरण):
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. - अर्थ: आधी check केलेल्या hash शी match न होणारी file pip घेत नाही. बदललेला release गुपचूप install होऊ शकत नाही.
तुम्ही 1.26.1 किंवा 1.26.2 install केलं असेल तर: ती machine किंवा runner वापरणं थांबवा, clean image वरून 1.26.0 सोबत परत बनवा, मग एका clean computer वरून तिथून पोहोचता येणारी प्रत्येक key आणि token (cloud, CI, GitHub, npm, PyPI, AI keys) बदला आणि cloud sign-in logs बघा.
4. पुन्हा असं होऊ नये म्हणून काय काळजी घ्यायची (checklist)
- [ ] प्रत्येक dependency exact version आणि hash सोबत pin आहे.
- [ ] Update bots अगदी नवीन release देण्याआधी काही दिवस थांबतात.
- [ ] CI jobs least privilege असलेले short-lived tokens वापरतात, saved long-lived keys नाही.
- [ ] CI runners फक्त गरजेच्या sites पर्यंत पोहोचू शकतात.
- [ ] वाईट package version सगळ्या teams साठी एकाच ठिकाणाहून block करता येतं.
- [ ] आमच्याकडे लिहिलेला plan आहे: rebuild, clean machine वरून keys बदलणं, logs बघणं.
- [ ] आम्ही जास्त वापरतो त्या packages चे security advisories follow करतो.
Source: Wiz Research, "Microsoft agent-framework Compromised: Credential Stealer Targets Azure and CI Pipelines", 17 नोव्हेंबर 2026; The Hacker News, "Attackers Compromise Microsoft's Agent Framework PyPI Package to Steal Cloud Credentials" (Ravie Lakshmanan), 18 नोव्हेंबर 2026; GitHub Advisory GHSA-764m-3ppc-5m73 and PyPI advisory PYSEC-2026-4388, "agent-framework 1.26.1 and 1.26.2 contain credential-stealing code", 17–18 नोव्हेंबर 2026.
1. क्या हुआ
इस lesson में आपने सीखा कि malware कैसे फैलता है. उसमें एक रास्ता है supply chain: भरोसे का update या package पहले से खराब होता है. ऐसा कम होता है, पर एक खराब release एक साथ हज़ारों machines तक पहुँच जाता है. यह असली घटना developers के रोज़ के tools के अंदर यही दिखाती है.
- agent-framework AI agents बनाने के लिए Microsoft का official Python package है. PyPI (Python packages का public store) से यह महीने में लगभग 1,90,000 बार download होता है.
- 17 नवंबर 2026 को (UTC के हिसाब से शाम, भारत में 18 नवंबर की सुबह) दो नए versions, 1.26.1 और 1.26.2, लगभग 33 मिनट के अंतर से publish हुए. इन्हें Microsoft ने नहीं बनाया था.
- दोनों versions में छुपा हुआ credential stealer था. वह secret environment variables, Azure, Git, Docker, npm और Hugging Face के saved logins,
.envfiles, और Azure व Azure DevOps के cloud identity tokens इकट्ठा करता था. 1.26.2 GitHub Actions tokens भी चुराने की कोशिश करता था. - चुराया गया data attacker के कंट्रोल वाले एक public web "webhook" address पर भेजा जाता था.
- PyPI ने एक घंटे के अंदर दोनों versions quarantine करके हटा दिए. आख़िरी safe version 1.26.0 है.
- Wiz के मुताबिक attacker ने Microsoft की internal release service का चोरी हुआ certificate और private key इस्तेमाल किया लगता है. वह कैसे मिला, यह अभी पता नहीं है.
2. Hack कैसे हुआ (सिर्फ़ public reporting – संक्षेप में)
- Attacker को package publish करने का access मिल गया. Wiz के अनुसार बाहर के cloud server से पहला upload IP filtering ने block किया, और Microsoft के network space से दूसरी कोशिश सफल हुई.
- उन्होंने असली 1.26.0 package लिया और उसमें दो छोटी चीज़ें जोड़ीं: एक छुपा stealer module और एक छोटी
.pthfile. - Python हर बार start होते समय
.pthfiles पढ़ता है. इसलिए उस environment में Python start होते ही stealer चलता था, चाहे किसी ने agent-framework import न किया हो, pip चलाते समय भी. - Automatic update bots को "नया version" दिखा और उन्होंने कुछ ही मिनटों में दूसरे projects में upgrade requests खोल दीं (JFrog के अनुसार लगभग छह मिनट में).
- Laptops, build servers (CI runners) और cloud machines पर stealer saved secrets पढ़ता था और cloud से नए tokens भी माँगता था. इसलिए सिर्फ़ saved passwords बदलना काफ़ी नहीं.
- सब कुछ pack करके attacker के webhook address पर भेजा जाता था. Security कंपनियों ने इसे जल्दी पकड़ा और PyPI ने versions हटा दिए.
3. कैसे रोकें / बचाव (यह lesson: malware कैसे फैलता है)
क्यों: बड़े नाम का package भी internet से आया code ही है. Publisher hack हुआ तो आपकी build machine attacker का code अपनी सारी keys के साथ चलाती है.
आप क्या कर सकते हैं:
- Exact versions और hashes pin करें requirements file में, ताकि अचानक आया नया release अंदर न घुस सके (Example 3).
- थोड़ा waiting time रखें ताकि update bots बिल्कुल नए versions तुरंत न दें (जैसे कुछ दिन). ज़्यादातर खराब releases कुछ घंटों में पकड़े जाते हैं.
- Build machines पर लंबे समय वाले secrets न रखें. CI jobs को सिर्फ़ उस job की ज़रूरत जितनी permissions वाले short-lived tokens दें.
- CI runners का बाहर जाने वाला traffic limit करें सिर्फ़ ज़रूरी sites तक, ताकि चोरी हुआ data आसानी से बाहर न जाए.
- Company का package mirror या proxy इस्तेमाल करें, जो किसी खराब version को सबके लिए एक साथ block कर सके.
- आपके पास कौन सा version है, check करें (Example 1) और अनजान
.pthfiles ढूँढें (Example 2).
Example 1: कौन सा agent-framework version install है, check करें.
- अपने project environment में terminal खोलें.
- यह चलाएँ:
pip show agent-framework | grep -i ^version - Output (उदाहरण):
Version: 1.26.0 - मतलब: 1.26.0 या पुराना version safe है. 1.26.1 या 1.26.2 दिखे, तो उस machine को hacked मानें.
Example 2: Python start होते समय जो files पढ़ता है, उनकी list देखें.
- अपना package folder ढूँढें:
python3 -c "import site; print(site.getsitepackages())" - उस folder की
.pthfiles की list निकालें:ls /path/from/step-2/*.pth - Output (उदाहरण):
/usr/lib/python3/site-packages/distutils-precedence.pth - मतलब: वहाँ सिर्फ़ पहचानी हुई files होनी चाहिए. Advisories के अनुसार
agent_framework_meta.pthऔरaf_runtime_diag.pthखराब versions की निशानी हैं.
Example 3: सिर्फ़ पहले से भरोसे वाले hash के packages install करें.
- requirements.txt में हर package
==versionऔर उसकी--hash=sha256:...value के साथ लिखें. - यह चलाएँ:
pip install --require-hashes -r requirements.txt - File बदली हो तो output (उदाहरण):
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. - मतलब: पहले check किए hash से match न होने वाली file pip नहीं लेता. बदला हुआ release चुपचाप install नहीं हो सकता.
अगर आपने 1.26.1 या 1.26.2 install किया था: उस machine या runner को इस्तेमाल करना बंद करें, clean image से 1.26.0 के साथ दोबारा बनाएँ, फिर एक clean computer से वहाँ से पहुँचने वाली हर key और token (cloud, CI, GitHub, npm, PyPI, AI keys) बदलें और cloud sign-in logs देखें.
4. दोबारा ऐसा न हो, इसके लिए क्या ध्यान रखें (checklist)
- [ ] हर dependency exact version और hash के साथ pin है.
- [ ] Update bots बिल्कुल नया release देने से पहले कुछ दिन रुकते हैं.
- [ ] CI jobs least privilege वाले short-lived tokens इस्तेमाल करते हैं, saved long-lived keys नहीं.
- [ ] CI runners सिर्फ़ ज़रूरी sites तक पहुँच सकते हैं.
- [ ] खराब package version को सभी teams के लिए एक जगह से block कर सकते हैं.
- [ ] हमारे पास लिखा हुआ plan है: rebuild, clean machine से keys बदलना, logs देखना.
- [ ] हम अपने सबसे ज़्यादा इस्तेमाल होने वाले packages के security advisories follow करते हैं.
Source: Wiz Research, "Microsoft agent-framework Compromised: Credential Stealer Targets Azure and CI Pipelines", 17 नवंबर 2026; The Hacker News, "Attackers Compromise Microsoft's Agent Framework PyPI Package to Steal Cloud Credentials" (Ravie Lakshmanan), 18 नवंबर 2026; GitHub Advisory GHSA-764m-3ppc-5m73 and PyPI advisory PYSEC-2026-4388, "agent-framework 1.26.1 and 1.26.2 contain credential-stealing code", 17–18 नवंबर 2026.
Ravindra Bagale's Tip
A famous name on a package is not a safety check. Pin versions with hashes, let brand-new releases wait a few days, and keep real keys away from build machines. Then one poisoned update becomes a small clean-up, not a stolen cloud account.
Ravindra Bagale's Tip – मराठी
Package वर मोठं नाव असणं म्हणजे safety check नाही. Versions hash सोबत pin करा, अगदी नवीन releases ना काही दिवस थांबू द्या, आणि खऱ्या keys build machines पासून दूर ठेवा. मग एखादं खराब update म्हणजे छोटी साफसफाई, चोरी झालेलं cloud account नाही.
Ravindra Bagale's Tip – हिंदी
Package पर बड़ा नाम होना safety check नहीं है. Versions को hash के साथ pin करें, बिल्कुल नए releases को कुछ दिन रुकने दें, और असली keys build machines से दूर रखें. फिर एक खराब update सिर्फ़ छोटी सफ़ाई बनता है, चोरी हुआ cloud account नहीं.
Check if you're safe: Password Strength Checker