Anti-AIClone

Log date · Sat

What does Frida 17.22 mean for Swift app protection?

Swift names and metadata can reveal structure. We compare symbols in two builds of our own sample.

The answer: stripping is not a secrecy boundary

Swift release artifacts can retain readable type and method clues. In our macOS sample, strip -x reduced the symbols reported by nm from 32 to 22, but the demangled Pricing.quote signature remained. Both programs printed quote=154. Frida 17.22.0 extended its Swift ApiResolver to Linux and Windows, making those artifacts relevant to the same review. [1][2]

What the comparison shows
QuestionFinding
What changed after stripping?The nm count fell from 32 to 22.
Was the method name still visible?Both artifacts showed the demangled Pricing.quote signature.
Did the runs agree?Both printed quote=154.
Was Frida tested?No; this is a Swift toolchain illustration.

The release and our scope

Frida published 17.22.0 at 06:47 UTC on 2026-10-03. Its release notes say the Swift resolver previously worked only on Apple platforms. The update handles the Swift core library, metadata sections and freeing names per platform, and makes Linux CI actually run the Swift tests. Windows support also skips zeroed metadata section markers. [1][2]

Frida is not available on this machine. We compiled our own small program with Apple Swift 6.4.2 on macOS 27.2 arm64, then compared the original with a copy processed by strip -x. This static experiment illustrates symbol visibility; it does not test that Frida release, Linux, Windows or a production app.

Our sample; preventing inlining makes this method easier to compare.
public struct Pricing {
    public init() {}
    @inline(never) public func quote(_ quantity: Int) -> Int {
        return 120 + 17 * quantity
    }
}
print("quote=\(Pricing().quote(2))")

The sample adds 17 per item to 120; an input of two yields 154. We used -Onone to observe this particular method rather than imitate an optimized release. Optimization, linking and visibility can change a real build, so inspect the artifact you actually ship.

Read the symbol, not just the count

We listed symbols with nm and passed them through swift demangle. The stripped copy had ten fewer symbols overall, but this method still exposed its module, type, method, argument and return type. The excerpt is contiguous output from our record. The address belongs to this build and is not a stable identifier across builds.

Verbatim output from the experiment.
== baseline run ==
quote=154
== baseline matching symbols, demangled ==
00000001000008b8 T DemoPricing.Pricing.quote(Swift.Int) -> Swift.Int
== baseline symbol counts ==
total symbols: 32
== stripped run ==
quote=154
== stripped matching symbols, demangled ==
00000001000008b8 T DemoPricing.Pricing.quote(Swift.Int) -> Swift.Int
== stripped symbol counts ==
total symbols: 22

A symbol count is an inventory clue, not proof that business logic is secret. A missing match can result from optimization, inlining, a changed name or the chosen tool. Conversely, a visible name does not mean the method contains a secret or reveal its complete implementation. Compare the finding with source and decide whether it is an intended interface.

What the resolver and library builds change

Frida documents ApiResolver as an interface for finding APIs by name; availability depends on the platform and runtimes loaded in the process, and matches include names and addresses. [3] The release notes also list functions, types, protocols and conformances queries. This is not the same data source as our static nm inspection, so our result cannot predict a particular resolver match.

The same release added frida-compile --library, with library builds also exposed through frida-core APIs including Compiler.build_library(); a package can distribute TypeScript and pattern files together. [2] Reusable analysis helpers may be easier to maintain, but a script does not automatically work across every version. The release also fixes an arm64 vector operand parsing crash and Windows eight-character section names and section sizes. [2]

For defenders, treat names, symbols and client execution paths as information that can be studied, rather than an authorization boundary. Server-side authorization needs to check identity, permissions and the conditions for an operation on the server. Client checks can improve the experience, but should not be the sole final decision.

Recommendations by situation

These are engineering recommendations, not protection benefits measured by the experiment.

Recommendations: start with assets and boundaries
QuestionFinding
Shipping a Swift libraryReview public interfaces and remove unnecessary test entry points.
Sensitive authorization or shared credentialsKeep final decisions and privileged credentials on a controlled server.
Stripping or additional processingKeep before-and-after artifacts; test behavior and crash diagnosis on each target.
Cross-platform componentsInspect the actual Linux, Windows and Apple release builds separately.

Record the compiler version, target architecture, build options and artifact identifier before comparing results. Do not base a security conclusion on a symbol table alone: resources, logs, dependencies and server interfaces also merit review. When processing changes, make sure diagnostic symbols match the exact release and restrict access to those files.

Check your own Swift artifact

First reproduce the sample on macOS, then substitute a Mach-O executable you are authorized to inspect. The commands list symbols and demangle Swift names. Binary formats and nm options differ by platform, so use the target toolchain. Avoid publishing a full listing containing sensitive internal names in public logs.

The first seven lines reproduce the sample check; the last inspects your own macOS artifact.
swiftc -Onone -module-name DemoPricing Sample.swift -o baseline
cp baseline stripped
strip -x stripped
./baseline
./stripped
nm baseline | swift demangle
nm stripped | swift demangle

# Replace with your own macOS artifact.
nm path/to/your-executable | swift demangle

Review the listing against intended interfaces and investigate leftover debug entry points and test code. If a search has no matches, first confirm the tool succeeded, the architecture is correct and the file is the final artifact. After stripping or obfuscation, rerun startup, critical flows and crash diagnosis on every target platform. Do not remove information the runtime needs merely to reduce visible names.

Your checklist

  • Inventory shipped Swift artifacts on each target platform.
  • Record compiler, architecture, build options and artifact identifiers.
  • Review symbols and intended public interfaces; remove leftover test entry points.
  • Keep privileged credentials and final authorization on a controlled server.
  • Retest critical flows and crash diagnosis on each platform after processing.

Primary sources

All sources and reproduction status ↗