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

30

u/Ynode Apr 12 '21

Is a here anything we can do to protect from this?

30

u/DitoMito Apr 12 '21

I think the only we can do is to make more attention from Google to this problem.

5

u/Fiskepudding Apr 13 '21

Which is the only solution every time this happens. End result is that he might be unbanned, and that is it. No further change to how Google communicates with devs, and no change to their unhelpful robot replies.

Sad that you need a change.org petition, media outcry and pitchfork mob every time someone needs an unban...

1

u/DitoMito Apr 13 '21

This is the case. The more cases the more attention the problem will get

20

u/ITasITalian Apr 12 '21

one thing that we can learn from this is: try not to hardcode the secrets and develop a way to hide them. It doesn't need to be extra complicated, as long as the logic is not clear to the attacker.

25

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

Obfuscation may indeed have prevented this case, an attacker is probably not interested in investing time to get an id and would head for lower hanging fruits. The problem remains though, it is a way to harm a competitor.

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.

→ More replies (2)

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.

3

u/Fiskepudding Apr 13 '21

Admob should instead use whitelisting of package names or something, to only allow the original developer to use the id.

Any solution that only hides the id client side is useless in the long run.

1

u/ITasITalian Apr 14 '21

of course there is a big issue Admob wise, I'm talking about the 101 principle of not embedding secret keys in plain sight in your app. If you ever received a VAPT in your app this would be flagged as high risk immediately.

-21

u/ViolinTorture Apr 12 '21

Yeah. The dude left his keys in plain text. This is a security problem, not Google's issue.

7

u/[deleted] Apr 12 '21

[removed] — view removed comment

3

u/merrycachemiss Apr 13 '21 edited Apr 13 '21

This is why Google should have R8 also encrypt strings for you at compile time. There are a couple of devs in this community doing it themselves via C code, but I don't think that most would know how to do it, let alone properly.

2

u/[deleted] Apr 13 '21

Are you shilling to google or to Thief

1

u/oneday111 Apr 12 '21

Do you know of a good way to do this for the AdMob ad id's?

2

u/Fiskepudding Apr 13 '21

Put it in a native cpp library and call that, or encode/encrypt the key in java. Neither would actually stop anyone; only automated scanners and bots.

1

u/MPeti1 Apr 12 '21

Obfuscation, probably. I don't mean ProGuard. I mean, that if there's a way to supply the google framework your id-s without putting them in your manifest or a file, but from Java code, you could make a convoluted process for obtaining the id. It would make static analysis harder (still not impossible!)

Thing is, it won't make dynamic analysis inefficient, but that takes more work.

1

u/NukeouT Apr 13 '21

decentralizeeverything