35
© 2014 Imperva, Inc. All rights reserved. The Anatomy of Comment Spam Shelly Hershkovitz, Sr. Security Research Engineer, Imperva 1

The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

The Anatomy of Comment Spam

Shelly Hershkovitz, Sr. Security Research Engineer, Imperva

1

Page 2: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Agenda

2

§ Comment Spam - What & Why? § Comment Spam Attacks § Data Analysis § Mitigation Techniques § Case Studies § Conclusion § Q&A

Page 3: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Shelly Hershkovitz, Sr. Security Research Engineer, Imperva

3

§  Leads the efforts to capture and analyze hacking activities •  Authored several Hacker Intelligence

Initiative (HII) Reports

§ Experienced in machine learning and computer vision

§ Holds BA in Computer Science & M.Sc degree in Bio-Medical Engineering

Page 4: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Comment Spam - What & Why?

4

§ What? •  Wikipedia: ”Comment spam is a term used to refer to a broad

category of spam bot postings which abuse web-based forms to post unsolicited advertisements as comments on forums, blogs, wikis and online guest books.”

§ Why? •  Search engine optimization •  Advertisements •  Malware distribution •  Click fraud

Page 5: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Search Engine Optimization

5

MyWebSite.com

OtherWebSite.com OtherBlog.com

OtherWebSite.com

OtherNewsWebSite.com

Backlink

Backlink

Page 6: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Comment Spam Attack

6

Target Acquisition

Comment Generation

Posting

Verification

Page 7: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Comment Spam in Practice

7

§ Success relies on large scales § Automated tools are used §  Inputs

•  The site to be promoted •  Relevant keywords

Page 8: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

§ URL Harvesting •  Locate relevant websites •  Locate suitable URLs for commenting

§ An alternative – buy ‘Quality URLs’ lists •  A typical price is $40 for ~13,000 URLs

Target Acquisition

8

Page 9: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Selecting the Targets

9

Target Selection

Relevance

Quality Difficulty

Policy

•  Relevance: Relevance to the promoted site

•  Quality: The URL’s own search engine ranking

•  Difficulty: The difficulty of posting comments (Captcha)

•  Policy: The site’s policy regarding search engine (follow/nofollow attribute)

Page 10: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Target Acquisition in Action

10

Page 11: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

§ Verbal comments attached to the promoted site •  Input keywords

Comment Generation

11

Page 12: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Comment Generation in Action

12

Page 13: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

§ Post comments on many URLs § Authentication, CAPTCHA, or user details handling

Posting

13

Page 14: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Posting in Action

14

Page 15: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

§ Collect feedback whether or not the comments were posted

Verification

15

Page 16: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Verification in Action

16

Page 17: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Comment Spam in Action

17

Page 18: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

§  17% of the attackers generated 58% of comment spam traffic

Data Analysis

18

Page 19: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

§  80% of comment spam traffic is generated by 28% of attackers

Data Analysis

19

28.00% Source IP

Page 20: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Mitigation Techniques

20

§ Content inspection § Source reputation § Anti-automation § Demotivation § Manual inspection

Page 21: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Mitigation Techniques: Content Inspection

21

§  Inspecting the content of the posted comments § Rule based

•  Large number of links •  Logical sentences not related to the subject

§ Akismet

Page 22: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Mitigation Techniques: Source Reputation

22

§ Based on the reputation of the poster § Online repositories based on crowdsourcing

Page 23: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Mitigation Techniques: Anti-Automation

23

§ Anti-automation tools •  CAPTCHA •  Check-box for posting the

comment •  Client type classification

Page 24: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Mitigation Techniques: Demotivation

24

§ Make comment spam useless §  Follow/nofollow value of the rel attribute of an HTML

anchor <A> •  Specifies whether a link should be followed by search engines

§ Penguin update for Google search engine algorithms

Page 25: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Mitigation Techniques: Manual Inspection

25

§ Effective but not scalable § Effective against manual comment spam

Page 26: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Case Studies

26

§ Attack Target: Specific Victim § Attack Source: Specific Attacking IP § Google App Engine

Page 27: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

§ A non-profit organization § A single host with many URLs § Our theory associates popular phrases within the URL

address and page content, to the attack rate

Specific Victim

27

Num

ber o

f A

ttack

s

Page 28: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

§  52% of source IPs produce 80% of the traffic

Specific Victim

28

52% Source IP

Page 29: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Specific Attacking IP

29

§ Comment spam posting from a specific IP § Rapid response (IP reputation feed) would have

significantly reduce the impact of the attack

Num

ber o

f A

ttack

s

Page 30: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

§  Five target websites were attacked from this source § Most had suffered a relative high amount of comment

spam attacks

Specific Attacking IP

30

1 41%

2 25%

3 21%

4 11%

5 2%

Percentage of Traffic per Target

Page 31: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

§ Hyperlinks in a single request are for different websites § Consecutive requests have similar hyperlinks § Using different URLs for the same website avoids bad

reputation

Specific Attacking IP

31

Page 32: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Case Studies: Google App Engine

32

§ Google App Engine can be used to spread comment spam through proxy services

§  This technique can be used to bypass IP based mitigations

Page 33: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Conclusion

33

§ Comment spam is a prosperous industry •  Many tools and services are available for comment spam

generation and distribution

§  Identifying the attacker as a comment spammer early on and blocking its requests prevents most of the malicious activity •  Reputation based controls are effective (IP / source application)

§ Reputation based controls must be combined with some content based controls to avoid false positives

§ Anti-automation and bot-detection controls can reduce the likelihood of an application becoming a target

Page 34: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

Webinar Materials

34

Post-Webinar Discussions

Answers to Attendee

Questions

Webinar Recording Link Join Group

Join Imperva LinkedIn Group, Imperva Data Security Direct, for…

Page 35: The Anatomy of Comment Spam · 2014. 8. 20. · Comment spam is a prosperous industry • Many tools and services are available for comment spam generation and distribution ! Identifying

© 2014 Imperva, Inc. All rights reserved.

www.imperva.com

35