Latest / CyberCode Academy / Course 42 - Mobile Malware Analysis Fundamentals | Episode 7: Malware Tools and Practical Lab Walkthrough
Transcript
- 0:00Speaker 1: Imagine you've just intercepted this highly suspicious iOS application file.
- 0:05Speaker 1: It's just sitting right there in your sandbox, effectively, you know,
- 0:09Speaker 1: a locked black box right just waiting to be opened exactly,
- 0:12Speaker 1: and you need to know its exact capabilities, like what's
- 0:15Speaker 1: its network infrastructure? What is the ultimate payload here?
- 0:19Speaker 2: Which you can't just double click it?
- 0:20Speaker 1: No, absolutely not running it. Actually executing that file on
- 0:24Speaker 1: a test device could unleash absolute chaos, I mean, potentially
- 0:28Speaker 1: burning your entire analysis environment, or even worse, alerting the
- 0:33Speaker 1: malware's command and control servers that you're actively watching them.
- 0:36Speaker 2: Yeah, it's basically the ultimate digital bomb disposal scenario. It
- 0:39Speaker 2: really is your task with mapping the internal wiring, analyzing
- 0:45Speaker 2: the chemical composition of the explosive, and you know, tracing
- 0:48Speaker 2: the detonator. But you have to do all of that
- 0:50Speaker 2: without ever letting the circuit close.
- 0:52Speaker 1: The stakes literally do not get much higher than that.
- 0:55Speaker 1: So the mission of our deep dive today is to
- 0:57Speaker 1: equip you, the listener, with the specific toolkit and the
- 1:00Speaker 1: the analytical mindset used by reverse engineers to tear down iOS.
- 1:03Speaker 2: Apps entirely from the command line, which is the fun.
- 1:05Speaker 1: Part, right, We are going to unpack the methodology of
- 1:09Speaker 1: basic static analysis.
- 1:10Speaker 2: In today's progression, it really moves from the macro down
- 1:13Speaker 2: to the micro. We'll start by extracting the apps underlying
- 1:17Speaker 2: architectural blueprints from its MACO binary.
- 1:21Speaker 1: The fundamental building block exactly.
- 1:24Speaker 2: From there, we'll move into identifying its external library dependencies,
- 1:28Speaker 2: hunting down these little symbol breadcrumbs, and then we bring
- 1:31Speaker 2: in the heavy machinery to x ray the compiled assembly.
- 1:34Speaker 1: Code, which sounds intense, but we're going to break it
- 1:37Speaker 1: all down.
- 1:38Speaker 2: Yeah, and ultimately we're going to apply all of this
- 1:40Speaker 2: in a live, real world dissection of a really sophisticated,
- 1:44Speaker 2: completely hidden piece of iOS malware.
- 1:46Speaker 1: I cannot wait for that part. But let's start a
- 1:48Speaker 1: square one, because before we can reverse engineer the logic,
- 1:52Speaker 1: we have to profile the target, and in the Apple ecosystem,
- 1:55Speaker 1: that primarily means determining if the app relies on objective
- 1:59Speaker 1: CS or a bridged hybrid of the two.
- 2:02Speaker 2: Which is such a crucial first step because that distinction
- 2:06Speaker 2: changes your entire approach to the binary.
- 2:08Speaker 1: How So, like, why does the language matter that much?
- 2:11Speaker 1: Right out the gate?
- 2:11Speaker 2: Well, Swift by design incorporates really strict type safety and
- 2:17Speaker 2: module name spaces, and that forces the compiler to do
- 2:21Speaker 2: something called name mangling.
- 2:23Speaker 1: Name mangling. It sounds violent, it kind of is.
- 2:26Speaker 2: When the compiler processes those human readable Swift functions, it
- 2:31Speaker 2: compresses all that type and module information directly into the
- 2:35Speaker 2: function's internal symbol name.
- 2:36Speaker 1: Okay, so if I'm looking at it, it just looks
- 2:38Speaker 1: like complete cryptographic gibberish to the untrained eye.
- 2:41Speaker 2: Oh completely, it looks like random characters. Yeah, but it's
- 2:44Speaker 2: actually a highly structured naming convention.
- 2:47Speaker 1: Interesting.
- 2:47Speaker 2: So, if you are inspecting the dumped strings or symbols
- 2:50Speaker 2: of a binary and you spot a function declaration that
- 2:53Speaker 2: kicks off with an underscore followed by a capital T,
- 2:57Speaker 2: so that underscore T prefix, you have immediate conformation that
- 3:00Speaker 2: Swift is present in the codebase.
- 3:02Speaker 1: Oh okay, finding the underscore t prefix is a great heuristic.
- 3:06Speaker 1: But wait to even view those declarations in the first place,
- 3:09Speaker 1: we have to extract the structure from the compiled binary, right,
- 3:13Speaker 1: Because we aren't just reading flat text files here.
- 3:15Speaker 2: No. No, we rely on a command line utility called
- 3:18Speaker 2: class dump For that class dump. Yeah, it parses the
- 3:21Speaker 2: MACO file format, specifically targeting the objective C run time segments.
- 3:25Speaker 2: So it extracts the class headers, which basically gives you
- 3:28Speaker 2: the definitions of the objects, the properties, and the methods
- 3:32Speaker 2: that were compiled into the app.
- 3:34Speaker 1: Okay, got it.
- 3:34Speaker 2: But one really crucial operational note for anyone trying this,
- 3:39Speaker 2: you always want to use the most updated fork of
- 3:41Speaker 2: the tool. It's often maintained under the name class dumps.
- 3:45Speaker 1: Class dumps with an S.
- 3:47Speaker 2: Why is that Because the older iterations of it they
- 3:49Speaker 2: just choke and crash when they hit the complex metadata
- 3:53Speaker 2: structures generated by modern Swift compilers. They just can't handle it.
- 3:57Speaker 1: So using class dump is essentially like I don't know,
- 4:00Speaker 1: carrying the table of contents out of a book before
- 4:02Speaker 1: you read the chapters. Like you get the structural outline
- 4:05Speaker 1: without having to process the actual narrative flow.
- 4:08Speaker 2: That's a perfect analogy. It gives you the entire taxonomy
- 4:11Speaker 2: of the application at a glance.
- 4:13Speaker 1: Okay, I can definitely see the value in mapping the taxonomy,
- 4:17Speaker 1: But I got to push back slightly here. If we're
- 4:19Speaker 1: only looking at headers and method signatures, how much intent
- 4:23Speaker 1: can we actually infer? I mean, a table of contents
- 4:26Speaker 1: doesn't necessarily reveal a malicious plot.
- 4:28Speaker 2: Right You would be amazed at how much intent is
- 4:30Speaker 2: broadcast through class names alone. Wait really, oh absolutely? When
- 4:35Speaker 2: parsing those dumped headers, malware analysts are actively hunting for
- 4:39Speaker 2: specific high risk delegate.
- 4:42Speaker 1: Methods like what's a red flag?
- 4:44Speaker 2: Take handle open url for instance, Okay, spotting that immediately
- 4:47Speaker 2: tells you the application is registering custom URL schemes, which
- 4:51Speaker 2: means it's designed to be invoked by other apps or
- 4:54Speaker 2: by weblinks.
- 4:54Speaker 1: Oh, I see it's a doorway exactly, It's a potential
- 4:57Speaker 1: ingress point that immediately expands the attack surface. Yeah, because
- 5:00Speaker 1: of listening for inbound URLs. It could be you know,
- 5:03Speaker 1: receiving command payloads from somewhere else. What other system interactions
- 5:08Speaker 1: are we filtering for when we look at these headers.
- 5:10Speaker 2: Well, we always map the UI application delegate that helps
- 5:13Speaker 2: us understand the app's core life cycle hooks like what
- 5:16Speaker 2: does it do on launch? What does it do when
- 5:18Speaker 2: it's pushed to the background. But the real red flags
- 5:21Speaker 2: they often appear around web views.
- 5:23Speaker 1: Web views okay, so loading web pages inside the app.
- 5:26Speaker 2: Precisely, we actively hunt for UI WebView delegate or its
- 5:30Speaker 2: modern equivalents alongside NSR request.
- 5:33Speaker 1: So finding a UI WebView delegate combined with those request
- 5:36Speaker 1: classes means the application isn't just operating in a vacuum.
- 5:40Speaker 1: It has the actual plumbing to render remote web content
- 5:44Speaker 1: internally or I guess exfiltrate local data out to a
- 5:47Speaker 1: remote server.
- 5:48Speaker 2: You nailed it. It confirms a pathway to the Internet.
- 5:51Speaker 1: Wow. Okay, so just from the headers, we know it
- 5:53Speaker 1: can talk to the outside world exactly.
- 5:55Speaker 2: So now we've established the app's internal capabilities. But you know,
- 5:59Speaker 2: modern iOS applications, even the highly malicious ones, they rarely
- 6:03Speaker 2: reinvent the wheel. They rely on external frameworks to execute complex.
- 6:07Speaker 1: Tasks, which brings us to external dependencies. We have to
- 6:11Speaker 1: map out what the app intends to load into memory
- 6:13Speaker 1: at runtime. This transitions us to two specific command line utilities,
- 6:17Speaker 1: right otool and NM.
- 6:19Speaker 2: Yes, so otool is widely considered the fundamental utility for
- 6:24Speaker 2: inspecting Apple Maco binaries.
- 6:26Speaker 1: The Swiss Army knife basically.
- 6:28Speaker 2: Pretty much it reads the load commands that are embedded
- 6:31Speaker 2: right in the binary header, and those commands dictate exactly
- 6:35Speaker 2: how the operating system should map the executable into memory. Okay,
- 6:38Speaker 2: but the command flag you'll lean on most heavily here
- 6:41Speaker 2: is O tool.
- 6:42Speaker 1: Dash L and that's a capital L right, which flags
- 6:45Speaker 1: the tool to enumerate all the dynamically linked to libraries
- 6:48Speaker 1: the binary requires to actually function, right, and.
- 6:51Speaker 2: The output there gives you the exact paths to every
- 6:53Speaker 2: single shared library. Now, often you'll just see standard system
- 6:57Speaker 2: paths right, like Apples Foundation or UIKit frameworks.
- 7:00Speaker 1: Totally normal stuff.
- 7:01Speaker 2: Yeah, boring stuff. But the critical anomalies you want to
- 7:04Speaker 2: look for are dynamic paths, specifically ones heavily utilizing the
- 7:07Speaker 2: at our path.
- 7:08Speaker 1: Variable at our path the run path search path. That
- 7:11Speaker 1: is a highly abusable mechanism from what I understand, because
- 7:14Speaker 1: it tells the dynamic linker to resolve the library path
- 7:17Speaker 1: relative to where the application is currently running, rather than
- 7:21Speaker 1: relying on a hard coded absolute system path exactly.
- 7:24Speaker 2: And malware authors heavily leverage at our paths to sideload
- 7:29Speaker 2: malicious dynamic libraries.
- 7:30Speaker 1: Oh wow.
- 7:31Speaker 2: Yeah. By packaging a compromised dialib within the app's own
- 7:35Speaker 2: directory structure, they can basically trick the app into loading
- 7:38Speaker 2: their malicious code instead of a legitimate system library.
- 7:42Speaker 1: That is an elegant way to obscure the malicious payload
- 7:45Speaker 1: until the application actually spins up in memory it's hiding
- 7:48Speaker 1: in plain sight, it really is okay. So, once otol
- 7:51Speaker 1: has given us that dependency map and showed us where
- 7:53Speaker 1: it's looking for external code, we shift to analyzing the
- 7:56Speaker 1: symbols with MM.
- 7:58Speaker 2: Right, because while otool can dumps symbols, if you use
- 8:01Speaker 2: specific flags like dash, ODAV and M is explicitly built
- 8:05Speaker 2: for this. It parses and displays the symbol table of
- 8:09Speaker 2: a binary.
- 8:10Speaker 1: And just clarify for everyone. The symbol table contains the
- 8:13Speaker 1: names and addresses of all the functions and global variables
- 8:15Speaker 1: the program uses, right, including the ones it expects to find.
- 8:18Speaker 1: Those dynamic libraries we just mapped out exactly. So if
- 8:21Speaker 1: O'Toole tells us where the app is looking for external code,
- 8:23Speaker 1: and M tells us what specific functions it plans to
- 8:26Speaker 1: call from that code, right.
- 8:27Speaker 2: You are looking at the unresolved references left behind by
- 8:31Speaker 2: the developer. It essentially becomes a targeted hunting expedition. At
- 8:35Speaker 2: that point, you dump the symbols and you filter for
- 8:38Speaker 2: high risk system calls.
- 8:40Speaker 1: Give me an example of that. What's a specific symbol
- 8:43Speaker 1: that spikes your threat radar during static analysis?
- 8:45Speaker 2: Oh, A prime example is MEMCPI, MENPI Okay, it's a
- 8:48Speaker 2: standard C library function for moving blocks of memory, but
- 8:52Speaker 2: it notoriously lacks boundary checking.
- 8:55Speaker 1: Ah, I see where this is going.
- 8:57Speaker 2: Right. If we observe a binary aggressively utilizing mengpie, especially
- 9:02Speaker 2: if it's doing it in close proximity to network socket
- 9:04Speaker 2: operations or parsing untrusted data, we're very likely looking at
- 9:08Speaker 2: the foundational mechanics of a buffer overflow exploit.
- 9:12Speaker 1: Wow. Okay, so that's a huge red flag.
- 9:14Speaker 2: A massive one. We also actively scan for functions like
- 9:17Speaker 2: c trace, which malware frequently uses to detect if it's
- 9:20Speaker 2: being monitored by a debugger.
- 9:21Speaker 1: Sneaky. Okay. So at this point, the internal blueprints are map,
- 9:25Speaker 1: the dynamic libraries are enumerated, and the simple tables are parsed.
- 9:28Speaker 1: We have a lot of data, but so far we're
- 9:30Speaker 1: just looking at lists of metadata and function pointer, just
- 9:33Speaker 1: pieces of the puzzle exactly. To understand the actual execution flow,
- 9:38Speaker 1: like the underlying logic of the malware, we have to
- 9:41Speaker 1: translate the compiled binary back into something readable. We need
- 9:44Speaker 1: the X ray machine.
- 9:45Speaker 2: Yes, we need to pull back the curtain on the
- 9:48Speaker 2: actual machine code. And this is where disassemblers like Hopper
- 9:53Speaker 2: or Ida pro become completely indispensable.
- 9:56Speaker 1: Right.
- 9:56Speaker 2: They parse the compiled ARM sixty four op codes and
- 10:00Speaker 2: they translate them back into human readable assembly mnemonics.
- 10:03Speaker 1: So a disassembler is essentially a universal translator. It takes
- 10:07Speaker 1: the ones and zeros that only the processor understands and
- 10:09Speaker 1: reconstructs the logic branches, the register assignments, and memory allocations exactly.
- 10:15Speaker 2: And translating ARM sixty four architecture is incredibly complex, I mean,
- 10:19Speaker 2: just due to the sheer volume of registers and the
- 10:22Speaker 2: intricacies of its branching logic. But a tool like Hopper
- 10:25Speaker 2: excels at making this approachable for analysts.
- 10:28Speaker 1: And for those who haven't worked inside a dedicated disassembly environment.
- 10:31Speaker 1: Hopper provides a really highly visual workspace. It isn't just
- 10:35Speaker 1: a terminal window of scrolling.
- 10:37Speaker 2: Texts none of all.
- 10:38Speaker 1: You get a control flow graph which visually represents the
- 10:41Speaker 1: code as branching blocks connected by logic pathways. You can
- 10:45Speaker 1: literally see how an IFL statement splits the execution into
- 10:48Speaker 1: different memory addresses.
- 10:50Speaker 2: The visual representation is invaluable, I mean, it saves so
- 10:53Speaker 2: much time. But honestly, the most powerful feature in Hopper
- 10:57Speaker 2: for rapid static analysis is the strings window.
- 11:00Speaker 1: The strings window.
- 11:02Speaker 2: Yeah, it consolidates all the hard coded plaintext that's embedded
- 11:05Speaker 2: anywhere in the buying area, which.
- 11:07Speaker 1: Allows for immediate cross referencing. So if I run a
- 11:09Speaker 1: search and Hopper for this string HTTP, I don't just
- 11:13Speaker 1: see the text, right, I can use the cross reference
- 11:15Speaker 1: feature the XRAS to jump directly to the exact memory
- 11:19Speaker 1: address where that string is loaded into a register.
- 11:21Speaker 2: Exactly that workflow. Right there is the core of static analysis.
- 11:24Speaker 2: You find a suspicious string, you track its cross reference
- 11:27Speaker 2: to a specific subroutine, and suddenly you are looking at
- 11:31Speaker 2: the exact logic block responsible for, say xfiltrating data to
- 11:35Speaker 2: a command and control server.
- 11:36Speaker 1: That is incredible.
- 11:38Speaker 2: And if reading raw ARM sixty four assembly proves two
- 11:41Speaker 2: time consuming, which it offered does. Hopper features a pseudo
- 11:45Speaker 2: code decompiler with a single click, it attempts to reconstruct
- 11:49Speaker 2: the assembly back into a C like high level language.
- 11:52Speaker 1: Which just accelerates the deep code analysis exponentially. Okay, so
- 11:56Speaker 1: we have covered the conceptual framework. We've got the entire
- 11:59Speaker 1: command line toolchain down. It's time to move from theory
- 12:02Speaker 1: to application.
- 12:03Speaker 2: Let's do it.
- 12:04Speaker 1: We have an unanalyzed file sitting in our sandbox right now,
- 12:06Speaker 1: and it is literally labeled malware dot IPA. We are
- 12:10Speaker 1: going to execute a live zero knowledge takedown of this
- 12:14Speaker 1: black box. Walk me through it.
- 12:15Speaker 2: Okay. So the initial protocol for any unknown binary is
- 12:18Speaker 2: generating a cryptographic hash. We need to check it against
- 12:22Speaker 2: known threat intelligence databases.
- 12:23Speaker 1: Okay, So I'm calculating the MD five and SAHA two
- 12:26Speaker 1: hundred fifty six hashes of the file right now. See
- 12:28Speaker 1: let's query virus Total and see what the global scanners
- 12:31Speaker 1: say about this thing. Now, the results are completely negative,
- 12:34Speaker 1: zero hits across all vendors. Virus Total has never seen it.
- 12:38Speaker 2: Okay, So we are dealing with a zero day here,
- 12:41Speaker 2: or at least a highly targeted payload that just hasn't
- 12:44Speaker 2: been widely distributed yet. Right. Threat intelligence is totally blind here,
- 12:48Speaker 2: which means we have to rely entirely on our static
- 12:51Speaker 2: analysis toolchain to figure out what this thing does. So
- 12:53Speaker 2: let's pry it open.
- 12:54Speaker 1: Okay. I'm unzipping the dot ipa archive and it reveals
- 12:58Speaker 1: the standard iOS application bundle structure.
- 13:01Speaker 2: Right. So, navigating into the payload directory, our first goal
- 13:04Speaker 2: is to locate the primary MACO executable, but relying on
- 13:09Speaker 2: the visual filenames in that directory is a really common pitfall.
- 13:13Speaker 1: Oh why is that?
- 13:15Speaker 2: Well, the outer wrapper might be named malware or something obvious,
- 13:18Speaker 2: but the internal binary often utilizes a completely different naming
- 13:21Speaker 2: convention just to avoid casual detection.
- 13:24Speaker 1: Uh okay, So to find the definitive entry point, we
- 13:27Speaker 1: shouldn't just guess. We query the infodot plist file using
- 13:31Speaker 1: the plutal command, and by reading the cf bundle executable key,
- 13:35Speaker 1: we bypass any of that directory obfuscation.
- 13:37Speaker 2: So what does the property list say?
- 13:39Speaker 1: Okay, looking at it now, it reveals the true executable
- 13:41Speaker 1: is named no icon no icon. Yeah, no icon.
- 13:45Speaker 2: Well that immediately implies a conscious effort at stealth.
- 13:48Speaker 1: Definitely. Okay, we have our target binary. Let's pipe the
- 13:51Speaker 1: strings command through GRIP and filter specifically for HTTP to
- 13:55Speaker 1: see if this binary contains hard coded network infrastructure.
- 13:59Speaker 2: We'll see what it's fit out.
- 14:00Speaker 1: WHOA, The terminal output is massive. We are looking at
- 14:06Speaker 1: a really dense list of domains, ip addresses, specific uripaths.
- 14:10Speaker 2: Wow.
- 14:11Speaker 1: Yeah, Despite being entirely unknown to the anti virus scanners,
- 14:15Speaker 1: this application is hardwired to communicate with dozens of external endpoints.
- 14:19Speaker 2: It's hitting a massive variety of infrastructure, which is very telling.
- 14:23Speaker 2: This points toward either a domain generation algorithm for command
- 14:26Speaker 2: and control or it's cycling through a hard coded list
- 14:28Speaker 2: of drop sites to see what's active.
- 14:30Speaker 1: Let's dig a little deeper into the broader string stump.
- 14:32Speaker 1: Then what else is embedded in this binary?
- 14:34Speaker 2: Okay, Filtering past all those URLs, we uncover some highly
- 14:38Speaker 2: specific operational plaintext. Look at this, there are distinct references
- 14:42Speaker 2: to an ad page component at page yeah. And more critically,
- 14:45Speaker 2: we find strings querying for no icon update and active
- 14:49Speaker 2: filepath checks looking for other dot IBA packages stored locally
- 14:52Speaker 2: on the file system.
- 14:53Speaker 1: Wait, looking for other apps. Let's synthesize those artifacts. We
- 14:57Speaker 1: have aggressive network requests, references to ap tizing components, and
- 15:01Speaker 1: mechanisms designed to search for and update secondary IYP of files.
- 15:05Speaker 1: The primary binary is a stager. It's a dropper. It's
- 15:09Speaker 1: designed to quietly pull down and install adware or you
- 15:13Speaker 1: know more destructive secondary payloads in the background.
- 15:15Speaker 2: Exactly. The behavioral profile strongly aligns with a dropper. But
- 15:21Speaker 2: and this is key for a dropper to be effective
- 15:23Speaker 2: on iOS, it has to persist on the device long
- 15:27Speaker 2: enough to actually execute those secondary downloads.
- 15:29Speaker 1: Which means it needs to avoid user detection.
- 15:32Speaker 2: Right, it can't look suspicious.
- 15:33Speaker 1: Let's check how it masks its presence. Returning to the
- 15:36Speaker 1: plutal tool, I'll extract the cf bundle display name from
- 15:39Speaker 1: the infodoup plus what did they name it? The developer
- 15:42Speaker 1: has set the display name to passbook, masquerading as a
- 15:46Speaker 1: legacy Apple Wallet component.
- 15:48Speaker 2: That is incredible calculated.
- 15:50Speaker 1: It really is, because if a user happens to glance
- 15:53Speaker 1: at their battery usage or their network settings, seeing Passbook
- 15:57Speaker 1: consuming resources isn't likely to trigger immediate alarm. It just
- 16:01Speaker 1: blends right into the expected system noise.
- 16:03Speaker 2: Yeah, nobody questions pastbook. But the disguise actually goes deeper
- 16:07Speaker 2: than just the display name. Let's extract the seaf bundle
- 16:10Speaker 2: identifier from that same property list.
- 16:12Speaker 1: Okay, pulling that up, the identifier is calm dot wheeling
- 16:15Speaker 1: dot hidden dot icon dot onian dot launch.
- 16:18Speaker 2: The developer naming conventions are surprisingly brazen.
- 16:21Speaker 1: There seriously hidden icon on launch.
- 16:24Speaker 2: Yeah, but the critical element is the configuration flag attached
- 16:29Speaker 2: to that bundle identifier. Look at the status flag. It
- 16:32Speaker 2: is explicitly configured to hidden hidden.
- 16:35Speaker 1: So wait, by manipulating that specific property list key, the
- 16:38Speaker 1: application is instructing the iOS springboard demon which is the
- 16:42Speaker 1: process responsible for managing the home screen UI. Right. Yeah,
- 16:45Speaker 1: it's instructing it to completely ignore the app's existence.
- 16:48Speaker 2: That's exactly what it's doing. The icon is literally never
- 16:51Speaker 2: rendered on the screen.
- 16:52Speaker 1: Oh my god. It achieves near perfect persistence purely through
- 16:56Speaker 1: a UI configuration trick.
- 16:58Speaker 2: Yeah, there is nothing for the user to tack and crucially,
- 17:01Speaker 2: there's nothing for the user to long press and delete.
- 17:03Speaker 1: Wow. It operates as an invisible, silent stager. That is
- 17:08Speaker 1: brilliantly devious. Well, okay, there's one final artifact we need
- 17:12Speaker 1: to map for this profile. What language was this dropper
- 17:16Speaker 1: compiled from?
- 17:17Speaker 2: Good question. So we execute total dash L against the
- 17:21Speaker 2: no icon binary, and we filtered the dynamic library output
- 17:25Speaker 2: for any reliance on Swift foundation frameworks.
- 17:27Speaker 1: Right, looking for that underscore t signature exactly.
- 17:30Speaker 2: We are checking for that name mangling signature in the
- 17:33Speaker 2: symbols as well, and the results entirely void. There are
- 17:36Speaker 2: no Swift dependencies and the classheaders show zero Swift taxonomy.
- 17:40Speaker 1: So the dropper is written entirely in pure objective C
- 17:43Speaker 1: completely which structurally that makes a lot of sense. I mean,
- 17:47Speaker 1: if your goal is to build a stealthy dropper that
- 17:49Speaker 1: can maximize its compatibility across older, potentially vulnerable iterations of iOS.
- 17:54Speaker 1: Writing it in objective c ensures it can execute without
- 17:57Speaker 1: requiring modern runtime environments.
- 17:59Speaker 2: Exactly you wanted to run on as many devices as possible. Yeah,
- 18:02Speaker 2: and that takedown right there is a perfect illustration of
- 18:05Speaker 2: the methodology.
- 18:06Speaker 1: It really is. We approached an entirely undocumented zero day
- 18:10Speaker 1: threat and without ever risking execution. We mapped its C
- 18:14Speaker 1: two infrastructure, identified its true executable, uncovered its stager functionality,
- 18:21Speaker 1: and analyzed its UI evasion techniques.
- 18:23Speaker 2: It just proves that a disciplined, structured approach to static
- 18:26Speaker 2: analysis can force any binary to revealed core architecture.
- 18:30Speaker 1: He just had to know where to look, absolutely so.
- 18:33Speaker 1: To synthesize the toolkit for everyone listening, we utilized class
- 18:36Speaker 1: stump to extract the objective C run time taxonomy and headers.
- 18:40Speaker 1: We leveraged O tool to map the macho load commands
- 18:43Speaker 1: and external dynamic libraries, paying special attention to that at
- 18:46Speaker 1: our path abuse. We employed enronment to parts the symbol
- 18:49Speaker 1: tables for exploitable C functions. We vitualized the ARM sixty
- 18:53Speaker 1: four control flow graphs using Hopper, and finally we extracted
- 18:57Speaker 1: strings and propertyless configurations to completely dismantle a live dropper.
- 19:01Speaker 2: A very successful mission definitely.
- 19:03Speaker 1: Now to lock in this methodology, let's run a rapid
- 19:05Speaker 1: review scenario for you listening pop quiz. If you suspect
- 19:09Speaker 1: a newly intercepted iOS application is covertly rendering remote web content,
- 19:14Speaker 1: which command line utility provides the dependency map and what
- 19:17Speaker 1: specific class header validates that web functionality, Well, you would.
- 19:21Speaker 2: Run O tool dash L to map the dynamic library dependencies,
- 19:25Speaker 2: and you would parse the class dump output, specifically hunting
- 19:28Speaker 2: for the UI WebView delegate.
- 19:30Speaker 1: Class spot on. Now, the mechanics of our takedown today
- 19:33Speaker 1: highlight just how effectively malware can weaponize standard configuration files
- 19:38Speaker 1: like the info dot plist to achieve total invisibility on
- 19:41Speaker 1: a device.
- 19:42Speaker 2: It's scary how simple it can be.
- 19:44Speaker 1: It is, but as we master these manual static analysis techniques,
- 19:47Speaker 1: we have to acknowledge that the defensive landscape is fundamentally
- 19:50Speaker 1: shifting beneath us. I mean, we just spent this entire
- 19:53Speaker 1: session manually tracing op codes, cross referencing strings, and parsing macoheaders.
- 19:58Speaker 2: Right, taking it step by step.
- 20:00Speaker 1: But consider the current trajectory of large language models. We
- 20:03Speaker 1: are rapidly approaching an inflection point where you could just
- 20:06Speaker 1: feed a fully compiled, highly obfuscated MACO binary directly into
- 20:10Speaker 1: a specialized AI model. Oh wow, and the AI will
- 20:13Speaker 1: instantly decompile the ARM sixty four architecture map, the control
- 20:18Speaker 1: flow graphs, cross reference the network infrastructure, and output a
- 20:22Speaker 1: comprehensive zero day behavioral analysis in seconds, in seconds, seconds.
- 20:27Speaker 1: It completely automates the meticulous manual detective work we just covered,
- 20:31Speaker 1: So it begs the question, as AI effortlessly unravels even
- 20:35Speaker 1: the most sophisticated compiled binaries, will human reverse engineers be
- 20:40Speaker 1: rendered obsolete or simply elevated to architects of entirely new
- 20:43Speaker 1: automated defense paradigms.
- 20:45Speaker 2: Man it is a profound paradigm shift. The barrier to
- 20:47Speaker 2: deep technical analysis is dissolving, which means the speed of
- 20:51Speaker 2: both offense and defense is about to accelerate exponentially.
- 20:55Speaker 1: It is a transformative horizon to keep your eyes on.
- 20:57Speaker 1: But until then, master the fundamentals, trust the architecture over
- 21:00Speaker 1: the interface, and keep diving deep