Slide 1

Slide 1 text

Развлекательная социальная сеть Одноклассники 2017 Что мы знаем про вредоносные расширения Хрома

Slide 2

Slide 2 text

Развлекательная социальная сеть Одноклассники 0 История

Slide 3

Slide 3 text

3

Slide 4

Slide 4 text

4

Slide 5

Slide 5 text

Развлекательная социальная сеть Одноклассники 1 Вредоносные расширения

Slide 6

Slide 6 text

6 Расширения в Хроме https://developer.chrome.com/extensions/overview - Manifest file - Background pages - Event pages - Content Scripts

Slide 7

Slide 7 text

7 Что могут расширения - Подписываться на события - Выполнять код в контексте произвольного домена - Изменять DOM - chrome.* APIs - Inline установка

Slide 8

Slide 8 text

8 Что могут плохие расширения - Слушать ввод, собирать данные - Выполнять код в контексте вашего домена - Изменять интерфейс - Изменять настройки браузера

Slide 9

Slide 9 text

9 В чем проблема - Content Scripts => Same Origin Policy - Вирус на js - Плохо обнаруживаются антивирусами - Не вызывают подозрений пользователя

Slide 10

Slide 10 text

10 Подмена рекламы в браузерах Данные: https://security.googleblog.com/2015/05/new-research-ad-injection-economy.html статистика Google, 2015 % 5.5

Slide 11

Slide 11 text

Развлекательная социальная сеть Одноклассники 2 Content Security Policy

Slide 12

Slide 12 text

12

Slide 13

Slide 13 text

13 Отчеты о нарушении Content Security Policy

Slide 14

Slide 14 text

14 Content Security Policy

Slide 15

Slide 15 text

15 Ой

Slide 16

Slide 16 text

16 9.1. Vendor-specific Extensions and Addons Policy enforced on a resource SHOULD NOT interfere with the operation of user- agent features like addons, extensions, or bookmarklets. These kinds of features generally advance the user’s priority over page authors, as espoused in [HTML- DESIGN]. http://www.w3.org/TR/CSP3/#extensions … we model extensions more or less as an application of the user's will, and … we prioritize the user above the site. This means that the extension is explicitly allowed to do things that the site owner would prefer that it not do. https://bugs.chromium.org/p/chromium/issues/detail?id=634265

Slide 17

Slide 17 text

Развлекательная социальная сеть Одноклассники 3 MutationObserver

Slide 18

Slide 18 text

18 MutationObserver https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver

Slide 19

Slide 19 text

19 ok.ru/alexandra.svatikova linkedin.com/in/asvatikova/ [email protected] Спасибо