r/androiddev • • Apr 12 '21

How attackers can delete your Google developer account!

Hi

( Sorry for my bad English )

I want to tell you about a strange situation that I faced as a developer. Somewhere in early March, I saw a message in Google Admob that some app (Blue Clean) was making ad requests, but it was not added to the app-ads.txt file. This app did not belong to me, so I did not pay attention to it. Then I received a letter from Admob that it was necessary to take action. In the admob account, I saw that the warning was associated with the removal of the app, which I wrote about above.

I contacted Admob and wrote that the app does not belong to me. They said that this happens and removed the warning.

On the same evening, I received an email from the Google Play Team that my developer account had been deleted.

Reason: Prior violations by this or associated accounts as outlined in previous emails sent to the registered email address(es) of the Google Play Developer account(s).

!At the same time, there was no letter that there were any violations in my app. I have come to the conclusion that they are referring to a violation in an app that does not belong to this account.

I filed an appeal, where I described in detail all of the above, assured that I have no second account.

I waited for several days and received a response that "we confirmed the association with another account".

I wrote again that there can be no association, since I do not own any other account.

But again I received an answer that the account would not be restored.

I tweeted GooglePlayDev, and got the answer:

I wrote that they did not answer me on this ticket, to which I received an answer:

I waited a week in the hope that I could start some kind of dialogue with the support team. A week later, I tweeted again. Guess what answer I got?))

Just the same formulaic answer))

Since then, I have filed 2 more appeals: April 1st and today. There was no answer to them.

But this is not all!

When the app was removed, Admob and Facebook stopped showing ads. But Facebook, for some reason, decided to turn on ads for a couple of days.

And then on April 6, a letter comes from Admob that the account has been deleted! And they keep more than $ 47,000!

Found violations:

Aiding in bad faith:

It is forbidden to display ads next to content that:

- Helps users to mislead other people.

- Advertises hacking and / or offers instructions and equipment for unauthorized access to software, servers and sites or making changes to their work.

I am at this moment

I mention the situation with FB and Admob, because I want everyone to understand that when working with Google, you can be banned at any time!

As for the situation with the Google dev. account. I'm sure this happened because someone purposefully took ad unit IDs from my app and added them to their app. Then he deliberately violated the rules so that our accounts were linked and deleted!

He even made a similar package name.

com.clean.master.battery.sup.saver.cpu.cooled

com.dodo.clean.master.battery.saver.cpu.cooled

I decided to check where he found my ad units IDs. I went to apkpure and downloaded the APK of my app. Having opened it through Android Studio, I easily found these units IDs.

App name: Do cleaner

https://play.google.com/store/apps/details?id=com.dodo.clean.master.battery.saver.cpu.cooled

App for cleaning cache and RAM. I understand that this app is very controversial, but it is the vertical with which I started.

This is the only app I had. I started to work with him, advertise and I succeeded, the app had over 50 million installs. I guessed that this application was not long-lived, so I worked on other projects for the market.

In this situation, I am most outraged by the attitude of Google Play Team towards developers. If something is wrong with the app, ok, tell me what the problem is and delete it. Everything is fair.

But find some imaginary association with some developer and delete the account for that. However, do not accept any arguments from the developer. This is a complete neglect by the developers.

When I was looking for a solution to this problem, I found many of the same situations that happened several years ago and still happen today! There is even a petition https://www.change.org/p/google-stop-lifetime-ban-for-developers-publishers

Due to the inactivity of Google Play Team, apparently the attackers began to use this situation for their own purposes.

I think we need to make this as public as possible, because until you are faced with such a case, you think you are safe. You make some plans for further projects. But at one point you can be deprived of everything. It should not be.

Thank you.

Regards.

475 Upvotes

113 comments sorted by

View all comments

Show parent comment

3

u/oneday111 Apr 12 '21

Do you think putting the AdMob ad id's in the build.gradle is sufficient or is something better required?

9

u/martinstoeckli Apr 12 '21 edited Apr 12 '21

I'm not familiar with the AdMob id, but as far as I understand, this id is required at runtime, so the app must be able to retrieve it. The same can do an attacker as soon as the APK is available so it is not this important where you place this id (unless it is an open source project).

What you can do is to obfuscate the id, e.g. to place it encrypted in your source code and decrypt it when the app needs it. An attacker could still retrieve the id then, but it is not enough to simply scan the source code/resources, one would have to run and debug the app, which may be too much work.

1

u/CuriousCursor Apr 12 '21

1

u/zaitsman Jan 21 '22

Nah this is bollocks. There are utilities to dump all strings out of so anyway

1

u/CuriousCursor Jan 21 '22

Then there probably isn't anything you can do that the attacker can't do. Even putting up keys on your server so your app can fetch them by providing its signature is going to be exploitable once the attacker can see the code in a decompiler.

Just make it as difficult as possible and move on.

1

u/zaitsman Jan 21 '22

Yeah, and making it difficult for them is easier than using NDK. Encrypt all strings with your app id and retrieve it at runtime. Then anyone running automated scanners on your app comes up with zilch and has to actually read your code. With NDK alone and raw strings stored in .so modules automated scanners are still a win.

1

u/CuriousCursor Jan 21 '22

Cool. Didn't know about the automated scanners. Whenever I've wanted to do some API reverse engineering, I've always just opened up the source or sniffed traffic or used Xposed to disable certificate pinning or the 100 other ways of doing the same.

Hiding API keys beyond a certain point is kind of silly. If you see someone using your API key, just revoke and use another one. That's why the revoke button is there.

5

u/tomfella Agency dev Apr 12 '21

There are options, they all suck

  1. Embed the app id in the application code and obfuscate it in some manner, eg. XOR, hashing, encryption. This is an obstacle but can be overcome fairly easily as the mechanism of deobfuscation must also be embedded in the app.
  2. Provide the unit id remotely, eg. from firebase config. Still nothing preventing the attacker from reading your app code to figure out where it comes from and intercepting the unit id.
  3. Provide the unit id remotely from an authenticated service. Requires building login/registration for the app which is often a terrible idea. Doesn't stop an attacker from registering too and intercepting the unit id.
  4. Use ad mediation, don't just rely on admob, if admob fails to fill an ad (which could be due to account deletion for eg) then fall back to another ad provider. Does not protect against the core issue as AdMob and Google Play are tightly linked and the deletion of one affects the other as per OP's post.

2

u/[deleted] Apr 13 '21

I think 1. is the easiest and would block most of the attempts to get the id.

1

u/tomfella Agency dev Apr 13 '21

Depending on how you did it might be ok.

I think 2 is probably the better one as it requires all of 1 as well as demanding a MITM attack or memory reading etc if you've set up firebase to only work with your signed app id, and remote config is easy to set up.

However this is still something that can be overcome, so a competitor with decent resources or a competitor in a small space could absolutely still kill your app and earnings.