r/programming • • Dec 09 '13

Reddit’s empire is founded on a flawed algorithm

http://technotes.iangreenleaf.com/posts/2013-12-09-reddits-empire-is-built-on-a-flawed-algorithm.html
2.9k Upvotes

503 comments sorted by

View all comments

Show parent comment

8

u/GeorgieCaseyUnbanned Dec 10 '13

It's obvious you've never tried actually tried gaming online systems like Facebook ads, Adwords with your talk. I'm not surprised you're doing graduate work and not in the real world.

IPs is the easy part. You can buy access to loads of IPs to maintain Reddit sockpuppet accounts and they know this. Captcha's are also useless. When you're trying to stop gaming of a system, you have to think of stuff that is hard or slow to game. And for Reddit, I'm guessing it's two things: Account age and account post/comment count. IPs are all but ignored.

5

u/Spandian Dec 10 '13

Off the top of my head, I would consider these suspicious:

  • Multiple accounts that frequently vote on the same submissions, where those submissions are not front-page.
  • Single accounts that only vote, never comment or submit links
  • Accounts that only downvote, never upvote; or vice versa
  • Accounts that submit more votes in a 5-minute period than humanly reasonable.
  • Accounts that frequently vote on submissions less than 2 minutes old.
  • Accounts that hit URLs in an order that doesn't make sense for a web browser - say, voting on a comment without ever having viewed the thread.
  • Accounts that only ever vote in one subreddit

9

u/raldi Dec 10 '13

That's a very good list for just a couple minutes' thought. Now imagine you were six people, getting paid to think about this as a full-time job for multiple years, and you'll see why it makes reddit alums' eyes roll when people think they can cheat, long-term, just by getting a couple shell accounts and writing a ten-line curl script.

2

u/rawbdor Dec 10 '13

That's a very good list for just a couple minutes' thought.

What's worse is that the list becomes a requirements list for the bots to do the opposite.

  • Multiple accounts that frequently vote on the same submissions, where those submissions are not front-page. ADD IN RANDOMNESS
  • Single accounts that only vote, never comment or submit links LOOK FOR DORITO REFERENCE, COMMENT ABOUT COLBY
  • Accounts that only downvote, never upvote; or vice versa GO COUNTER TREND 10% OF THE TIME
  • Accounts that submit more votes in a 5-minute period than humanly reasonable. DONT DO THIS
  • Accounts that frequently vote on submissions less than 2 minutes old. RANDOMIZE DELAY FROM 1 TO 7 MINUTES
  • Accounts that hit URLs in an order that doesn't make sense for a web browser - say, voting on a comment without ever having viewed the thread. ALWAYS VIEW THE THREAD FIRST

Point is, once a list of details is determined to characterize the nature of a bot, that list becomes a new requirements list for how not to be detected as a bot.

3

u/mattrition Dec 10 '13

That's a great point, and it's a point that is horrendously well understood by anyone working on computer security / spam detection / antibiotics / species behaviour interactions / animal evolution in general.

Both the defence and that attack are constantly co-evolving and if you stop innovating and adding to your defence you can garuntee it will become pointless in a matter of time.

I fully expect the reddit developers to know about this concept and to be constantly working on new rules to detect bots that are becoming ever smarter. Whether there is enough innovation on these rules to add to the detection, I have no idea. It's worth considering how worth it trying to game reddit is. Spam filters for bigger networks such as email or security for popular operating systems generally need more work because there is more incentive to game those systems.

1

u/rawbdor Dec 10 '13

t's worth considering how worth it trying to game reddit is.

For most small spammers, probably not very worth it. But it does make reddit suceptible to an attack by an up-and-coming competitor who's goal is to de-legitimize reddit, make it function poorly, take advantage of every loophole, and eventually destroy the community.

Not that that's happening now... but, for an organization looking to take reddit's place, the value could be enormous.

1

u/mattrition Dec 10 '13

You're right, it's certainly worth it for a e.g. competitors. But I am certain that the number of entities that get any value out of gaming reddit is vastly smaller than other the interest for other systems. Fewer people "attacking" reddit will make it much easier to keep pace with the innovation of such attacks. So it is more likely that the devs are on top of it.

2

u/raldi Dec 10 '13

And that's why the actual list is the one part of reddit's code that's not open source.

1

u/Kalium Dec 10 '13

Now add in behavioral analysis. It a group of users votes together as a bloc with any frequency, it'll show up. Adding randomness won't disguise that. It's the core behavior that you want.

This is actually a lot harder than you think. You cannot just add noise everywhere and expect it to work.

2

u/lonjerpc Dec 10 '13

This and many more. You can ultimately just throw all user data into a vector and run machine learning algs on it like the credit card companies do. However the attacker can do the same exact thing. It is easy to say take your own user profile or even better yet a few others vectorize them and then randomize the data. Then you create an account that mimics this.

Some things of course fundamentally break this. The biggest is time and interaction from other users. You can somewhat fake the the second aspect of this although it is quite difficult.

However there is a big weakness with using these options too heavily. They create bias and hive mind behavior.

1

u/perfecthashbrowns Dec 10 '13

I know the admins can track which links people visit, and which links they use to get to a particular comment/thread. That would be by far the most difficult thing to spoof since the bots would all need to have somewhat unique and sensible methods of getting to a thread/comment so they can downvote it.

All of them following exactly the same pattern to get to a thread/comment would probably flag the group as belonging to a vote-brigade, which the admins catch on a regular basis.

2

u/lonjerpc Dec 10 '13

I'm not surprised you're doing graduate work and not in the real world.

There is no need for personal attacks. Many of the best security researchers are in academia.

Generally your right though. Although it is not widely advertised reddit ignores a whole lot of voting. Which makes sense because you really only need a small sample size of the "good" votes to make a good guess as to what is going on. So throwing out even mildly suspicious votes works ok.

However this does not really solve the fundamental problem monochr is bringing up. On small reddits playing the vote ignoring game can be quite harmful. Especially because sometimes new users really are important contributers. Biasing towards the old and active users can create a host of problems even on larger subreddits. Basically there is a bias vs spam tradeoff going on.

Of course I don't know what tradeoff reddit chooses. Nor does anyone else but reddit. But the existence of bugs like that mentioned on this page forces reddit to either accept more spam than it needs to or it forces more bias than is necessary. I am guessing they allow more bias given statements both in this thread and elsewhere but I could be wrong.

Either way it should be fixed.

1

u/Kalium Dec 10 '13

Define "fixed".

1

u/lonjerpc Dec 10 '13

"fixed" As in the bug mentioned in the original article for this thread should be fixed. Which reddit is doing according to other comments they have made. However both comments from reddit and others in this thread have been implying that the bug is not that meaningful. I disagree with this assertion partially for the reasons given in my previous comment.