

Series, volume 9
Why do unauthorized logins occur?
—Main account authentication systems and typical attack methods (Part 1)
My name is Mirumi, and I run a blog called "Mirume" (https://mirumi.me). My main profession is software engineering, and I spend my days either programming or writing blog posts. For some time, I will be contributing articles on a wide range of topics, primarily focusing on IT technology. Please treat me kindly.
Starting around February 2025, a large number of unauthorized login attempts began to occur on customer accounts at Japanese financial institutions, primarily securities companies. In addition to the unauthorized logins themselves, actual damages have been confirmed, such as funds being withdrawn from the affected accounts. As of the end of April, the total amount of damage is reportedly an astonishing 100 billion yen.
The level of online services offered by various securities firms was not necessarily high, and two-factor authentication was not a mandatory requirement. In fact, many of the compromised accounts did not have two-factor authentication enabled. However, there were also reports of accounts with two-factor authentication being affected, in which case it felt like there was nothing we could do from our end. What could have been done differently?
In this issue, we will return to the basics and broadly cover modern account authentication mechanisms and common hacking techniques. We encourage you to take this opportunity to review the security of your various accounts. The content is divided into two parts, appearing in this issue and the next. In the first part, we will delve into account authentication systems.
Basic mechanisms for authentication (account login)
When the term "authentication" is used in the world of IT, it refers to the process of "determining who someone is" (※1). In simpler terms, it's about "identity verification," and if we generalize further, it can be understood as the mechanism itself for logging into a specific service or account.
In authentication, the goal is to verify whether "this person claims to be A, but is that person actually A?" Therefore, we, as the ones logging in, attempt to prove this using various methods. For example:
Proof of knowledge can be demonstrated by knowing the password associated with the ID "A"
・ Instead of creating a new account, you can "borrow" and reuse an existing Google account that is already authenticated under the name "A"
The proof of possession is demonstrated by having a key that can only be used with biometric information unique to person A.
Regardless of which method is used, each service provider must strictly verify the accuracy of the submitted information. If the verification results are positive, the login process will be successful. Let's now take a closer look at each of these methods.
※1 A similar term is "authorization," which means "to determine what actions are permitted." For example, consider a company: even if an employee's ID number is recognized and their identity is authenticated, it doesn't necessarily mean that everyone can enter the president's office. In this case, authentication was successful, but authorization was denied. From the perspective of logging into a service, in most cases, the information about "what actions are permitted" is already included within the account itself, so there is usually no need to consciously differentiate between these 2 concepts.
Simple password (stored in the database)
This method has been used since ancient times, and it continues to be a fundamental component (as a basis) of modern authentication systems.
If passwords are stored directly in the database, any compromise of the database or intrusion into the server could expose all user accounts. Therefore, passwords must always be hashed before being saved (※3). However, simply hashing the password is not enough because even if a list of hashed "password" values were obtained, it would still be possible to reverse-engineer users' passwords after a data breach (※4). To prevent this, it is common practice to add a "salt," which is a random string unique to each user, before hashing the password.
However, the reality is that many users still use very simple and easily guessable passwords. In such a situation, the effectiveness of the general countermeasures mentioned earlier diminishes significantly, so it is recommended to transition to another authentication method or set up two-factor authentication (although strengthening the password should be done immediately).
※2 In recent years, methods that have even eliminated the concept of a password are becoming more widespread. This involves entering an email address during login and then accessing a link sent to that email address to log in to the service. The underlying principle is that if you can access the email, you are likely the legitimate owner of that email address, which makes it similar to the federation authentication described later. Disadvantages include the degraded user experience because users have to leave the service every time they log in.
※3 This hash function, which has become very familiar in this series, is explained in more detail in Vol.2 (Issue No. 143, Autumn '23) and Vol.4 (Issue No. 145, Spring '24), among others.
※4 This is known as a rainbow table attack. To make it more difficult to perform such brute-force attacks, dedicated algorithms (such as bcrypt and Argon2) that intentionally take a long time to execute are now used for password hashing.
Federation authentication (single sign-on system)
When logging in to online services, you may have seen buttons like "Sign in with Google." These are based on a series of mechanisms called federation authentication or SSO (Single Sign-On).
For example, when you are already logged into Google in your browser—this is often referred to as having an "active session"—if a third-party service attempts to log you in and follows the agreement that "authentication can also be done using a Google session," it becomes possible for Google to pass on the authentication result directly, which can then be used to log you into that service.
It's important to note that while you might think "because I chose federation authentication, I don't need to create a new account for that service," this is a common misconception. In essence, an account in a service is simply a representation of your identity within that system, and the method of logging in is a completely separate concept. While it's true that you might only need to create one password instead of multiple, understand that fundamentally, very little else will change.
Pascky (biometric authentication, and other features)
This is a relatively new and recommended method that has been slow to gain widespread adoption, but it is finally starting to become more popular. Many people are now becoming familiar with the term "passkey."
This is not something that allows you to log in directly using biometric authentication like Face ID on iOS. In fact, it's a slightly different mechanism.
Passkeys can be described as "public-key cryptography between the service and the user's device" (※5). A simplified explanation of the login flow using a passkey is as follows: ① The server generates a random string (called a challenge) that is only used for that particular session, ② The device receiving this challenge uses its private key associated with the passkey to sign the challenge and sends it back to the server, ③ The server then verifies the signature using the public key that was previously stored during the passkey registration process.
Biometric authentication, in the flow described above, is used to obtain the right to use the device's private key, specifically in part ②. However, it doesn't necessarily have to be biometric; it could be a PIN code or even a pattern input. The important thing is that the service provider does not store the password and does not transmit anything that corresponds to a password during the login process.
Another important point is that the authentication destination for passkeys is managed on a per-domain basis. This means that even if the user attempts to log in to a site that is actually different from the one they think it is (a malicious site), they will not be able to log in because the domain name does not match. Furthermore, due to the nature of passkeys, it is impossible for users to accidentally enter the correct password for the legitimate site, making them highly effective against phishing sites.
※5: Furthermore, this is another installment in our familiar series on public-key cryptography, and we provide a detailed explanation of it in Vol. 5 (No. 146, Summer issue '24).
Two-factor authentication (2FA, MFA)
While this is not one of the authentication methods and represents a different concept altogether, I have included it here for the sake of explanation.
Using only a simple password significantly increases the likelihood of successful attacks compared to other methods, and if you are not able to set a sufficiently complex password, it is best to consider that your security is "extremely vulnerable" (※6). In this case, mechanisms that can additionally enhance security strength are called two-factor authentication. These are also referred to as 2FA or MFA, but recently, these terms are no longer strictly distinguished, and here we will treat them all as the same thing.
This refers to the requirement of "additional authentication steps," which often involves using an authentication method different from a password. For example, this could involve entering a one-time password (OTP) sent via SMS or email, or linking with a dedicated OTP application that generates time-based passwords (TOTP).
Some services allow you to choose from several options for the authentication method used in two-factor authentication. In such cases, it's important to add an authentication method that is as unrelated as possible to the first authentication step. For example, if the first authentication method involves a login URL being sent to the email address provided, and the second factor also uses sending a one-time password via email, both methods could be easily compromised if the email account has already been breached, rendering the two-factor authentication ineffective. The purpose of two-factor authentication is to act as a final safeguard in case the first authentication step is bypassed.
Furthermore, regarding the securities account hijacking issue mentioned in the introduction, while it has been widely discussed, it is not impossible that vulnerabilities in the system could be exploited to circumvent two-factor authentication (※7). For example, even if there are additional authentication steps like two-factor authentication when withdrawing a customer's assets, if changes to the two-factor authentication settings can be made without further authentication after a successful unauthorized login, this becomes a bypass, and funds can be stolen.
Finally, an important point to note is that if you have already set up a passkey for the authentication method, then enabling two-factor authentication is generally unnecessary. Using a single passkey provides a level of security comparable to having two-factor authentication enabled, and in fact, according to the passkey standard, it is considered "multi-factor authentication" (※8). Therefore, many services are designed so that if you have set up a passkey, you cannot enable two-factor authentication. However, if the service allows for both, it's a good idea to enable them together. There is no such thing as absolute security, and multiple layers of protection are essential.
In the second part, we will introduce some typical examples of attacks related to unauthorized login, and then consider how to improve security even by a little.
※6 If the password requirements for the service you are using include limitations such as "maximum of 8 characters" or "only lowercase letters and numbers allowed," you should consider whether it is truly necessary to use that service. If you absolutely must use the service, be sure to set a password that is different from those used for other services, and confirm that your financial assets and other information are not excessively at risk.
※7 Regarding this point, the author has not verified the facts. It seems more likely that users entered their two-factor authentication one-time passwords and other information into phishing sites (even if they were using a time-based one-time password that changes periodically, it would be easy for attackers to automate the process of obtaining the information immediately after input).
※8 https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-63B-4.2pd.pdf
(Written by Miru)

(Featured in the Summer Issue of Up&Coming '25)
|
||||||||
![]() Up&Coming |
LOADING