AI時代のモバイルアプリセキュリティ:Guardsquareが語る攻撃と防御

Mobile App Security in the Age of AI Attacks

Software Engineering Daily38分
AI時代のモバイルアプリセキュリティ:Guardsquareが語る攻撃と防御

AI時代のモバイルアプリセキュリティ:Guardsquareが語る攻撃と防御

Software Engineering Daily

0:0038:38

要約

Guardsquare の開発者向け広報を務める Arthur Bernier Jr. が、Gregor Vand と共にモバイルアプリへの攻撃と防御を語った回。開発者が制御できない端末(root化端末やエミュレータ)でアプリが動く点を前提に、本人確認の偽装、NFCリレー、ボットによるAPI悪用、Frankenstein fraud を解説した。対策として難読化、RASP、アプリ構成証明(attestation)の組み合わせと、秘密情報は必ず漏れると考える実践的な初手を挙げている。

この回のポイント

  • ●公開されたアプリは root 化端末やエミュレータなど開発者が制御できない環境で動くため、Frida などでカメラAPIをフックし、ディープフェイク動画を差し込む本人確認の偽装が可能だと述べている。
  • ●NFCリレー攻撃では「セッション切れ、カードをタップして再認証」といった偽の表示でユーザーにタップさせ、カード情報を遠隔の攻撃者へ中継する。カードデータは本物なので正規取引に見えるという。
  • ●AIにより攻撃のハードルとコストが下がり、APIコールをリバースエンジニアリングして大規模に再生するボット攻撃が容易になっている。アジア太平洋地域の金融アプリでの事例にも触れた。
  • ●Guardsquare は名前の難読化だけでなく制御フローや算術の難読化を行い、バイナリを再コンパイルしてコード内部に防御を埋め込む。完全に破られないことはないが、攻撃コストを上げることが狙いだと説明する。
  • ●クライアント側の堅牢化(RASP、難読化、アンチフック)とサーバー側の attestation 検証は両方必要で、片方だけでは回避されるか、偽造可能なテレメトリに依存してしまうと述べている。
  • ●実践策として、コード内の秘密情報は漏れる前提で扱う、リクエストに紐づく attestation トークンを使う、検知時にすぐクラッシュさせず攻撃者へヒントを与えない、といった点を挙げた。

章立て

  1. ゲスト紹介と経歴

    Arthur がスタートアップのCTOや教育活動を経て、AI による攻撃自動化への関心からセキュリティ分野に進み Guardsquare に至った経緯を語る。

  2. 本人確認(KYC)攻撃と脅威モデル

    エミュレータやroot化端末、Frida によるカメラ処理のフックで偽映像を注入する手口を説明。ユーザー自身の改変とマルウェアという二つの脅威モデルも議論した。

  3. RASP とアプリ構成証明による防御

    実行中の不審な挙動を検知する RASP と、実行環境がサーバー側ポリシーに合うか検証する attestation を紹介する。

  4. NFCリレー攻撃

    偽プロンプトでカードのタップを誘導し、遠隔の攻撃者へ中継する手口と、データが正規であるため検知しにくい点を解説。

  5. ボットによるAPI悪用と難読化

    AIが攻撃の敷居を下げる状況と、APIのリバースとリプレイ攻撃の事例。制御フローや算術の難読化と、バイナリへの直接埋め込みを説明する。

  6. アプリストア審査の限界とクライアント/サーバー両面の防御

    ストア審査では防げない攻撃があること、attestation の意味、クライアント堅牢化とサーバー検証の両方が必要な理由を述べる。

  7. 開発者への実践的助言とFrankenstein fraud

    秘密情報は漏れる前提、リクエスト結合型 attestation、沈黙の失敗モードを推奨。合成IDによる Frankenstein fraud も説明した。

  8. 学習の始め方

    公開トライアルはないため、オープンソースの ProGuard や攻撃の再現、Frida を使った学習を勧めている。

解説記事

モバイルアプリのセキュリティをテーマに、Guardsquare で開発者向け広報を担当する Arthur Bernier Jr. が、ホストの Gregor Vand と語った回である。AIによって攻撃の技術的ハードルとコストが下がる中、アプリが「制御できない環境」で動く現実と、その防ぎ方が主題となった。なお本稿は番組での発言に基づき、Guardsquare の製品に関する説明は同社関係者の主張として紹介する。

制御できない環境で動くアプリ

Arthur が繰り返し強調したのは、サーバー上のコードと違い、公開されたモバイルアプリは開発者が管理できない端末で動くという点だ。root化・脱獄した端末やエミュレータ上で、攻撃者は自由にアプリを調べ、改変し、フックできる。

