SMS 認証がダメな理由

no extension

今回は Proton Blog の以下の記事から。

例によって Proton 製品の広告を含んでるので気をつけてね。 記事自体は主に企業向けの内容となってるけど,個人でも知識として参考になる部分は多いと思う。

Authenticator と SMS 認証

“NIST SP 800-63 Digital Identity Guidelines” では Authenticator (認証器?) を以下のように分類している。

私たちが普段「パスキー認証」と呼んでいるものは,ほぼ同期型のパスキーで,NIST SP 800-63 では “Syncable Authenticators (B)” に該当するみたい1。 上の分類で言うなら “Single-Factor Cryptographic Authentication” または “Multi-Factor Cryptographic Authentication” に相当するようだ(実装による)。

SMS を含む PSTN (Public Switched Telephone Network) を使った認証は “Out-of-Band Devices” に分類されるが,制限付き認証器(Restricted Authenticators (3.2.9))とみなされている。また,NIST は SIM 変更や番号移行などのリスク指標を考慮するよう推奨している。 また以下の引用のように

Some subscribers may be unable to use PSTN to deliver out-of-band authentication secrets in areas with limited telephone coverage, particularly without mobile phone service. Accordingly, verifiers SHALL ensure that alternative authenticator types are available to all subscribers and SHOULD remind subscribers of this limitation of PSTN out-of-band authenticators before binding one or more devices controlled by the subscriber.

電話ベースの認証を使えないユーザのために代替手段を用意することも求めている。

と,以上が前置き。 これを踏まえて最初の記事を読んでいく。

SIM スワップと SMS 認証のリスク

最初の記事では SIM スワップによって SMS 認証が突破されるリスクについて言及されている。

Most security controls within your business can be improved, such as passwords, training, and access permissions. However, SMS-based two-factor authentication (2FA) is different, because your business can’t make it stronger. The codes are only as secure as your phone number, and your mobile carrier controls who that number belongs to. Its weakest point is the carrier’s customer support agents.

攻撃者は携帯電話の担当者(customer support agent)に連絡し,本人(企業の従業員)になりすまして,電話番号を自分の SIM に移行させてしまうらしい。 これが SIM スワップ攻撃の大まかな手口である。

もちろん,これを成功させるには,なりすますための個人情報を詳細に把握している必要がある。

A SIM swap relies more on preparation than technical skill. First, the attacker collects enough personal information to pass the carrier’s identity checks, such as their full name, date of birth, and answers to common security questions.

With this profile, the attacker contacts the carrier and poses as the customer. They give a reason for the request, such as a lost phone, a damaged SIM, or an upgrade. The goal is always to get the support agent to activate the number on a new SIM.

しかし SIM スワップが成功すれば,SMS 認証だけでなく,電話番号を認証やアカウント復旧に使っているサービスのアカウントを乗っ取られる可能性がある。

Once the swap is complete, the attacker moves fast. Password resets for many accounts, such as business email, banking, and software-as-a-service (SaaS) tools, often rely on SMS. The attacker triggers resets on the most valuable accounts first, intercepts each code, and locks the real owner out. This often happens before the employee realizes why their phone has no signal.

この手口が厄介なのは,なりすまされる当人だけでは防ぎにくい点である。

The employee’s device isn’t hacked. The attacker doesn’t need common methods such as malware, brute force attacks, or phishing. The carrier simply reassigns the number, using its normal process, to someone who has no right to it.

The weak point is the carrier’s identity checks; something your business has no control over.

SIM スワップは元々,著名人や富裕層(暗号資産の保有者など)を狙う犯罪だったのだが,最近では企業の従業員アカウントがターゲットになっているらしい。 給与計算・メール・クラウドなどの管理権限を持つ従業員アカウントのどれかを攻略できれば,企業の重要な情報や資産にアクセスできる可能性がある。

The numbers show how fast this has grown. Cifas, the UK’s fraud prevention service, recorded a 1,055% rise in unauthorized SIM swaps in 2024, from 289 reported cases to nearly 3,000. Its Fraudscape 2026 report shows a further 38% increase in 2025, driven by easy access to stolen personal data and more automated attacks.

Mobile phone accounts now make up most account takeover cases, according to the Cifas Fraudscape 2026 report. A phone number has become the recovery key for almost everything else.

記事は英国の数字を挙げているが,日本はどうなんだろうね。 ショップとかで厳格化された本人確認がどのくらい効いているか知りたいものである。

念のため Kagi Assistant に「eSIM なら SIM スワップのリスクは減るのか」と訊いてみたのだが,SIM スワップ攻撃は基本的にソーシャルエンジニアリングなので eSIM だけで SIM スワップを防げるとは限らない,と言われた。 そりゃ,まぁ,そーだ(笑)

SMS 認証に代えて

記事では SMS など電話番号に紐づく認証手段から別の手段へ移行することを推奨している。 具体的には

  • TOTP 認証アプリ
  • ハードウェアセキュリティキーを使った認証
  • パスキー(FIDO2)認証

を挙げている。 運用にもよるが,物理キーや(公開鍵認証を行う)パスキー認証は有力な選択肢だろう。 パスワードと TOTP 認証を組み合わせる二要素認証も,SIM スワップによるリスクを低減できる。

最近は TOTP や FIDO2 に対応したパスワード管理ツールも増えているので,スマホやブラウザへの依存を減らしつつ,安全な認証手段を利用できるだろう。 以下は,私が使っているパスワード管理アプリでパスキー認証を行う際に参考となる記事だ。

あとは利用してるサービスの認証方法の洗い出しかね。 企業とかで管理者アカウントを持っている場合は優先順位を決めて対応していくのがいいらしい。

  • Email administration: Email is the recovery route for almost everything else. An attacker with your email admin account can reset their way into the rest of your systems.
  • Finance and payroll platforms: These accounts can move money.
  • Domain registrars and cloud consoles: These control your websites and infrastructure.
  • Everything else: Lower-risk tools can move on a slower schedule.

SIM スワップへの対応は最初の1時間が肝心らしい

SIM スワップの兆候は些細なことから始まる。 電波が届くはずの場所なのに突然圏外になったり(しかも再起動しても直らない)。 同じ頃に覚えのないログイン通知やパスワードリセット通知などが来たら,SIM スワップを疑うべきだろう。

SIM スワップかなと思ったら,最初の1時間が肝心らしい。

The first hour is critical. The attacker is working through account recovery one account at a time, and every minute gives them more access. Act fast:

  1. Contact the carrier from another phone or through its online support. Report the unauthorized swap and ask them to freeze and recover the number.
  2. Secure the accounts the number protects, starting with email. Change passwords from a trusted device and sign out of all active sessions.
  3. In the UK, report the incident to Action Fraud, the national reporting center for fraud and cybercrime. Reports support investigations and push carriers and banks to tighten their checks.

Your business can also reduce the risk on the carrier side. Most carriers offer extra protections, such as a SIM lock, port freeze, or account PIN, that add a check before any transfer.

3番目は英国の話だが,日本だと警察庁の通報窓口があるらしい。 ただし,人命に関わる事案など緊急を要する場合は110番でもOKだそうな。

The lasting fix is to make sure a phone number can’t unlock your business accounts.

【おまけ】電子メールを Out-of-Band 認証に使ってはいけない

SMS 認証はしないほうがいいという話は世間的にもかなり認知されたと思うが,じゃあってんで電子メールを認証に使うサービスがポツポツあるのが気になっている。 NIST SP 800-63 では,電子メールを Out-of-Band 認証として使用するのは NG である。

Email SHALL NOT be used for out-of-band authentication because it may be vulnerable to:

  • Access using only a password
  • Interception in transit or at intermediate mail servers
  • Rerouting attacks, such as those caused by Domain Name System (DNS) spoofing

Confirmation codes that are sent to validate email addresses or are issued as recovery codes (see Sec. 4.2.1.2) are not authentication processes and not affected by the above prohibition.

例外として,上の引用にあるように,メールアドレスの確認やリカバリコード送信のために電子メールを使うのは問題ない。 ただし,期限を切って運用する必要がある(電子メールの場合は最大でも24時間)。

というわけで,電子メールを Out-of-Band 認証には使ってはいけない。

ブックマーク

参考図書

photo
セキュリティはなぜやぶられたのか
ブルース・シュナイアー (著), 井口 耕二 (翻訳)
日経BP 2007-02-15
単行本
4822283100 (ASIN), 9784822283100 (EAN), 4822283100 (ISBN)
評価     

[Comment] 原書のタイトルが “Beyond Fear: Thinking Sensibly About Security in an Uncertain World” なのに対して日本語タイトルがどうしようもなくヘボいが中身は名著。とりあえず読んどきなはれ。ゼロ年代当時 9.11 およびその後の米国のセキュリティ政策と深く関連している内容なので,そのへんを加味して読むとよい。

reviewed by Spiegel on 2019-02-11 (powered by PA-APIv5)

photo
信頼と裏切りの社会
ブルース・シュナイアー (著), 山形 浩生 (翻訳)
NTT出版 2013-12-24
単行本(ソフトカバー)
4757143044 (ASIN), 9784757143043 (EAN), 4757143044 (ISBN)
評価     

[Comment] 社会における「信頼」とは。

reviewed by Spiegel on 2015-11-28 (powered by PA-APIv5)


  1. パスキー認証は FIDO2 (WebAuthn/CTAP2) に基づく認証方式で,秘密鍵をユーザ側の端末(または CTAP2 でやり取りできる Authenticator)内に保持し,公開鍵をサービス・サーバに登録することで認証を行う。実はパスキー認証には同期型とデバイス固定型があり,同期型は端末間で秘密鍵を同期できる。同期型のパスキー認証は実装条件によっては AAL (Authenticator Assurance Level) の 2 は達成し得るが AAL3 としては不適格とされている(実質的に秘密鍵をエクスポートできるため)。私たちが普段「パスキー認証」と呼んでいるものは,この同期型のことを指すことが多いため “Syncable Authenticators” の章が設けられていると思われる。 ↩︎