The first time hackers attacked our servers

Vitaly Davydov
Vitaly Davydov
2 min read
The first time hackers attacked our servers

Last night, we experienced a significant increase in the number of requests to certain endpoints of the server API, the logic of which assumed non-trivial changes in data in various tables. Due to this issue, an abnormally large number of operations were performed with one of the tables associated with analytics, which caused a number of locks in queries to the database. This significantly increased the response time from the database (Fig. 1) and, accordingly, from the servers (Fig. 2). As a result, some of the requests (about 30%) did not fit into the timeout and were discarded with an error code. Most likely this error did not affect you.

Figure 1 — DB metrics

We can see that all requests came from one account that was only registered recently. As we have established, this account is not a major app publisher, so we consider this incident to be an attack. Based on historical data, we found that attempts were made to test the system's behavior and performance that did not correspond to any real load, as a result of which the attackers identified the most vulnerable areas of the system. The deliberate nature of this incident is also indicated by the fact that this incident occurred at night, when most of the team was absent from the workplace.

Figure 2 — response time

From the start of the incident, we were working hard to solve this problem. In the early morning we localized the abnormal requests and eliminate the malfunctions. Preventive measures were taken against this attack vector and the vulnerability was eradicated.

Related articles

Adapty September update
1 min read

Adapty September update

Christmas is coming, so is the shopping season: honestly, there is no better timing to deploy a new subscription to your app.

Vitaly DavydovVitaly DavydovRead
In-app purchases initialization with Swift
13 min read

In-app purchases initialization with Swift

Learn how to optimize your SKProduct listings for iOS and provide seamless restore purchase functionality to your users. This article provides Storekit restore purchases examples to help you improve the user experience and increase revenue for your app.

Ben GohlkeBen GohlkeRead
Adapty October update 
2 min read

Adapty October update 

With the October update, we are eager to announce custom JSON, new events, iOS 14 support, and more.

Vitaly DavydovVitaly DavydovRead