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/monochr Dec 10 '13

It really isn't. If I were interested I could do it by just infecting 10 computers with a McVirus I can buy for $200 for some other reason and use a cnc server somewhere to tell them what to downvote. IP's aren't connected, they are all running java/flash, the chances of them ever being discovered are zero.

You also have the voting brigades like /r/bitcoin with their irc's and the like. Try and post a negative bitcoin story and see it languish in limbo for ever. Or any number of other topic with people with more time than sense interested in them.

This makes subreddits turn into echo chambers and makes only the least populated ones useful. If you want world news that aren't just sensationalist bullshit you're better off finding a non-default subreddit with less than 20 substitution per day so all of them show up on the front page.

6

u/[deleted] Dec 10 '13

That's a little over the top.

I could reasonably just manually run 10 accounts out of 10 IP addresses. If I'm using this small botnet to get paid, it'd be super easy to maintain 10 "real" accounts.

I guess the trick would come at the actual time of vote, but I'm a clever guy, and there are even cleverer folks out there than I. I feel like I could figure something out.

16

u/FredFnord Dec 10 '13

It really isn't. If I were interested I could do it by just infecting 10 computers with a McVirus I can buy for $200 for some other reason and use a cnc server somewhere to tell them what to downvote. IP's aren't connected, they are all running java/flash, the chances of them ever being discovered are zero.

You make some interesting assumptions about how they detect such things. If I were one of them (I'm not) I'd be kind of insulted that you are assuming that, after say 30 seconds of thought, you have already come up with all the possible ways that they could have in their bag of tricks to detect such things.

Spend a little more time thinking about it, and thinking about what kind of information they have access to. Perhaps you can come up with some other ways that they could figure out what machines you control.

Alas, voting brigades of actual people take longer and are more difficult, for reasons that should be obvious. But they do eventually get shadowbanned too.

If you want world news that aren't just sensationalist bullshit you're better off finding a non-default subreddit with less than 20 substitution per day so all of them show up on the front page.

Alas, I am afraid that this has nothing whatever to do with vote brigades or armies of downvote-bots, and everything to do with people. If you don't like people, or at least don't like the behavior patterns of large groups of frankly quite similar people, then most reddit comment sections aren't for you.

10

u/raldi Dec 10 '13

If I were one of them (I'm not) I'd be kind of insulted that you are assuming that, after say 30 seconds of thought, you have already come up with all the possible ways that they could have in their bag of tricks to detect such things.

I wish I could do more than just upvote this.

Oh wait, I can.

7

u/raldi Dec 10 '13

If I were interested I could do it by just infecting 10 computers with a McVirus I can buy for $200 for some other reason and use a cnc server somewhere to tell them what to downvote.

You could make an awful lot of money if that were true, but it's not.

-9

u/monochr Dec 10 '13

You really shouldn't tempt bored people who know how to code with idle boasts like that. You've gotten me half way to putting aside my graduate work and coding up a upvote-at-home client that uses nothing but mouse movements and firefox as a proof of concept just to prove someone smug on the internet wrong.

The next step would be to write one up that's distributed, has a centralized control server and shares the revenue with the people who install it, probably by using bitcoin micro-payments.

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.

→ More replies (1)

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.

7

u/raldi Dec 10 '13 edited Dec 10 '13

Cool. But doing it once won't prove me wrong; you have to sustain it.

Edited to add: Remember, your solution has to be trivial or it doesn't count. Any approach that requires a lot of work will fail to disprove my point, which was that it's a lot harder to cheat than the original article implies.

→ More replies (9)

1

u/Breaking-Away Dec 10 '13

Its funny how that works. I had the same thought just now.

1

u/[deleted] Dec 10 '13

Keep doing your studies.

3

u/Kalium Dec 10 '13

It really isn't. If I were interested I could do it by just infecting 10 computers with a McVirus I can buy for $200 for some other reason and use a cnc server somewhere to tell them what to downvote. IP's aren't connected, they are all running java/flash, the chances of them ever being discovered are zero.

Such brigades are very, very obvious when you have logs to look at. Which reddit does. This might have been clever is 1995.