This repository contains reverse engineering research and analysis of Snapchat's Argos attestation token system (v13.51.0.56) for educational purposes only.
- This is NOT a working token generator
- Tokens generated by the simulator are NOT valid for Snapchat's servers
- This research is for understanding mobile security architecture
- No actual bypass or exploitation is provided or possible
- For educational and security research purposes only
This research project analyzes Snapchat's client attestation system called "Argos" which generates authentication tokens (x-snapchat-att-token) for API requests. The analysis was performed on Snapchat Android APK version 13.51.0.56.
- Token Header:
x-snapchat-att-token - Signature Header:
x-snapchat-att-sign - Backend Service:
gcp.api.snapchat.com(Google Cloud Platform) - Implementation: Native C++ with JNI bindings
- Security: Hardware attestation + Cryptographic signatures
Java Layer (APK) → JNI Bridge → Native Library (libclient.so) → gRPC → GCP Backend
-
Hardware Attestation
- Google SafetyNet (Android)
- Apple DeviceCheck (iOS)
- Device integrity verification
-
Cryptographic Operations
- AES-GCM encryption (AESGCC20)
- ChaCha20-Poly1305
- RSA signatures
- HMAC authentication
-
Token Management
- Binary cache storage (
/token.bin) - TTL-based expiration
- Queue-based request management
- Binary cache storage (
├── argos_analysis.md # Initial analysis findings
├── native_code_analysis.md # Native library analysis
├── detailed_native_analysis.md # Deep dive into implementation
├── token_generation_flow.md # Complete token generation flow
├── memory_addresses_and_locations.md # Memory map and addresses
├── deep_analysis_update.md # Additional findings
├── complete_argos_implementation.md # Full implementation details
├── FINAL_COMPLETE_ANALYSIS.md # Comprehensive summary
├── argos_token_generator.py # Basic educational simulator
├── enhanced_token_generator.py # Advanced simulator with all features
├── token_simulator.py # Interactive demonstration tool
└── README.md # This file
0x00c1b180 - ArgosClient::createInstance
0x00dd3504 - ArgosClient::getAttestationHeaders
0x00c1dd9c - ArgosClient::getArgosTokenAsync
0x00dd33b0 - ArgosClient::nativeDestroy
{
"v": 1, // Version
"t": 1234567890000, // Timestamp
"m": "STANDARD", // Mode
"d": "device_id", // Device ID
"p": "attestation_data", // Payload
"s": "signature", // Signature
"k": 1 // Key version
}- Endpoint:
/snap.security.ArgosService/GetTokens - Request:
GetTokensRequestprotobuf - Response:
GetTokensResponseprotobuf
- APK Analysis: apktool, jadx
- Binary Analysis: strings, hexdump, objdump
- Smali Analysis: Manual inspection
- Documentation: Extensive markdown files
This research is conducted under fair use provisions for educational and security research purposes. It aims to understand and document mobile application security implementations.
Important:
- This research does not enable bypassing Snapchat's security measures
- No private keys or proprietary algorithms are exposed
- The simulators produce non-functional tokens for educational demonstration only
- Using this research to attempt unauthorized access is illegal and unethical
- Hardware Dependency: Requires genuine device attestation that cannot be simulated
- Cryptographic Keys: Private keys are hardware-protected and never exposed
- Server Validation: All tokens are verified server-side with Google/Apple
- Device Registration: Each device must be properly registered with Snapchat
This research provides insights into:
- Modern mobile app security architecture
- Hardware-backed attestation systems
- Multi-layer security implementations
- Native code protection techniques
- gRPC/protobuf communication patterns
Riyad Mondol
- GitHub: @riyadmondol2006
- Website: riyadm.com
- Reverse Engineering: reversesio.com
- Telegram: @riyadmondol2006
- YouTube: @reversesio
This is a research project. If you have additional insights or corrections:
- Fork the repository
- Create a feature branch
- Submit a pull request with detailed explanation
- Snapchat for implementing robust security measures
- The reverse engineering community for tools and techniques
- Educational institutions promoting security research
This research is provided "as is" for educational purposes. See LICENSE file for details.
Remember: This research is for learning about mobile security. Always respect application terms of service and use technology ethically.