具体例として挙げられたのが本人確認(KYC)の偽装である。Frida のような動的解析ツールでカメラAPIをフックすれば、映像パイプライン全体を横取りし、ディープフェイクで作った録画映像や静止画を差し込める。顔認証があるから安全だと思っていた、と Arthur 自身が認識を改めた経験を語っている。脅威モデルは二つあり、端末の持ち主自身が改変する場合と、フィッシングなどで偽アプリやマルウェアを入れられた善良なユーザーの場合がある。さらに、攻撃者は一部の人が引っかかれば成立する規模でキャンペーンを展開すると指摘した。

NFCリレーとボット攻撃

NFCリレー攻撃は、被害者にカードをタップさせ、そのやり取りを遠隔の攻撃者へ中継する手口だ。背景で動くマルウェアが対象の操作を検知し、「セッションが切れました。カードをタップして再認証してください」といった偽の表示を出して誘導する。カードデータは本物で、決済ネットワークとの暗号的なハンドシェイクも保たれるため、バックエンドからは有効なカード取引に見えるという。Guardsquare の研究者によるデモ動画が同社サイトにあるとのことで、番組ノートにリンクが載る予定だ。

ボットによる自動化攻撃では、アプリのAPIコールをリバースエンジニアリングで特定し、UIを介さずサーバーへ大規模に再生する。Arthur はアジア太平洋地域の金融アプリで同様の攻撃が広がった事例に触れた。加えて、AIが攻撃のハードルを下げ、フロンティアモデルにガードレールがあっても自前で動かせるモデルが使われると述べている。盗んだ個人情報を組み合わせて架空の身元を作り、ディープフェイクで本人確認を通す「Frankenstein fraud」も増加していると説明された。

防御の三本柱:難読化・RASP・attestation

Guardsquare のアプローチは大きく三つに分けられる。

  • 難読化:名前の難読化だけでは関数やクラスの中身が読めてしまうため、制御フロー(if/else など)や算術式の難読化も行う。
  • RASP(実行時アプリ自己防御):アプリ実行中の改ざん、フック、危険な環境を検知して対応する。
  • アプリ attestation:サーバー側のポリシーに照らして実行環境とバイナリの真正性を検証し、満たさなければAPI呼び出しを拒否、追加検証、ログ記録などを選べる。

Arthur によれば、同社の特徴はSDKを追加するのではなく、アプリのバイナリを再コンパイルして防御をコード内部に埋め込む点にある。ただし完全に破られないことはないと認めており、目標は「攻撃にコストのかかる硬い標的」になることだとしている。ProGuard が元々サイズ削減のツールで、創業者がそこから DexGuard などへ発展させた経緯も紹介された。

アプリストアの審査があれば十分ではないか、という疑問には、審査はダウンロード後の静的解析や、root化端末上での実行時攻撃を防がないと答えている。また attestation は本人性や意図の証明ではなく、リクエストが要件を満たす環境から来ていることの証拠にすぎない、とも位置づけた。クライアント側だけでは回避され、サーバー検証だけでは偽造可能なテレメトリに頼ることになるため、両方が必要だという。

明日からできる初手

Guardsquare を導入していない開発者向けの助言は実践的だった。

  1. コード内の秘密情報(APIキーや mTLS 証明書)は必ず漏れると想定し、できる限り埋め込まない。ユーザーが300人でも読まれる可能性があり、権限次第ではクラウド資源を悪用されうる。
  2. attestation トークンをリクエスト本文とパラメータのハッシュに暗号的に結び付け、傍受後にペイロードを書き換えても無効になるようにする。
  3. root化検知時にすぐクラッシュさせない。攻撃者に検知されたと伝えてしまい、回避の試行を助けるため、フィードバックを与えない「静かな失敗」を勧める。

学習面では、公開トライアルはないため、オープンソースの ProGuard のルール記述に触れ、Frida などで攻撃を自分で再現してみることを勧めている。

まとめ

本回の核心は、クライアントは信頼できない前提でセキュリティを設計するという発想である。日本でも金融、決済、eKYC を扱うアプリは増えており、カメラのフックやNFC中継、API再生といった手口は他人事ではない。秘密情報を埋め込まない、サーバー側で環境を検証する、失敗を攻撃者に教えない、といった原則は特定製品に依存せず取り入れられる。製品の有効性は発言者側の説明である点に留意しつつ、攻撃手口の理解を深める入口として価値のある内容だ。

文字起こし(英語・自動生成)

Although mobile apps are designed to run on specific devices, they almost inevitably end up running in environments their developers cannot control. Unlike code on a server, a published app can run on a rooted device or an emulator where an attacker is free to inspect it, tamper with it, and hook into it. That risk has only grown as AI lowers the skill and cost of attacks. GuardSquare is a mobile application security company built for exactly that problem. Its tools harden an app from the inside so it can defend itself in environments the developer doesn't control, resisting reverse engineering, detecting tampering, and verifying that requests come from a genuine, untampered version of the app. Arthur Bernier Jr. works in developer relations at GuardSquare. In this episode, he joins Gregor Vann to talk about the state of mobile app security and walks through common attacks like identity verification spoofing, NFC relay, and bot-driven API abuse.

