How does "virus been detected" on android pop up on chrome when visiting some sites?


Question

What is the cause of this chrome bug on android? The last site I went to was www.destructoid.com and all of a sudden it gets redirected to the following url. This happened previously awhile back, but I didn't document everything as I did today. I'm also on android chrome canary if that matters.



I took some screenshots before closing out of that tab. But my question is:




  • What chrome bug or malware is causing these random redirects?

  • How can one detect if they have this vulnerability?



The url is: warning: open in incognito mode



enter image description here
enter image description here


Answer

In short:


Nothing to worry about, unless you have downloaded an app suggested by the pop-up.


In More detail:


It's an old issue. You visit a normal website, and suddenly you see pop-ups telling you that your phone has a virus.


It's called scareware. It's basically "ads" which scare you into downloading their "anti-virus" apps. Many times, the apps you will download are the ones with malware.


Why they show up:


When you see it on big websites like New York Times, it's not because the website is intentionally sending these ads; rather, it's because the innocent looking ads that the website is selling space to are laden with hidden code, which then allows them to display scareware without the website publisher knowing about it.



Many social media posts lamented that even top-tier publishers like
The New York Times and The Atlantic were willing to run such intrusive
ads on their sites. But experts say the problem isn’t with lack of
discernment on the part of site publishers but with an extremely
complex online advertising system that makes it hard for publishers
involved to detect, let alone weed out, misleading and malware-laden
ads. Source



Every website you visit is able to tell what phone you are using. This info is sent to the website by your browser. The scareware ads then use that info to make their warning look more real and scary.


You can even have a look at this website using your browser, it will tell you exactly what phone and Android version you're using.


What to do:


There is nothing to worry about, as the websites you visit have no way of knowing if you have a "virus" and therefore, the info cannot possibly be true.


When you get such a warning, simply close your browser. You can also clear the cache just in case (settings → apps → [browser name] → storage → clear cache).


If you do download the advertised app, make sure to uninstall it, or even factory reset your phone.


the Good news:


There's a simple way to disable these popups as explained by Android Police:



If you want to manually turn on the feature, and deal with whatever
lingering bugs it currently has, it's pretty simple. Just copy
chrome://flags/#enable-framebusting-needs-sameorigin-or-usergesture
and paste it in the address bar (you can't tap on that link directly).
Then tap the highlighted dropdown menu, change it to 'Enabled,' and
restart the browser when asked



Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes