Latest / Ship It Weekly - DevOps, SRE, Platform and Cloud Engineering News / Ship It Conversations: Guardsquare’s Joel DeStefano on Mobile App Security, Runtime Protection, App Hardening, and Why Scanning Isn’t Enough
Transcript
- 0:00Mobile app security is one of those areas where
- 0:03cloud and backend people can get a little too
- 0:06comfortable because in the backend, you control
- 0:09a lot. You control the runtime, you control the
- 0:12servers, you control the network, you control
- 0:15the policies. You can wrap the thing in IAM,
- 0:18logging, monitoring, deployment controls, runtime
- 0:22controls, and a whole pile of infrastructure
- 0:24that at least gives you a fighting chance. Mobile
- 0:27is different. With mobile, you ship the app and
- 0:30now it is out there. It is on someone else's
- 0:33device, in someone else's environment, maybe
- 0:36rooted, maybe jailbroken, maybe running next
- 0:39to malware, maybe sitting in the hands of someone
- 0:42trying to reverse engineer it, hook values, bypass
- 0:45checks. Scrape data, or figure out how your business
- 0:49logic talks to your backend. And that changes
- 0:52the trust model because scanning the app before
- 0:55release matters, but it does not answer the bigger
- 0:58question. What happens after the app leaves your
- 1:01build pipeline? That is really what this conversation
- 1:04is about. Not just mobile scanning, not just
- 1:07App Store approval, not just we don't store secrets
- 1:10in the app, so we're fine. More like, what does
- 1:13mobile app security actually mean? When the thing
- 1:16you shipped is now a public artifact that attackers
- 1:20can pull apart, instrument, modify, and abuse.
- 1:24I'm Brian Teller from Teller's Tech, and this
- 1:26is Ship It Weekly. Welcome back to Ship It Weekly,
- 1:46where I filter the noise and focus on what actually
- 1:49matters when you are the one running infrastructure
- 1:51and owning reliability. Most weeks, it's a quick
- 1:55news recap. In between those, I do conversation
- 1:58episodes with people who are building platforms,
- 2:01running infrastructure, securing applications,
- 2:04and thinking through where this industry is actually
- 2:07headed. Today is one of those conversations.
- 2:10I'm joined by Joel DeStefano from Guardsquare,
- 2:13where he is a product manager. We're talking
- 2:15about mobile app security, what it means beyond
- 2:18basic scanning, why mobile has a different trust
- 2:21model than backend or cloud systems, and how
- 2:25teams can improve posture without turning CI/CD
- 2:28into a nightmare. And I like this conversation
- 2:31because mobile security can be easy for infrastructure
- 2:35teams to underestimate. A lot of us are used
- 2:38to thinking in terms of backend controls, cloud
- 2:41permissions, network boundaries, deployment pipelines,
- 2:45runtime monitoring, secrets management, service
- 2:48to service auth, the usual stuff. But a mobile
- 2:51app is not just another backend service. Once
- 2:54it ships, you do not control the runtime in the
- 2:57same way. You do not control the device. You
- 3:00do not fully control what else is running on
- 3:02that device. And you definitely cannot assume
- 3:05that the OS the App Store or a pre-release scan
- 3:09is going to cover everything for you. You start
- 3:12with the obvious goal. Build the app. Scan the
- 3:15app. Avoid obvious vulnerabilities. Check dependencies.
- 3:19Fix bad TLS configuration. Do not ship secrets.
- 3:23Get through the App Store process. Then reality
- 3:26shows up. Attackers can decompile the app. They
- 3:30can inspect the business logic. They can look
- 3:32for sensitive workflows. They can run debuggers
- 3:35and instrumentation frameworks. They can hook
- 3:37values, bypass checks, abuse accessibility services,
- 3:41overlay screens, or try to convince your backend
- 3:45that a compromised app is still genuine. And
- 3:48somewhere in the middle of that, mobile security
- 3:51stops being just a pre-release checklist and
- 3:54starts becoming a layered strategy. In this conversation,
- 3:58Joel and I talk about why mobile is different
- 4:00from backend and cloud, what teams assume the
- 4:03OS is protecting them from, why scanning is necessary
- 4:07but not enough, and why there is no sensitive
- 4:10data in the app can be a dangerous oversimplification.
- 4:14We also get into the main layers of mobile app
- 4:17security, testing, hardening, runtime protection,
- 4:21and monitoring. That includes code hardening,
- 4:24obfuscation, runtime checks, detecting rooted
- 4:27or compromised environments watching for hooking
- 4:30frameworks and monitoring what is actually happening
- 4:33after the app is in the wild there is also a
- 4:37good thread in here around cicd because security
- 4:40that destroys the release process usually does
- 4:43not last so we talk about build overhead release
- 4:47gates what should block a release what should
- 4:50become tracked risk and how teams can add mobile
- 4:53protections without making every app release
- 4:56feel like a hostage negotiation. And toward the
- 4:59end, we talk about AI accelerating attackers,
- 5:03why fundamentals still matter, what a sane first
- 5:06step looks like for teams trying to improve mobile
- 5:10security, and why App Store approval should not
- 5:13be treated like a security strategy. So if you
- 5:16work around DevOps, SRE, platform engineering,
- 5:20AppSec, mobile engineering, CI/CD, or you support
- 5:24teams shipping mobile apps that connect to important
- 5:27backend systems, this one should be worth your
- 5:29time. All right, let's jump in. Today, I'm joined
- 5:38by Joel DeStefano from Guardsquare, where he's
- 5:41a product manager. We're talking about what mobile
- 5:43app security actually means beyond basic scanning,
- 5:46why it's different from backend and cloud security,
- 5:49and how teams can improve posture. Without turning
- 5:52CI/CD into a nightmare. Joel, thank you for joining
- 5:56me. Hey, Brian, thank you. I appreciate being
- 5:58invited onto the show. So I'm curious, why is
- 6:01mobile different from backend and cloud? What
- 6:04changes in the threat model? Fundamentally, it's
- 6:06a shift in the trust model because... On the
- 6:10backend and in cloud, you have relatively good
- 6:12controls over the runtime environment, the servers,
- 6:16the infrastructure, the policies that you put
- 6:18in place. If you look at a mobile application,
- 6:20you ship it. It's a public artifact at that point.
- 6:23You completely lose control over what's happening
- 6:26to that and how is it being used. So once it's
- 6:29out the door, if you don't have reasonable levels
- 6:32of protection into that application, it can be
- 6:36used to read. Attackers can reverse engineer
- 6:38that. You might be installed into an environment
- 6:41on a phone that has malware that is going to
- 6:43scrape that user's information. So there's risks
- 6:46when you ship a mobile application to go. I wouldn't
- 6:49say it goes beyond the backend. It basically
- 6:52essentially opens up a different paradigm of
- 6:55risk and a different trust model. So if you're
- 6:58like a DevOps or SRE person, what's the simplest
- 7:00way to think about it? So there's, I would. Think
- 7:04about it in terms of integrating security into
- 7:08your everyday life, into your build processes.
- 7:10And there's a couple of different facets to that.
- 7:13There's the scanning aspect, which you had mentioned.
- 7:16Scanning is something you would do before you
- 7:18release the application. That's sort of like
- 7:20your background to make sure that. I don't have
- 7:23any vulnerabilities. I understand my third party
- 7:26dependencies. My coding practices, like literally
- 7:29how I code something is not insecure and or improper.
- 7:32So I could maybe have TLS improperly implemented.
- 7:36Well, that's going out the door, right? So that's
- 7:39sort of the, we do this in -house, we do this
- 7:42before release. But then once you release those
- 7:45type of things, those are more point in time
- 7:48type of protections. Now you've done your due
- 7:51diligence on. Prior to release. When it goes
- 7:53out, you need to still be able to trust that
- 7:56the applications and the users that are connecting
- 7:58to your backend are using a genuine application.
- 8:01It hasn't been compromised. And the integrity
- 8:04of that app and the entire runtime execution
- 8:06is good. That's the only way you could actually
- 8:08sort of protect yourself. You need to be able
- 8:11to trust it. And that's sort of the gap and the
- 8:14challenge with a mobile app opposed to a backend
- 8:18or a cloud service is that. That visibility is
- 8:20lost. It's basically a public artifact at that
- 8:25point. And you really don't know. You don't control
- 8:27that environment. You don't know if it's going
- 8:29to a malware environment. You don't know if it's
- 8:31going to the hands of attackers. You don't know
- 8:33what they're doing with it. That's the real fundamental
- 8:36difference. I would call it a shift in trust.
- 8:39And it's essentially centered around the control.
- 8:42Is there common misconceptions that people have
- 8:45about mobile app security? Does it just kind
- 8:48of encompass what we just talked about or is
- 8:50there? There's a handful of misconceptions. One
- 8:52might be the actual scanning, like that scanning
- 8:55is enough. If I, you know, use proper coding
- 8:59practices and I check all my third-party libraries
- 9:02and there's no vulnerabilities there and I do
- 9:04a lot of dependency tracking, that you're done.
- 9:07Or if you do that in combination with an app
- 9:10store approval process that, okay, we're all
- 9:12set. We really shouldn't need to consider security
- 9:15at that point. That is a... A misconception because
- 9:18of what i just explained um oh yeah i wanted
- 9:22to bring up okay yeah and there's another misconception
- 9:24about what if there's any sensitive information
- 9:27in the actual application i have come across
- 9:30a lot of people who say well we don't have anything
- 9:32sensitive in our app we do all our protections
- 9:34on the backend with our APIs. And that may be
- 9:38true. They may not have a lot of sensitive information.
- 9:40And if they code it right, they don't have a
- 9:41lot of sensitive information. What they don't
- 9:43understand generally is that an attacker doesn't
- 9:47necessarily need to find the same things that
- 9:50you might be worried about or think are a concern.
- 9:53I would say almost any app that has business
- 9:56-critical workflows transactions, logins, dealing
- 10:00with money. I don't really care where the sensitive
- 10:03information is stored. Something can be learned
- 10:05from decompiling that application. And again,
- 10:08this goes back to that trust and that lack of
- 10:10visibility. You don't know what they're figuring
- 10:13out from that application. That's why you proactively
- 10:17harden that app with code hardening. And we call
- 10:22it obfuscation to basically scramble up names
- 10:24and things so that you can't reverse this and
- 10:26really kind of quickly figure out the business
- 10:28logic or what's going on with this application.
- 10:30In addition to that, there is a requirement to
- 10:34do runtime checks. And now those are basically
- 10:37checks that can be injected into that application
- 10:41that goes beyond just reverse engineering it.
- 10:45into detecting whether or not something about
- 10:47that environment or that runtime execution at
- 10:49that exact moment is not right. There are certain
- 10:52techniques, frameworks, and utilities that attackers
- 10:54will use to maybe change a value, maybe bypass
- 10:58something in the application, and those need
- 11:00to be picked up because those are not necessarily
- 11:02protected by code hardening. They help prevent
- 11:08that from happening because it's harder to figure
- 11:10out where I might want to go look, but... Those
- 11:13things can still be attached to the application.
- 11:16You could run it in a debugger, you could run
- 11:18instrumentation. And then once you start doing
- 11:21these things to say maybe hook a value, and what
- 11:24a hook a value basically means is that in simplest
- 11:27terms, if I'm depending on a particular variable
- 11:30to come back to allow myself access to do something,
- 11:32I could hook that variable and basically change
- 11:35the value. So if I can't get in with a false
- 11:39value, then maybe I'll hook it and I'll change
- 11:42it to true. So there are a lot of threats and
- 11:45risks that are in that mobile application beyond
- 11:50we have no sensitive keys in there or something
- 11:53like that. It's not just the PII from customers.
- 11:57It's not. It's not. I mean, there are probably
- 11:59apps out there that aren't worth protecting,
- 12:01but that's fine. They'll probably know. But I
- 12:03have heard that narrative, which is a big misconception
- 12:07from people. That work at places that i know
- 12:10for fact are dealing with logins transactions
- 12:13money so that is a dangerous misconception is
- 12:18there a different con security concern between
- 12:20android android ios windows and like what are
- 12:23those if there are I wouldn't say there are different
- 12:26concerns. The landscape, the ecosystem is a little
- 12:29bit different. The same type of attacks can be
- 12:31carried out on both platforms. The same risks
- 12:34are there. The ecosystem in Android is a little
- 12:37bit different because it's a little less controlled
- 12:40as far as the number of devices that are floating
- 12:43around in the world, the number of operating
- 12:45systems that are still in support. And it is
- 12:47an open source model, but it... That is a misconception
- 12:50as well. There's a misconception out there that
- 12:53because iOS is closed source and Android is open
- 12:56source that all the problems happen there. There's
- 12:59probably a degree of people, their impression
- 13:02of that being skewed by the fact once you get
- 13:05outside of like the United States and Europe,
- 13:07almost everybody's using Android phones and they're
- 13:09using older ones. So worldwide, the distribution,
- 13:14not everybody is walking around with $1,000.
- 13:16iPhone in some parts of the world. So essentially,
- 13:19same attacks. You can attack iOS in the same
- 13:23ways that you attack Android. The difference
- 13:25is that that ecosystem is a little bit different
- 13:28and there's many more devices out there that
- 13:30are Android. So what do you think teams assume
- 13:33the OS is protecting them from that maybe it
- 13:35isn't? Well, it's definitely not protecting them
- 13:38from somebody reverse engineering the application.
- 13:42or trying to figure out how they're going to
- 13:44bypass their certificate in that application,
- 13:46or it's not going to tell you that another app
- 13:50was downloaded that is malicious and it's going
- 13:53to have a screen overlay, or it's going to abuse
- 13:55accessibility services on your application. The
- 13:59operating system... Has implicit security, but
- 14:03it's a different focus. This is a different paradigm.
- 14:05It's not, it's concerned. It has some security
- 14:08measures for the actual device and the operating
- 14:10system itself, but it's not specifically concerned
- 14:12with the application or what else is running
- 14:15on there. It would be incorrect. Assumption that
- 14:19the operating system is going to keep me safe.
- 14:21It's like anything in security. You're making
- 14:23an incorrect assumption if you think anybody
- 14:25else is going to take care of your problems,
- 14:28essentially. It's not the App Stores in their
- 14:30approval process that's going to save you. It's
- 14:34not the operating system that's going to save
- 14:36you. It's not your scans that you run ahead of
- 14:39time to make sure that your dependencies have
- 14:41no vulnerabilities and you're coding well. The
- 14:43only thing that's going to really save you is
- 14:45to... Have a reasonable level of trust that that
- 14:48application that's connecting to your APIs is
- 14:51genuine and it's not compromised, meaning it
- 14:54hasn't been modified. It's not a fake app. That's
- 14:57the only way to have any level of comfort that
- 15:00you've done what you need to do from that angle.
- 15:03And it makes a lot of sense if you think about
- 15:04it. In this day and age, you would not ignore
- 15:08some part of your system. And these are, let's
- 15:11face it, those are mobile apps are not apps.
- 15:14They're payment platforms. They're banking platforms,
- 15:17they're medical device managers, they're retail,
- 15:20streaming, entertainment platforms, heavily monetized
- 15:25by these companies. I know it has outpaced
- 15:29the web as far as where people spend their time
- 15:33and handle workflows and transactions. So if
- 15:36you look at it from the business perspective,
- 15:38these are critical to these organizations, large
- 15:41and small, and those are critical workflows.
- 15:43And there is something to be learned from that
- 15:45application, even if it is not sensitive to data
- 15:48floating in it. Yeah, for sure. And so we kind
- 15:51of talked a little bit about scanning. Teams
- 15:53love to say that we scanned it or we do scan
- 15:55it. Why is that not enough for mobile? I think
- 15:57so. The way I kind of explained it a little bit
- 16:00earlier is that scanning is going to tell you
- 16:02something about how you might be coding that
- 16:05application or the way you're implementing certain
- 16:08inherent security measures like secure communications
- 16:12and TLS. If you scan the application, it might
- 16:15say, well, it's probably not a great idea to
- 16:17have this secret. Floating around in your application.
- 16:21So, okay, I'll take the secret out. Or my TLS
- 16:24is improperly configured, so it's actually not
- 16:26doing what it's supposed to do. Scanning can
- 16:28check for your vulnerabilities in third-party
- 16:30libraries. So you're doing your due diligence
- 16:33to, it's like kind of taking care of the basics,
- 16:36to be honest with you. And those things do not
- 16:39actively or explicitly protect that application
- 16:43from what an attacker is going to do to that
- 16:45application as far as decompile it. Start picking
- 16:48away at it. Figure out exactly where the sensitive
- 16:51parts, the sensitive workflows of that application
- 16:53engage with your backend, essentially. You have
- 16:56to do both, essentially. And that's where it
- 16:59comes back to, like, it's not a narrow scope.
- 17:02It's not as narrow a scope as just running a
- 17:06scanner. That's too narrow of a scope. And it's
- 17:08ignoring all the other implications and inherent
- 17:11behavior within an application. And it's not
- 17:14protecting you specifically. From what the attacker
- 17:17is going to do. The attackers now are much more
- 17:19organized and much more financially motivated
- 17:23than we saw even like 10 years ago. And just
- 17:26like everything else, they have at their disposal
- 17:28a large number of pretty advanced frameworks
- 17:32and tooling to actually help them do this faster.
- 17:36It's a bit of an arms race in that regard because
- 17:39we can't control. The things that are out there
- 17:42that they're going to be able to use, but all
- 17:44those things that are out there help them carry
- 17:46off these specific attacks and also speeds up
- 17:49their time so that they can sort of industrialize
- 17:52the entire thing. Whereas maybe 10 years ago,
- 17:54it would have been somebody taking a look at
- 17:56this manually, decompiling it and playing around
- 17:59and maybe spending a week, a week and a half
- 18:01trying to figure out what's going on. Now these
- 18:03advanced frameworks and utilities are out there
- 18:05that speed that up very quickly. I'm guessing
- 18:08AI is probably also impacted. Like the time for
- 18:11CVEs and impacts and security vulnerabilities?
- 18:14Have you noticed like an acceleration over the
- 18:16last like year or so? We, so there's undeniably
- 18:20a bit of a paradigm shift there in the sense
- 18:23that attackers are going to be looking and using
- 18:25AI assistance. And what that will do is essentially
- 18:28speed up the time it takes for them to figure
- 18:30out. The logic and figure out what they want
- 18:32to go after. We have not seen an increase in our
- 18:36customer base being attacked as a result because
- 18:38our fundamental principles that we have in place
- 18:41are actually the right ones from the beginning
- 18:43prior to the explosion in AI here. And it's going
- 18:47to be true really. In many different paradigms,
- 18:52but especially in the attacker and the defender
- 18:54space, the AI assistance is going to speed up
- 18:56the attacker. If the defender was not in the
- 19:00right place or not using the right approach to
- 19:02begin with, then they're going to be in a little
- 19:05bit more trouble than someone who has the right
- 19:08fundamental principles in place and multiple
- 19:10layers of... Reverse engineering static reverse
- 19:13engineering very resilient runtime checks and
- 19:16even a service to basically validate that your
- 19:19application that's connecting to your apis is
- 19:22a genuine non-compromised uncompromised app
- 19:25so yeah it changes the game a little bit but
- 19:28it does not fundamentally change it it gives
- 19:32them some tools it gives everybody some it gives
- 19:34everybody some tools so I was reading on
- 19:38Guardsquare. Can you like explain the layers
- 19:40to me? Kind of touched on a little bit. There's
- 19:42testing, hardening, runtime protection, and monitoring.
- 19:45How does that work as like one cohesive strategy?
- 19:48Yeah, so the testing is like the scanning aspect,
- 19:51which would look for the vulnerabilities, insecure
- 19:53practices, insecure coding practices, improper
- 19:56implementations. The hardening is our core product
- 19:58set, which is the decompiler-based or a compiler
- 20:03-based approach to adding protections. Into that
- 20:06application. So we'll take the output IPA or
- 20:10APK, depending upon the platform, decompile that,
- 20:13add the code hardening and obfuscation to basically
- 20:17make that decompiled code look like gibberish
- 20:20to somebody, and also inject what I was referring
- 20:24to as runtime checks. So, for example, is this
- 20:28device rooted or is someone attaching a hooking
- 20:31framework? Has somebody gotten around the actual
- 20:33certificate? Or is there malware on the device
- 20:38that's trying to abuse accessibility services
- 20:40or using overlay or a screen reader to scrape
- 20:44information? So that's the hardening aspect.
- 20:46And then the monitoring aspect is another important
- 20:49part of this broader picture, which is, I spoke
- 20:52about this earlier, where that whole trust model,
- 20:55that lack of visibility. Even if you are protected,
- 20:57you still want to monitor what's going on because
- 20:59things shift. You might see all of a sudden evidence
- 21:02of certain behavior in a certain part of the
- 21:05world. So maybe you want to pause for a second
- 21:08and be like, hmm, do we want to change our configuration,
- 21:11release a new application, maybe improve some
- 21:15of the protections here? Like what's going on?
- 21:17So it's not just, you can't just add your protections
- 21:19and just, I'm done. I'm good. You should probably.
- 21:22You should be monitoring that and essentially
- 21:25allow yourself the flexibility to change your
- 21:27posture as needed, essentially. So, OK, keeping
- 21:30the like CI/CD framing, we talked about the runtime
- 21:33protection, the obfuscation. Does that create
- 21:36any like or what is the build overhead from that?
- 21:39And does that slow builds down? How do you keep
- 21:41security checks from like killing the velocity
- 21:43of like normal app development? That's a good
- 21:45question. I mean, that's always a concern in
- 21:48any paradigm of security, no matter what it is,
- 21:50because. It doesn't come for free. Like you,
- 21:53if you're going to do it correctly, but there's
- 21:55always a line between protection and usability.
- 21:57You don't want to, you know, put a motor on your
- 21:59house and a drawbridge because you're going to
- 22:01end up leaving the drawbridge down because you
- 22:04really don't want to wait for all that time for
- 22:07it to go up. So yeah, there's always a trade
- 22:09-off there where you have to monitor and take
- 22:11care of the constraints. So you want to protect
- 22:14as much as you can without infringing upon your
- 22:16constraints. People might have constraints about
- 22:18the size of their application. They might have
- 22:20specific performance constraints. And these things
- 22:23will always sort of shine brighter than the protection
- 22:27because the fundamental job of all these teams
- 22:31is to release this application with features
- 22:34that drive business and bring in revenue and
- 22:35they can monetize their services. So there is
- 22:38a balancing act. It's a unavoidable balancing
- 22:40act. But if your vendor has the right tooling
- 22:44and options and features, it shouldn't be a pain
- 22:48that's not worth, you know, accepting or a penalty
- 22:51that's not worth accepting. Yeah, it's a fundamental
- 22:55part of adding protections. But if you go about
- 22:58those protections in the right way and use the
- 23:00right tooling and understand what you're trying
- 23:02to protect, it should be a minimal impact to
- 23:05your delivery process. So, okay, with that in
- 23:08mind, what would like a good or a sane gating
- 23:11strategy look like? Like what would block a release
- 23:13versus what becomes tracked risk for down the
- 23:16road? As far as testing the application is concerned?
- 23:19Yeah, or vulnerability tracking or whatever.
- 23:22Like how does that impact the CI/CD work? Depending
- 23:26upon the severity of the vulnerability or the
- 23:28insecure coding practices, it could be a high
- 23:32risk thing that should be mitigated immediately.
- 23:35But a lot of scanning tools will also surface
- 23:38maybe medium or low risk things that you can
- 23:41just kind of track and be like, okay, I'm going
- 23:42to put that on my wishlist. And next time around,
- 23:45you know, we're not going to block the release
- 23:46over this because it's not severe. It's not a
- 23:48high risk situation. And then the lower ones,
- 23:50you can basically make a list. That's what people
- 23:53do. And then sort of when they have time, pluck
- 23:55away at a few of those because those are not
- 23:57critical, critical risks. From the testing standpoint
- 24:01of a protected application, going back to The
- 24:04usability, it cannot impact the usability and
- 24:07whatever those constraints might be. So it has
- 24:09to be protected and then verified by the QA team
- 24:13that, okay, we're still within the constraints
- 24:15of acceptability. And then if it's not, maybe
- 24:18there's a change to the configuration or maybe
- 24:20you're being too aggressive. On certain aspects
- 24:22of the protection, in which case you can change
- 24:25your posture there and dial it down. If you don't
- 24:27have evidence of past attacks, you're not going
- 24:29into a high risk, a really high risk known malicious
- 24:32situation, maybe you could gamble a little bit
- 24:35and take a step back on doubling down on those
- 24:38protections for the sake of that usability. But
- 24:41there is a sweet spot, really. I mean, essentially,
- 24:44you know, you don't want to, I probably didn't
- 24:45give the best advice there. You really don't
- 24:47want to look at it that way. You want the sweet
- 24:49spot, which is. I'm reasonably well protected
- 24:52against all of these things with minimal to no
- 24:55impact in the usability. Certain things are acceptable
- 24:58as far as impact. Certain things are not. It's
- 25:02not acceptable to cause a stability issue, but
- 25:04it might be acceptable to lose a couple milliseconds
- 25:07on a particular transaction or some sort of a
- 25:11method or something for the sake of the assurance
- 25:14that it's now secured, right? So it's a bit of
- 25:17a trade-off there. What's important to you from
- 25:20a protection standpoint, and also what is important
- 25:24or critical on the constraint side. But those
- 25:27are essentially the only things that would really
- 25:28just like stop the release. Like I have high
- 25:30severity, critical things that need to be fixed.
- 25:33And that comes down to the policies, the internal
- 25:35policies, compliance policies, and governance
- 25:37of that organization, that they make a rule that,
- 25:40and they should make a rule that there's a high
- 25:42severity finding and scanning. It's a stop the
- 25:44press thing. And usually those things shouldn't
- 25:47be too difficult to fix. And then as far as protections,
- 25:51you know, it's just like any release cycle. You
- 25:54add it, even if it's not a protection, you still
- 25:56have to test your application. So when you integrate
- 25:59the protection into your CI/CD, it's not like
- 26:02you're going down a different path. You're essentially
- 26:03just running it through your system tests and
- 26:06your QA team with the protections. So if you're
- 26:09an engineering team and you're trying to improve
- 26:11mobile app security posture today, is there like
- 26:13a top three or top five things that you would start
- 26:16with? Yeah, I would say not to get overwhelmed.
- 26:19I would take a step back and start asking
- 26:22some really basic questions. What matters to
- 26:24us? How is this app interacting with our backend?
- 26:27How could this, what could possibly hurt us?
- 26:29Like start brainstorming around that and then
- 26:31consider a structured programmatic approach to
- 26:35layering in your security essentially so that
- 26:38it becomes part of your routine. Can't be an
- 26:42after the fact type of thing. You should be thinking
- 26:44about it up front, during, and obviously at release
- 26:48and after release. So it's a bit of a mindset.
- 26:52If you treat it as a checklist type of thing
- 26:55at the very tail end, that's where you usually
- 26:58get yourself maybe into some trouble because
- 27:00you either didn't protect it well enough or you
- 27:03did it in a way that... Might risk some of your
- 27:06constraints. So it's a mindset that security
- 27:09is top of mind across all facets all the time.
- 27:12And if it's part of your daily routine, just
- 27:15like exercising or something, if you make it
- 27:17a habit, you're going to do it all the time.
- 27:19If you're considering security as being important,
- 27:22as you should, it just becomes, it's an adoption
- 27:25and understanding that this is part of life.
- 27:27And it's the right way to go about it because
- 27:29you'd rather not be. In the news because someone
- 27:33made an example of your application or some of
- 27:35your users were victims of fraud or even your
- 27:38organization was part of some sort of criminal
- 27:41misuse situation, which does happen. Yeah. So
- 27:44kind of thinking of the inverse in that, is there
- 27:47anything that you would kind of throw out as
- 27:49security posture that maybe companies are doing
- 27:52that maybe they shouldn't be? It's kind of not
- 27:54effective, not really providing value from a
- 27:56security perspective. I mean, the worst thing
- 27:59they could possibly do is the scenario we were
- 28:01talking about earlier, which was basically just
- 28:03assuming that some level of scanning is enough
- 28:06and App Store acceptance is sufficient. As far
- 28:10as other things, I think people probably are
- 28:13not generally aware enough of the ways attackers
- 28:17go about reverse engineering applications. So
- 28:19it's hard for them. Maybe it's probably more
- 28:21a situation of... Misunderstanding or like not
- 28:24being knowledgeable enough. If you don't know
- 28:26about something, you have no idea the importance
- 28:29of code hardening or changing names, then you're
- 28:33probably not going to value it at all. So I don't
- 28:36know if that answers your question or not, but
- 28:37I would certainly, and there's plenty of information
- 28:40and knowledge out there. You can go to our website.
- 28:43There's organizations like OWASP that have lots
- 28:47of guidance around. What is needed to properly
- 28:50secure a mobile application. And I would recommend
- 28:54that highly because it's really like anything
- 28:56else. If you don't really know what you're doing
- 28:59or you don't really understand the fundamentals,
- 29:02like you're probably not going to be doing this
- 29:03or you're probably not going to pick the right
- 29:04vendor. You're probably not going to use that
- 29:06vendor the right way. Yeah, it's an education
- 29:08thing. Awesome. So where can people find more
- 29:12about you, about Guardsquare? So www.guardsquare
- 29:17.com, we have a wealth of knowledge on there,
- 29:19like resources and blogs. And they're not just,
- 29:22you know, for lack of a better word, marketing
- 29:24fluff. They're written by security research analysts
- 29:27that work for us. And they'll give you a broad
- 29:30and, if you want, a deep level understanding
- 29:33of the protections that are needed and the techniques
- 29:37that are attacks attackers are essentially using.
- 29:40We also have a security research center on the
- 29:43website. So there's a lot of research. There's
- 29:44a lot of resources and papers to get a basic
- 29:47knowledge and a good understanding of what you
- 29:50might need to do to properly secure your mobile
- 29:52application. Cool. Awesome. I'll put links up
- 29:55for Guardsquare's blog, OWASP, and some of the
- 29:58other things that we talked about in the show
- 30:00notes. Sure. Joel, thank you so much for coming
- 30:02on. Really appreciate it. Appreciate it, Brian.
- 30:04You're welcome. Thank you. All right. That was
- 30:06my conversation with Joel DeStefano from Guardsquare.
- 30:09My biggest takeaway from this one is that mobile
- 30:12security is really about the trust boundary moving.
- 30:15In backend and cloud systems, we spend a lot
- 30:18of time trying to control the environment. We
- 30:20harden infrastructure. We manage IAM. We monitor
- 30:24runtime behavior. We control deployments. We
- 30:28log everything we can. We build policies and
- 30:31guardrails and assume that if something weird
- 30:33happens, we at least have some visibility into
- 30:36the system. With mobile, that changes. You ship
- 30:39the app, and now the app is out in the world.
- 30:42And once it is out there, attackers can study
- 30:45it on their own time. They can decompile it.
- 30:48They can instrument it. They can run it in weird
- 30:51environments. They can try to bypass checks,
- 30:54hook values. Scrape information, or learn enough
- 30:58about the workflow to abuse the backend in ways
- 31:01the backend team may not have expected. That
- 31:04is the part I think is worth paying attention
- 31:07to. A lot of teams treat mobile security like
- 31:10a scanning problem. Run the scanner. Fix the
- 31:13dependencies. Fix the obvious insecure coding
- 31:15patterns. Make sure there are no secrets sitting
- 31:18in the app. Pass the App Store review. Ship it.
- 31:22And to be clear, that work matters. But it is
- 31:25not the whole story. Scanning tells you something
- 31:27useful before release. It helps you catch problems
- 31:30in code, dependencies, configuration, and implementation.
- 31:35But it does not protect the app once someone
- 31:38is actively trying to reverse engineer it or
- 31:40tamper with it in the wild. That is where the
- 31:43layered approach matters. Testing matters. Hardening
- 31:46matters. Runtime protection matters. Monitoring
- 31:50matters. And honestly, the monitoring part is
- 31:53easy to underappreciate. Because even if you
- 31:56do the right things before release, the threat
- 31:59landscape changes after release. Attackers change
- 32:02tactics. Activity spikes in certain regions.
- 32:05New tools get popular. Something starts showing
- 32:08up in the field that you did not plan for. If
- 32:11you are not watching that, you are basically
- 32:13guessing. I also liked Joel's point that we do
- 32:17not have sensitive data in the app is not the
- 32:19same as the app does not need protection. That
- 32:22is a trap. A mobile app does not need to contain
- 32:25a database full of customer PII to matter. If
- 32:29it handles login, payments, banking, medical
- 32:33workflows, retail transactions, subscriptions,
- 32:37account recovery, loyalty points, streaming access,
- 32:41or any business-critical path, then there is
- 32:44something useful for an attacker to learn. The
- 32:47sensitive thing may not be a secret string. It
- 32:50might be the workflow. It might be the trust
- 32:53relationship. It might be how the app talks to
- 32:56the backend. It might be the condition an attacker
- 32:59needs to bypass to make the backend believe something
- 33:02it should not believe. That is a different way
- 33:05of thinking about the app. Not just what data
- 33:08is stored here, more like what can someone learn
- 33:11from this app and how could they use that knowledge
- 33:14against the system? The CI/CD part matters too,
- 33:18because security teams can say protect everything
- 33:21all day long. But if the protection adds too
- 33:24much pain, slows builds too much, creates unstable
- 33:28releases or turns every app update into a fight,
- 33:32engineering teams will find a way around it.
- 33:35So the goal has to be sane integration. High
- 33:39severity findings should block. Critical issues
- 33:42should stop the release. But lower severity findings
- 33:46may become tracked risk. Runtime protections
- 33:49need to be tested like any other release change.
- 33:53Performance and stability constraints still matter.
- 33:56There is always a trade-off between protection
- 33:59and usability. That does not mean avoid security.
- 34:02It means design it like it has to live inside
- 34:05a real delivery process. Because it does. The
- 34:09other thing that stood out is the AI angle. AI
- 34:12may make attackers faster. It may help them understand
- 34:15logic faster. It may help them reverse engineer
- 34:18or reason about code faster. But Joel's point
- 34:21was that the fundamentals do not disappear. If
- 34:24you already have the right layers in place, AI
- 34:27does not completely rewrite the model. It increases
- 34:30speed. It gives attackers better tools. It raises
- 34:34the pressure. But the principles still matter.
- 34:37Know what matters in the app. Protect the app.
- 34:40Make reverse engineering harder. Add runtime
- 34:43checks. Validate that the app connecting to your
- 34:46backend is genuine. Monitor what is happening
- 34:49in the wild. And do not assume that the OS, the
- 34:53App Store, or one scan in the pipeline is going
- 34:56to save you. That is probably where I would land
- 34:59with this whole conversation. Mobile security
- 35:01is not magic. It is also not just scan it and
- 35:05ship it. It is a different trust model and teams
- 35:08need to treat it that way. I'll have links to
- 35:11Joel, Guardsquare, OWASP mobile resources, and
- 35:15anything else we mentioned in the show notes.
- 35:17If you enjoyed this conversation, follow or subscribe
- 35:20to Ship It Weekly wherever you listen to podcasts.
- 35:24It helps the show and it makes sure that you
- 35:26get both these conversation episodes and the
- 35:29weekly DevOps. SRE, Platform, Cloud, and Security
- 35:33News Recaps. You can also find the show notes
- 35:36and links over at shipitweekly.fm. Thanks for
- 35:39listening, and I'll see you later this week.