He also discusses how GuardSquare stack defends against them through obfuscation, runtime checks, and app attestation, and the practical first steps any developer can take, starting with assuming that every secret in their code will eventually leak. Gregor Vand is a security-focused technologist, having previously been a CTO across cybersecurity, cyber insurance, and general software engineering companies. He is based in Singapore and can be found via his profile at van.hk or on LinkedIn. Hello and welcome to Software Engineering Daily. My guest today is Arthur Bernier Jr. Welcome, Arthur. Yeah, thank you. Thank you for having me here today. I appreciate it. Yeah, so Arthur, you are developer relations at GuardSquare. This is a company some listeners may be familiar with.

We did have an episode with GuardSquare. Obviously, things have moved along since then in the mobile app security space, so we're going to be hearing all about that today. I'd love to hear your kind of history, Arthur, like your developer history and how you made it to GuardSquare and why you're doing what you're doing at GuardSquare. Yeah, sure. I'd love to. Yeah, so I've been a software engineer for a number of years now, and even before that, like going back to when I was a teenager, had like a little business making websites and being a webmaster. So been around this for about 20 years now. I can't believe that's the case. Makes me feel old. But but but in more recent years, I've worked at a number of different startups. I actually co-founded a startup that was venture back. We raised three point five million venture capital. I was the CTO. I had like a team of about 15 to 20 software engineers. We did some great work. And then I ended up, you know, after we exited, I ended up working at a Silicon Valley company, space company, and I was a tech lead there.

That was pretty awesome as well. And more recently, I had been doing a lot of like, you know, hackathons and things like that, kind of like more on a freelance kind of basis and also teaching. because I had been teaching part-time already for a while, and that teaching part-time at coding boot camps and things of that nature kind of like lent itself to me getting more and more into trying to enable developers to be successful. And it led me to a couple of different companies, a couple of different projects I was working on. I ended up speaking at Afrotech and doing their first AI engineering certification course. And then I kind of pivoted to getting more into security. And the reason for that is because we see all this stuff happening with AI, you always have to think about, okay, if there is this new thing that comes out, there's always going to be these, I don't think no answer is the right word, but these other things that kind of pop up that kind of are enabled as a result of that. And the big thing to me was as we is that one of the big things is like all these bots and things like that that are getting easier to automate, getting easier to automate all these attacks and all these things.

And, you know, that's kind of what we want to talk about today is the people that are enabling people to defend against those things. There's going to be a big growth there. And so I wanted to be a part of that. So I started doing more research, learning about that. I ran into GuardSquare and realized they were a leader in that. when I applied to work here. I mean, I've learned a lot since I've been here, and that's how I got here. It's probably not that glamorous, but that's how I got to want to be in mobile application security. Yeah, very, very cool. I think that's it. Well, you say it's unglamorous, but I mean, I think that's most people's stories, which is great to hear kind of the real version. And also getting into security, I had kind of a similar path where sort of I suddenly found myself in security, has to learn a lot but yeah i really had a great time deep in that industry i'm not particularly in security day to day now i mean it's more just building secure things you kind of comes with a job but um but i think it is a really it's great to do kind of like a turn in security even if it's

not something that someone kind of started out doing and i think it's also misunderstood that the only people that work in security are the ones that sort of picked it up when they were five or something. So yeah, that's great. So today, obviously, we were talking a lot about mobile app security, or mobile, depending on which side of the world you're on. And we're going to be hearing just about all the kind of the different types of attacks that can manifest as part of a mobile app. And then obviously how GuardSquare's stack does protect against those. So I think, yeah, like the first, we're going to kind of go through some different types of attack. And then And then, yeah, and then hear how it can be sort of remediated or protected against is really the better way of looking at it. The first one is, like, KYC, so, like, know your customer and, like, identity verification attacks. What's, like, a typical way that an attacker would end up defeating, you know, we've got, like, I'm thinking, okay, there's an app and it sort of asks me to produce my face and some other kind of identity verification as part of the onboarding.

like a banking app obviously comes to mind, but I feel like a lot of apps are kind of going this way now, but they just really want to know who's using it. So yeah, how do attackers tend to try and defeat this? Yeah. So this is actually one of the most interesting things that I noticed once I kind of got deeper into security was because in my head, as long as my face ID was on my phone, like I just felt like that was the end all be all if it's not my face I can't get in unless I had like a evil twin that I don't know about somewhere like I thought I was pretty much safe and what I kind of started to see and learned a little bit more about is not like somebody has to like put on one of those life model decoy masks or whatever from like the comic books in order to make themselves look like you or to put like a cut out in front of like your face what they can do is they can actually take your application and run it on like a device emulator or like a rooted device. And they can use dynamic tools.

I kind of almost don't want to give anybody ideas about how to do it themselves. But, you know, you can use dynamic tools like Frito on the client side and stuff like that and actually spoof what's happening in the camera APIs and things of that nature. Because if you make right, right, right, like a hook, you can like intercept like the whole video pipeline, and you can inject pre-recorded video loops that were deep faked. You can insert static images, all type of stuff, in order to make it look like another human being. And that's something that was kind of mind-boggling, how easy it is to do that. And that kind of goes into the reason why mobile application security is so important, is because when you, as a developer, write the code, you're used to writing the code and having to run a lot of the time on an environment that you can control. Like you're used to running on the server and things of that nature. Even running the browser, there's some issues, but it's a little bit different. But you're used to that being the case. When your application code runs, when you wrote runs,

it runs in an environment that you 100% can't control. I mean, it can just be a user's device, and you can make some assumptions about that. But it 100% can run on a rooted device, an emulator, all these other different type of environments that you don't control. And they can do a lot of hocus pocus, for lack of a better term, to make things appear a way that you don't want it to appear. And it's kind of like two threat models, right? Like a user can tamper with their own phone like deliberately, but also there can be malware on the user's phone that then does the tampering like, well, say for the user, but against the user, I guess. Exactly. It could be the user themselves. It could be just a bad actor owns a device and they just have their device set up in such a way that they can do whatever they want. They can have the device rooted or jailbroken if you're talking about iPhone, et cetera. So that's something that could be the case. but also the user might just be a regular law abiding citizen trying to do the right thing.

And they could have fell for one of those phishing emails or something like that and downloaded an improper version of the application that happens to have been changed in some way of that individual app And then also they could have downloaded some malware, like you said, that's running somewhere else, such as waiting for certain applications to do certain actions so it can intercept and do something that the user wasn't trying to do. So all of those things are a possibility, and you have to have all that in mind when you're building your applications. Yeah, and I guess a common way this manifests from a technical perspective is like an overlay. So like an overlay on kind of user, is there anything that you're aware of, like especially given your day-to-day now, where a user could actually tell if an overlay is kind of present? Anything that they can look out for, or is this kind of precisely what GuardSquare? Like, that's why you should use Garsquare. I mean, I'm just curious. I'll say it's not impossible to be able to tell,

depending on the developer, how good the actual bad actor was at employing what they did. Because they could do things where they specifically, like, target, let's say, one of the system pop-ups that will pop up and change the way that that looks. So that even when you're doing the wrong thing, you think that, oh, I just have to click OK, and there's no problem. Like they're trying to socially engineer you to not realize you're doing something wrong. So it is possible to be able to see and notice like that looks a little weird or why is that popping up at this time? But the average everyday user is not going to do that. And they're deploying these malware campaigns at such a large scale that they don't need 50 percent of people to fall for it. They only need a small amount of people to be able to fall for it. and the people that are most likely to fall for it are also the people that would at least be able to defend against it once it occurred. So yes and no. So, yeah, and I think this is maybe where developers sometimes forget the end user,

or like when I say forget the end, forget the kind of persona of the end user. It could be anyone. It's often much less technical than themselves. So something that might appear obvious to a developer, they say, there's no way someone, even if this thing managed to kind of overlay on the app, there's no way someone would actually fall for this, whereas actually I think we see that that's not the case at all. What is it sort of then within GuardSquare stack, then like which part of that stack is then able to sort of defend against these, yeah, whether it's overlay or just general KYC verification attacks? Well, when it comes to those type of things, we actually have RASP checks, right? So it's runtime application self-protection for those that haven't heard of it. So we can detect and respond to any, like, suspicious things that are happening in the app while it's actually running. So that's one thing that we 100% can do. And then the other piece of it, knowing, like, what environment the app is running in, we also have a feature that people can add as well called app attestation,

where we can verify that the environment that the application is running in fits, you know, a number of different policies that will be on the server side. So if it doesn't match with those policies, then we can actually reject the API call. So those are some of the things that could be done in order to deal with that. And we do that in our stack. Nice. Yeah, the attestation piece, we'd definitely like to talk about that more later on. So looking at like a slightly different type of attack So NFC, like near field communication And tap to pay attacks So like how, again, sort of just maybe walk us through Like what does that even look like And sort of encompass from an attack perspective When we're dealing with the NFC relay For those that don't know what it is It's like we trick a victim into like tapping a card And then we relay the interaction to a remote attacker So that's essentially what we're talking about there.

And there's different approaches that you could have to that. So on device level versus like an app level exploitation. So on app level, the logic kind of assumes that the tap is going to be physical and localized. So the device level interception grabs the raw radio frequency signals. And then before the app, security boundaries can even take over and do anything about it. And then there's also malware-based injection approaches where the background malware detects, like, the target activities and triggers, like, a deceptive prompt. So just like we're talking about something popping up, and it'll say something like, session expired, tap the card to re-verify, and things of that nature, and then kind of intercept it that way. So it kind of, like, gets them to do that. So when the victim taps, the malware is going to intercept, like, the raw NFC data directly through that with all the system privileges that it needs. So that's kind of what's happening there. And there's difficulties there, and it's kind of invisible because all the card data is 100% authentic,

and the cryptographic handshake with the payment network is intact, and the back-end processors see a valid card present. Like, everything kind of happens like we expect it to happen. I think Garsquare has, like, a sort of what's almost like a demo chain. So it's like, I think there is like an article where Garthikov showed like activity injection overlay, faking a logout and asking for a tap. Is that something that a developer can go and like watch and see how this all unfolds, I guess? Yeah, definitely. I believe we have a video where one of our security researchers, I think it might have been Jan, where he actually showed how to actually perform this exact attack. And we have a lot of those videos on our website, so I would definitely recommend to take a look at it for anybody that wants to dive deeper into them because we have a lot of, like, examples and things of that nature. So I want to say that there's a video on our website that has exactly that. So I don't know if it's possible for us to give you that link and share it somewhere within some episode notes or something like that.

Yeah, we can put it in notes. But, yeah, as you said, it was from Jan Szerodniewski. I probably pronounced that wrong, but look that up. and we'll put the link in the show notes. So again, I guess going back to the stack, how again does GuardSquare therefore prevent this from happening if GuardSquare is part of a developer's mobile app? Yes, specifically with these type of attacks, like in our point to the malware approach, like our ability to be able to have those runtime checks is going to be able to help prevent things like this from happening because we're able to detect, you know, if there's another application trying to do something, we're able to detect the environment. If there's an active attack, so we're able to do that with our RAS checks. Nice. So another type of attack, I guess, is just basically bots and sort of automated abuse. So could you walk us through what is that? How does that manifest? Yeah. So when it comes to bots, you know, that automate attacks, the way that you want to think about it,

This is the thing I kind of want to talk about the most is is when it comes to performing these attacks, obviously, AI can make a lot of these things easier to perform. And before there used to be you'd have to be a security professional in order to enact a lot of these attacks. But now AI kind of shortens the curve and allows you to get help in actually performing some of these attacks themselves. And there's even though there's some guardrails set on most of the frontier models, there's obviously models that you can run yourself. And that's what, you know, the attacker is normally using in order to make that happen. So you have that. Then you also have the automation piece is when bad actors are buying personally identifying information on the dark Web. and they're piecing together all of these different types of stolen identities and things of that nature. They've always used some type of automation in order to make that happen. But obviously AI lets you be able to do that on an even larger, faster scale.

And I think one way that this sort of manifests is reverse engineering an API call and then effectively just replaying that at scale. And so the UI never really comes into it. It's the fact that whether a bot does it in the first instance but effectively reverse engineering what API call the mobile app is making in the first instance to the server, I guess. And then, but then I say replaying it at scale, which is obviously, as you're saying, can be done in such a huge, huge scale way when it comes to bots. Any sort of industry examples or like specific examples of where you've seen this play out? I mean, we've seen a few. I know there was a attack specifically in the Asia Pacific region where essentially this exact thing was happening, where essentially what happened is there were attacks that were focused on, like, financial applications, and what they were doing is that they were taking the applications. They were reverse engineering the application, just like you mentioned, and then from that reverse engineered application, they were reading what the API calls are, et cetera,

figuring out what those are, and then automating the process of making those API calls directly to the server. And if they didn't have anything in place to make that a thing, they were able to do a lot of really, really bad things, and actually it became pretty widespread before it was caught and found. And there a lot of different ways that you can help prevent yourself from being super susceptible to that Like of course you could do obfuscation and things of that nature And not just regular like name obfuscation because that the first thing people think about Because even once you reverse that into your application, you just did name obfuscation. You still can read all of the stuff within the functions and classes. The important thing is you want to obfuscate a little bit deeper than that. And that's something that we do at GuardSquare, of course. So our company is actually one of, like, the originators of doing obfuscation on mobile apps. There was a lot of people probably familiar with ProGuard, like a lot of developers are, since it's such a big integral part of the Android ecosystem.

Our founder actually created that initially, and it was really just to, like, you know, shrink the size of, shrink the bundle size, et cetera. But people did see there was some security benefits to it, so he took it a step further, and that's how he ended up coming up with DexCard and eventually IxCard and more of the product suite that we have now at GuardSquare. Well, yeah, but when it comes specifically to that, like we don't just do name obfuscation. We do control flow obfuscation. So we'll literally take the individual control flow code, if else, et cetera, and we will obfuscate that and make it super difficult to follow the logical progression of things that are happening in the application. So it's harder to know what's happening there. We will also do arithmetic obfuscation, which is pretty cool. If you've never seen it happen, you may have like 2 plus 2 equals 4. The obfuscation of that will still evaluate the 4, but it's going to look really crazy. And, you know, we're just looking at it. It's going to be really, really hard to figure out. And then the cool thing about what we're doing specifically in GuardSquare that I think is one of the primary benefits that we have in our command line tools

is that we're not just like wrapping the application with like a fortress that you have to like kind of come through. What we do is we actually take your code and we're actually going to inject all of our stuff directly inside of it because we actually will take the binary and our stuff is, we were recompiling the application. So it's directly within what you're sending to the store. We're not just like an SDK. It's kind of like you're going to import because, you know, that can be intercepted, et cetera. We're literally live inside your code. Like we're going to take what you would have sent to the App Store, the Google Play Store, and we're literally changing that. So our stuff is directly inside of it. And we try to reverse engineer one of the things that have been obfuscated with our code correctly, at least. You can't even read it. Like the computer is going to look at it and be like, what? Like it's not even going to be able to understand like the spaghetti that comes out of it, which is what we want. Now, there's never a time where, like, it's completely impossible for your app to be cracked. But all you're really trying to do is make sure that you are a hard target.

Like, it's really, really hard to be able to reverse engineer and figure out what's happening inside your application. You want to make it, like, as expensive and difficult, you know, as possible. So something that you kind of touched on there There are app stores in the two big ecosystems Apple and Google Like the Play Store and the Apple App Store And I think there's maybe a misconception that You can sort of just rely on them To be able to trust the Oh, doesn't an app go through a trust process To get into the app store in the first place So why is it actually important to Effectively not just trust that and actually have GuardSquare as part of the application itself. Really, it's kind of like a partnership between you and those app stores in order to protect the users. So all of those other things that I mentioned, for example, like reverse engineering the application, things of that nature and all the stuff like that, you put your great, wonderful code into the app store.

Somebody downloads that onto a rooted device and they also reverse engineer this and understand how this works and how that works. They can still figure out exactly what's happening in your application, and that's not even dependent on them actually doing something to the app itself while it's running. They're just scanning it for who you're talking to, you know, what APIs are being called, is there any secrets that they find in there, et cetera. Like, the app sort of doesn't protect you from any of those things, right? So that's one. And then also the features that are on the mobile device are made to have like accessibility and all these other things that allow you as a developer to be able to use and create these awesome experiences for the user. But the bad actors have access to all that stuff as well. So with that said, there's ways that they can affect your application itself. And it doesn't even have to be, like I said, an OS level attack, but it 100 percent can be. but there's a lot of ways to attack your application, attack your users as a result of, even if your application is approved and it's in the app store,

because they're not preventing those things from happening. And there seems to be, again, you have touched on it earlier, but yeah, the remote key attestation. So, you know, attestation being, can one tell where something is really from? So, you know, it's a software land that's like, do you trust the person that put this thing together? Is it definitely the binary that is definitely from, to take an example, like, is it definitely the Node.js binary from the Node repo, or has this been, like, swapped out with something else? So with mobile application stores, you know, you've got a remote key that would attest that it is the app that it says it is, but actually we're seeing that being kind of, like, faked, I guess. And, yeah, could you speak at all to that? Like, how is that sort of playing out? And is that something that GuarSquare can guard against, or is it more something that has to be sort of kept on top of for now? Yeah. Yeah, definitely. So when it comes to that app attestation and being able to verify that it's your app making the API calls, et cetera,

again, like I said, nothing is 100% foolproof, but the great thing here is that you can provide some verifiable environment evidence, So some really, really strong evidence that can be presented to the server that essentially validates that everything is authentic, that it's fresh, and that the request that's being made is being made from, you know, environment that we're okay with. And that doesn't automatically provide any proof of identity or any intent things, but it does let you verify that at least the requests that are coming in are coming from being made from a device that meets your security requirements. Like I said, if it's not meeting your security requirements, you can decide what you want to do in that case. Like, do you want to automatically reject these requests? Do you want to do a secondary operation to verify something about the request? Do you want to log something? Like, you can make all those choices based on your policies.

But at least you have that to make that decision from, which adds a level of security that you wouldn't have otherwise. Because otherwise, the request comes in, it's from an authenticated user, they're authorized to be able to do certain actions on this set of data, and it just does it. But this gives you a secondary thing to say, like, not only that, is this happening from somewhere that we trust that it should be happening from. Yeah, and like, I guess the sort of follow-on there is looking at, we've talked, I think, actually quite a lot about, like, so the client side, effectively. So, like, client side being, in this case, like the app, the app layer on the phone or tablet, for example. But, I mean, service-side validation is very much needed. Like, can you sort of just speak a little bit to how do the two kind of go together? And, again, where does GarsGrar then come in on both sides of that coin? On the client-side hardening? Yeah, exactly. So, yeah, like, where does the GarsGrar stack, I guess? What are the client-side hardening pieces of the stack?

And then also what are the server-side validation pieces? Gotcha, gotcha, gotcha. So when it comes to the client-side hardening, that's a thing we kind of mentioned, like the RAS checks, obfuscation, anti-hooking things that we have in place. So like we mentioned, the obfuscation is going to slow down the ability to be able to reverse engineer the application, make it very, very difficult to do such. We're going to prevent like dynamic memory inspection, stop like basic tooling things. All of those things are what we're taking care of on the client side, right? On the service side with attestation, like we mentioned, we're verifying the binary integrity. the OS runtime before we're going to trust like the payload coming from the client that's trying to send that payload. So it's not just like a simple anymore as just like, Hey, that person is authorized and authenticated. We're also making sure that binary is trusted. That's not like some version of the application that we didn't have anything to do with that somebody ended up reverse engineering and then tampering with and

adding all this stuff into, and then trying to send the request. We don't want to help them in that process. and also like the OS runtime and all that stuff, like just making sure everything is what we think. And you need both. Like you need client defenses and you need server defenses. Like so if you have client defenses, you don't have server defenses, those client defenses are going to end up getting bypassed. And if you have server validation without client hardening, it's going to rely on all the telemetry that an attacker can potentially forge. So when you put both of them together that how you get like a full stack you know pun intended you know of protection Nice So I guess looking at practical guidance for developers listening today let maybe assume a developer doesn't have GuardSquare today. So what would you say are like the first things that developers now should be doing? Like, let's say they've got one sprint now, they've managed to get a sprint, you know, kind of locked in on whichever platform they use for like ticketing, and they've got their engineering manager on board,

or they should definitely be on board the engineering manager for security. It's usually the other way around. But what would be kind of the first place to start, would you say? Yeah, especially obviously with mobile applications. Yeah, I think one of the biggest things is you should basically assume that any secret that you have in your code is going to leak. I mean, you should really be trying your absolute best to not have secrets written directly into your code. So you've got to stop treating any embedded API keys or MTLS certificates as, like, you can't treat anything that's in your code as something that somebody's not going to read. Just because it's not in the UI doesn't mean that it can't be read. And you just have to believe and trust that, especially today with the scale of attacks that we have. Like, it doesn't matter that your app only has 300 users. somebody's going to get in there, somebody's going to read it, and they're going to pull those things out. And depending on the policy that those API keys or whatever might be in there,

it could be a very bad, expensive day, or it could be just the issue and you've got to rotate. It could be a lot of different things. Yeah, I think what some people, some developers forget sometimes is, okay, a key, give access to your user data, yes. And as you say, maybe you only have 300 users. I mean, you should still want to protect those 300, but maybe it's not top of mind if it's 300 and not 300,000. But then that key could exactly do other things. Maybe, as you say, depending on permissions, could suddenly spin up many EC2 instances on AWS and maybe run models, I don't know, or find ways to run GPUs through AWS on that key. Another thing that I think is important when we're talking about app attestation is you've got to implement request-bound app attestation, right? And what I mean by that is just like your attestation tokens, they've got to cryptographically hash the HTTP request body and the parameters.

So this way if a hacker or an attacker, I should say, intercepts a token and they alter the payload, like you don't want them to be able to do that because otherwise the token is invalidated. So that's another thing to look at as well. And then also adopt like silent failure modes. Like don't make it easier for them to understand what's going on. I remember there was this one time I was teaching a class and one of my students made a little project. And I'll tell you this story because it's pretty hilarious, but it's exactly what we're talking about. But essentially when somebody would like go in and type in the wrong password, it would tell them like that password is incorrect. you know or whatever the case may be you never want to tell them that the user's correct you found a user but your password's off like you don't want to give them that type of information or also like saying like you know a lot of times yeah you'd be surprised how many websites still do that still gets me every time yeah it says you know this isn't it took a long time i think for for people to understand that that was just a really easy way to identify a user but

luckily it's getting better. Gotta stop doing things like that. And also don't immediately crash the app when you notice something like it's been rooted or jailbroken or whatever because then that's going to make the attacker be able to figure out oh wait, they noticed this. So let me try to refine it until it works. You need to make sure that you need to know it failed on your side and they need to be confused about they need to not get the feedback directly to them that lets them know that it's not behaving properly. Like, don't make the attacker experience great. Like, make user experience great. Attacker experiences would be horrible. They need to not understand if they're doing a good or bad job at any given time. Don't make their life easier in any way. Yeah, I think that's a really good one. I like that. Yeah, because exactly, it could be seen as, like, oh, good if I crash the app, because then the attacker can stop doing the thing. But actually, yeah, as you say, they'll take that as a signal of, okay, understood. good, this thing doesn't work, let me try something else.

And they'll have the, on the other side, they'll have the signal when it does work because the app will continue and they'll know otherwise. So that's a really good call out. Yeah, there's also a kind of interesting type of, like it's a fraud attack effectively, but it's called like Frankenstein fraud. So yeah, could you speak a bit to that? Like what on earth is Frankenstein fraud? Yes, Frankenstein fraud. That's such a interesting name, right? But essentially what Frankenstein fraud is is when attackers essentially, just like Dr. Frankenstein, they stitch together information from a lot of different sources, a lot of different real information from living, breathing people. And they stitch it together in order to create a stolen identity from all these fabricated details and evidence, et cetera. And then they'll also use deepfakes and bots to help scale the onboarding and abuse by taking all that information, that PII that they've gotten, and create these Frankenstein synthetic profiles that they can then commit fraud with.

and there's been like a big uptick in a lot of these type of attacks, these Frankenstein fraud attacks, especially with the upsurge in deepfake technology, et cetera, which is going to allow you to be able to, one, you have these identities that you've stitched together and created, and then using deepfake technology, then you're able to like pretend to be another person, and you put those two things together, and you're able to create these attacks. So it's an interesting name, but that's essentially what it is. Yeah, and where does then the, I guess, where does the guard square stack kind of fit in in understanding that, I guess that's that sort of the app level understanding that maybe an image has been swapped in where it should be the camera really that's doing the work, but somehow the attacker is able to swap in images. Is that kind of how it works? Yeah, so essentially, like I said, you have that deepfake technology. And Frosters were able to combine, like, the leaked real PII, like we talked about,

but those AI-generated faces and forged IDs. So they're able to essentially use that and replace, like, the live camera feed and, you know, synthetic video and things of that nature to make it look like somebody is actually – is real and pretty much spoof what's happening because you can do camera hooking in order to make that occur. And the big thing – one of the things with GuardSquare is that we have those RAS checks, the runtime application self-protection that's going to detect the tampering and risky environments and things like that that you need in order to make something like that happen. Just looking at GuardSquare specifically, where's the best place for a developer to kind of get going? And like, I don't know, is there a specific product in the GuardSquare stack you think is like the one to get going with in the first instance if a developer doesn't have any of GuardSquare? Or like, how would you advise on that? Yeah, well, we don't have any publicly facing trials or anything like that that you can immediately use. It would need to be something that your team has already had a conversation about,

realizes something that's going to be helpful to them and gotten the ability to be able to use it from there. So there's nothing they can directly use automatically. What I would say for any developer that wanted to get into learning how some of our stuff works is, of course, we have the open source project ProGuard. And I would say definitely get into utilizing ProGuard and understanding how to write rules in there and stuff like that. So that would be a great place to start. And then also, I think it's really a good idea to learn how to actually reproduce some of these attacks yourself, because then you understand what you're actually writing your code against. So understanding that, I think, is super helpful. And we have a lot of different activities and things like that that you can do on our website. so you can look through a lot of our articles and a lot of our published webinars and see some opportunities to kind of fiddle around with things and play with Frida

and kind of see how some of these things work so you can understand how it works directly within your application itself. But that is how I would recommend that we kind of start. Yeah, amazing. Well, yeah, thank you, Arthur, for coming on. and learned a lot today, lots of very interesting types of attack that I probably wasn't aware of these days. So always great to learn about this and then learn about how to protect apps and code. So, yeah, thanks so much for coming on. Yeah, thank you. Thank you for having me. Appreciate it. Hope it was helpful. you

番組の概要欄(原文)

Although mobile apps are designed to run on specific devices, they almost inevitably end up running in environments their developers cannot control. Unlike code on a server, a published app can run on a rooted device or an emulator where an attacker is free to inspect it, tamper with it, and hook into it. That risk has only grown as AI lowers the skill and cost of attacks. Guardsquare is a mobile application security company built for exactly that problem. Its tools harden an app from the inside so it can defend itself in environments the developer doesn’t control, resisting reverse engineering, detecting tampering, and verifying that requests come from a genuine, untampered version of the app. Arthur Bernier Jr. works in Developer Relations at Guardsquare. In this episode, he joins Gregor Vand to talk about the state of mobile app security, and walks through common attacks like identity-verification spoofing, NFC relay, and bot-driven API abuse. He also discusses how Guardsquare’s stack defends against them through obfuscation, runtime checks, and app attestation, and the practical first steps any developer can take, starting with assuming that every secret in their code will eventually leak. Full Disclosure: This episode is sponsored by Guardsquare Sponsorship inquiries: sponsor@softwareengineeringdaily.com The post Mobile App Security in the Age of AI Attacks appeared first on Software Engineering Daily.

出典・この記事について

番組
Software Engineering Daily(Software Engineering Daily)
元の回
Mobile App Security in the Age of AI Attacks
配信日
要約作成日
公式サイト
softwareengineeringdaily.com

この要約・解説記事は、元の音声を文字起こしした内容をもとに AI(Claude)が日本語で作成したものです。 固有名詞や数値に誤りを含む場合があるため、正確な内容は元の音声でご確認ください。制作方法について

X でシェア

関連エピソード