Blog

安全なコーディング手法:タップジャックについて話そう

October 31, 2017
ピーター・ド・クレマー

「タップ」と「ハイジャック」を組み合わせたタップジャックは、まさにそれを意味します。これは、攻撃者がユーザーのタップをハイジャックして、意図しないことをするように仕向ける攻撃です。では、この攻撃はどのように機能し、どのように防ぐことができるのでしょうか。

ストーリーはスクリーンオーバーレイから始めます。スクリーンオーバーレイ、またはGoogleが言うところの「TYPE_APPLICATION_OVERLAY」タイプのウィンドウ。 これらは他のアプリの上部に描画されるウィンドウで、通常は画面の一部のみが見えにくくなります。これらは、アプリが新しい権限をリクエストするときによく使用されます (下の画像の例のように)。

Allow Application To Access Your Contact Popup

これは実際にはクールで楽しい機能であり、ますます多くのアプリが使用され始めています。下のスクリーンショットのように、Facebookのチャットバブルや、画面の隅にあるGoogleマップのナビゲーションについて考えてみてください。

Secure Code Warrior Introduction Video

ただし、これらのオーバーレイにはセキュリティ上のリスクが伴います。アクティブなスクリーンオーバーレイはどれもタップを聞き取ることができますが、バブルをタップまたはドラッグしたことをFacebookが知るにはどうすればよいでしょうか?これにより、アプリがユーザーをスパイし、パスワードやクレジットカードデータを盗む可能性があります。

さらに一歩進んで、タップジャックという用語の由来にもなっています。オーバーレイは、他のアプリの上に何かを描画して、ユーザーをだましてさまざまなアクションを実行させることができます。ユーザーは自分がオーバーレイを操作していると思っていますが、実際には、タップは基盤となるアプリでもアクションを実行します。こうすることで、この例のように、オーバーレイはユーザーを騙して特定の権限を有効にさせたり、危険な設定を変更させたりすることができます。 古いユーチューブの動画

上のデモ動画は2010年にYouTubeにアップロードされたので、古いバージョンのAndroidで撮影したものです。しかし、この攻撃は今日でもなお重要であり、 脆弱性 ヌガーやマシュマロなどの新しいバージョンのAndroidでタップジャックを許可することが明らかになりました。

それで、あなたはそれについて何ができるでしょうか?ユーザーとしては、これらのオーバーレイがもたらす影響を認識し、オーバーレイを使用するアプリについて知っておくことが重要です。API レベル 23 (Android 6.0 マシュマロ) 以降、この権限は次のような権限になりました。 ユーザーによる明示的な許可が必要です。しかし、それは去ります アンドロイドの 50%ユーザーは依然として脆弱です。どのアプリがこの権限を使用しているかは、「他のアプリの上に表示する」の設定で引き続き確認できます。

開発者の責任は、ユーザーのアクションがユーザーの完全な知識と同意を得て行われるようにすることです。Android では、そのためのビュー設定として、次のような設定が用意されています。 フィルタータッチがぼやけている場合。 これを有効にすると、ビューウィンドウが別の表示ウィンドウに隠れると、フレームワークは受け取ったタッチを破棄します。それだけ簡単なので、設定してください。 不明瞭になったらタッチをフィルタする true に設定すると、アプリはタップジャッキングから安全になります。

頑張って、また来週会いましょう!

許可リクエストの付与、購入、広告のクリックなど、ユーザーの十分な知識と同意を得た上でアクションが実行されていることをアプリケーションで確認できることが不可欠な場合があります。残念なことに、悪意のあるアプリケーションが、ビューの意図された目的を隠すことで、気づかないうちにユーザーを騙してこれらのアクションを実行させようとする可能性があります。

https://developer.android.com/reference/android/view/View.html

キャッチフレーズ

Govern AI-driven development before it ships

Measure AI-assisted risk, enforce secure coding policy at commit, and accelerate secure delivery across your SDLC.

book a demo
キャッチフレーズ

Explore more blogs

これは、オーラが射手と鼻の穴を広げることによって、腸管を熱的に発芽させ、臭いを帯びていることを防ぐためのものです。

browse all
Case Study
Filter Label
This is some text inside of a div block.

Supercharged Security Awareness: How Tournaments are Inspiring Developers at Erste Group

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Learn More
Case Study
Filter Label
This is some text inside of a div block.

Security as culture: How Blue Prism cultivates world-class secure developers

Learn how Blue Prism, the global leader in intelligent automation for the enterprise, used Secure Code Warrior's agile learning platform to create a security-first culture with their developers, achieve their business goals, and ship secure code at speed

Learn More
Case Study
Filter Label
This is some text inside of a div block.

One Culture of Security: How Sage built their security champions program with agile secure code learning

Discover how Sage enhanced security with a flexible, relationship-focused approach, creating 200+ security champions and achieving measurable risk reduction.

Learn More
Blog
Filter Label
This is some text inside of a div block.

Are you a CISO or Engineering Leader worried about the Security and Cost of LLM code generation?

Review the SCW AI Trust Index, our proprietary LLM benchmarking data, before going all-in on an AI model.

Learn More
Blog
Filter Label
This is some text inside of a div block.

Enabler 6: Regular Reporting to Leadership

Executive buy-in doesn't sustain itself. Enabler 6 shows how regular reporting keeps leadership engaged, informed, and invested in program success.

Learn More
Blog
Filter Label
This is some text inside of a div block.

The Future of AI Software Governance Is Built on Strong Partnerships

Discover why Secure Code Warrior is becoming a channel-first company and how trusted partners help organizations adopt AI Software Governance securely and at scale.

Learn More

Secure AI-driven development before it ships

See developer risk, enforce policy, and prevent vulnerabilities across your software development lifecycle.

Book a demo