get_argos_token- Core token generation functionJava_com_snapchat_client_client_1attestation_ArgosClient_00024CppProxy_native_1getAttestationHeadersJava_com_snapchat_client_client_1attestation_ArgosClient_00024CppProxy_native_1getArgosTokenAsync
The native library uses JNI (Java Native Interface) to communicate with Java code:
Java_com_snapchat_client_client_1attestation_ArgosClient_createInstance
- Header name:
x-snapchat-att-token - The token is generated in native code and returned to Java layer
The native library depends on:
libc++_shared.so- C++ standard library- Platform-specific attestation APIs
- Cryptographic libraries (likely embedded)
The native implementation likely includes:
- Hardware attestation (SafetyNet on Android, DeviceCheck on iOS)
- Certificate pinning
- Anti-debugging techniques
- Obfuscation and packing
- Runtime integrity checks
- Java layer calls native method with request parameters
- Native code performs:
- Device attestation
- Timestamp generation
- Cryptographic signing
- Token assembly
- Token is returned to Java layer
- Java adds token to HTTP headers
Other native libraries in the APK:
libsigx.so- Likely for signature verificationlibferrite-launcher-4fae2d0.so- Unknown purposelibferrite-tracer-4fae2d0.so- Possibly for tracing/debugginglibGWP-ASan.so- Memory error detectionlibarcore_sdk_c.so/libarcore_sdk_jni.so- AR Core (for AR features)
- The actual algorithm is in compiled native code
- Likely uses code obfuscation techniques
- May include anti-debugging measures
- Platform-specific security features are used
- Cryptographic keys are likely embedded and protected
To fully reverse engineer the token generation:
- Use IDA Pro or Ghidra for static analysis of libclient.so
- Use Frida for dynamic analysis and hooking
- Analyze the JNI calls and parameters
- Trace the execution flow during token generation
- Identify cryptographic operations and key derivation
Note: Full reverse engineering would require significant effort and specialized tools.