PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

Another anti-detection series

Open mjmadsen opened this issue 10 years ago • 9 comments

We have lots of anti-detection issues at the moment, and plan that trend will continue for quite a while. We all must realize progress can sometimes be slow. Every addition creates new lines of thought, those lines of thought help us to create a more stable and useful system. That being said, I'd like to go over my thoughts thus far with anti-detection. I won't go too in-depth, as this is a public forum and we won't stay ahead if their devs can simply read our thoughts. Series of thoughts, in no particular order:

  • Altitude isn't all the important, as long as we can mimic the responses whatever device we are sending and it does not measure altitude.
  • If we jump great distances, bans seem to be a function of distance and time. I've waited X hours of travel time to try a new location and not been softbanned (Takes me 45m to drive there, an hour later I can teleport there).
  • If we stand out too much over periods of time (catches/hr, etc).
  • We don't use realistic times between different actions. Minus network delays, we should map out the min sleep time for all actions and stick to it. Leveling slower and not getting banned is obviously a better result.
  • They have the results from many real players. When was the last time you really played and ignored 50 stops before returning? We need our bot to play how people play. Think about when you actually played, how you handled your phone, your walk variance, how often you slowed, your average speed, how many stops you hit before returning. How often you exited to respond to that email, phone call etc.
  • Some methods of detection involve too much work on their systems, so all detection methods should be rather simplistic. From what I can tell, the quota bans do not happen immediately, but I expect they're pretty automated - but do not kick in right away as it may be obvious, or they have a separate system run every so often. The ban "waves" seem to be flagged and reviewed accounts. I imagine they might run flagged accounts against a certain criteria and then decide to ban.
  • We should continue to make all task's wait times configurable, but now the avg app wait time (recommending it as a minimum).
  • As they have a wealth of legit player information, it is not unlikely they could run algorithms against they retained data. For example, players who went from stop A to stop B had a gps variance of X and fetch all players outside the bounds of variance X.
  • Simplest first - While we can come up with grand schemes on how bots could be detected, they will probably use the easiest first (except not sending API requests back!). Their X stops and pokemon caught per day is a perfect example. It's a very easy thing to implement.
  • Too many things over time (distance walked, consecutive time played, stops visited, pokemon encountered, etc).
  • Make sure we're simulating the same data the app sends. We can expect they will start verifying more packets or lack there of. They probably won't scan for this in real time, but run db scans every so often to look for bot trends. It'd clear they have criteria to find us. I think this explains the mass bans (somewhat mentioned above); They have thresholds to automatically flag folks then features to search flagged and suspicious accounts (that do not yet meet softbans) and flag them for ban. Pick a date then ban all ban flagged accounts. This method helps hide the banning criteria. My guess is softbans are a "Dude, we know..." to reduce server load, then a much lower trigger for an actual ban.

mjmadsen avatar Aug 18 '16 06:08 mjmadsen

I think it's difficult to out smart them. They have ways to find out.

avexus avatar Aug 18 '16 06:08 avexus

If we do the job well enough, it's all just packets traveling between a client and a server. After the system, gets strong enough, detection takes too much processing power on their end. Their next move is to be like MapleStory and update the API every month or so, causing programmers to have to hunt down all the values again.

But the general idea of the post is to encourage anti-detection thoughts, targeting the simplest to detect/implement first. We have many programmers (thought working for free + acct sales) and a few programmers payed (most likely well) to stop us. If we can get ahead of some of the simpler methods, we can begin into new depths.

Turing Test of Pokemon Go :smile:

mjmadsen avatar Aug 18 '16 06:08 mjmadsen

"simulating the same data the app sends" So whats are the timing and order of apis call on the app?

Exaple If app sent gps position ever 53s , or ask inventary before spin and after catch ... Bot must do rhe same. But who know

MZorzy avatar Aug 18 '16 07:08 MZorzy

Take a look when we play with same IP for more than 1 characters

for example :

When u play using 1 connection (Thetering) from a phone....that mean your IP connection should be same between 1 character to another, same time, same connection and sure should be same path.

same path mean same fort list to spin, also same pokemon to catch...no matter which one is first.

Now, the bot able to randomize your walk speed, has capability (task) "FollowPath", etc.

But, the result is, even when you start 2 characters on same location, and set them to same path, even when you set lure_attraction : false. On view minutes / hours, those characters will bring up different result (forts or pokemon).

Now the question is, will you play in one IP but take different path (e.g one to north, and south for other)....i believe this behavior of bot might lead you to be suspected as bot. (especially for you who play with more than 1 character like me, lol).

so far what i did :

  1. False lure_attraction
  2. FollowPath mode : loop
  3. minimizing path scope (about 500 m - 1km) divide to 4 altitude.
  4. Immediately sign out the bot if my characters range to far (of course i know the place as well as play on foot).
  5. keep delete last-location and recents-forts before start the bot.
  6. wait for 10 - 20 minutes before restart the bot.

If just, the bot able to :

  1. take exactly same action between 2 accounts which has same spawn location, same path, and absolutely same IP. I remember first time i use this bot, exactly something good imo. same location to start, and walk with same path, spun same forts, and catch same pokemon, no matter vanish or catch.

  2. (if point no 1 not possible ) pause the bot on our command (not sign out Ctrl+C in terminal), so we can wait the other account arrive on that pokestop then walk together.

Or maybe was my mistake on set the config so the bot walk randomly (not exactly same between 2 characters)...

AradeaTechno avatar Aug 18 '16 08:08 AradeaTechno

What's wrong with multiplayere on same ip ? No public/free IP ? Campus ?

MZorzy avatar Aug 18 '16 12:08 MZorzy

@mjmadsen I get where you are going with this thread, but why choose issues on the github? We are trying to keep this clean for actual bugs/issues with the bot, and feature requests. I can see the linkage if your list has actual outcomes for each point (which should be in their own respective FR), but a thread like this is going to go nowhere and is going to eventually be closed. Can I suggest this conversation is moved to the slack and if you feel there isn't a channel already created for this kinds of discussion, create one

k4n30 avatar Aug 18 '16 12:08 k4n30

With enough samples of 'legit' and 'bot' log data, Niantic can code a simple neural network classifier.. continuously improve their model with more manually tagged 'legit'/'bot' logs.. and boom.. super accurate real-time bot detection. The NN would detect patterns we'd be unlikely to see..

drricksanchez321 avatar Aug 18 '16 14:08 drricksanchez321

They can barely keep stable game servers, let alone a neural network :p

k4n30 avatar Aug 18 '16 14:08 k4n30

@k4n30 Sorry this is not the best medium. Closing.

mjmadsen avatar Aug 18 '16 14:08 mjmadsen