PromptHub
Back to Blog
Developer Tools Security Research

gommzystudio/device-activity-tracker: RTT-Based Activity Monitoring PoC

B

Bright Coding

Author

10 min read 32 views
gommzystudio/device-activity-tracker: RTT-Based Activity Monitoring PoC

Messaging apps promise privacy, yet subtle protocol behaviors can expose more than users realize. The gommzystudio/device-activity-tracker repository demonstrates how Round-Trip Time (RTT) measurements of delivery receipts in WhatsApp and Signal leak sensitive device-activity patterns—distinguishing active use from standby mode without any message content being read. This proof-of-concept, built on peer-reviewed research from the University of Vienna and SBA Research, gives developers and security researchers a concrete tool to understand, test, and communicate these vulnerabilities. With 5,026 GitHub stars and 694 forks, the project has clearly resonated with the technical community since its last commit on December 31, 2025.

What is gommzystudio/device-activity-tracker?

gommzystudio/device-activity-tracker is an open-source proof-of-concept implementing the research paper "Careless Whisper: Exploiting Silent Delivery Receipts to Monitor Users on Mobile Instant Messengers" by Gabriel K. Gegenhuber et al. The project is maintained by gommzystudio and written primarily in TypeScript, with a React↗ Bright Coding Blog-based web interface and Node.js backend.

The tool operates by sending probe messages to target accounts and measuring the RTT of CLIENT ACK delivery receipts. These timing variations correlate with device state: actively used devices respond faster (lower RTT), while idle/locked devices exhibit higher RTT due to Doze mode or background restrictions. The project also detects potential network transitions (mobile data vs. WiFi) and builds activity patterns over time.

This is not a consumer privacy tool—it is explicitly designed for security research and educational purposes. The repository includes both a web dashboard for real-time visualization and a CLI interface for headless operation. Its relevance stems from a critical gap in messaging app security: as of December 2025, WhatsApp and Signal remain vulnerable to this side-channel attack, and standard mitigations like disabling read receipts do not prevent it.

The project's popularity (5K+ stars) reflects growing developer interest in understanding how seemingly innocuous protocol metadata—timestamps, delivery confirmations, presence indicators—can be weaponized for surveillance when analyzed systematically.

Key Features

Dual-Platform Probe Support The tracker supports both WhatsApp (via the @whiskeysockets/baileys library) and Signal, with dedicated tracker modules (tracker.ts and signal-tracker.ts). This cross-platform coverage allows researchers to compare implementation-specific behaviors.

Two Probe Methods Users can select between a Delete probe (default)—sending a deletion request for a non-existent message ID—or a Reaction probe, which sends an emoji reaction to a non-existent message. Both trigger delivery receipts without generating visible notifications on the target device, enabling covert measurement.

Dynamic Threshold-Based Detection The tool calculates a dynamic threshold at 90% of the median RTT from measurement history. Values below this threshold indicate active device usage; values above suggest standby/idle mode. This adaptive approach accommodates varying network conditions rather than relying on fixed constants.

Real-Time Web Dashboard The React 18+ frontend displays live RTT measurements, device state transitions (Online/Standby/Offline), and historical activity patterns. This visualization layer transforms raw timing data into actionable intelligence for research presentations or incident response training.

CLI Interface for Automation A terminal-based interface (npm start) supports scripted, headless operation—useful for longitudinal studies or integration into larger security testing pipelines.

Docker↗ Bright Coding Blog-First Deployment Containerized setup via docker compose up --build eliminates dependency conflicts and ensures reproducible environments across research teams.

Use Cases

Academic Security Research Researchers studying mobile messaging protocols can use this tool to validate the Careless Whisper findings, extend the methodology to other platforms, or demonstrate side-channel vulnerabilities in classroom or conference settings. The included BibTeX citation ensures proper attribution.

Red Team & Penetration Testing Security professionals assessing organizational communication risks can demonstrate to stakeholders how metadata leakage enables surveillance even when message content remains encrypted. The activity-pattern detection illustrates why "encrypted" does not mean "unobservable."

Privacy Advocacy & Policy Development Advocates can generate concrete, reproducible evidence of protocol weaknesses to pressure platforms for architectural improvements. The tool's explicit documentation of mitigation limitations (e.g., "Block unknown account messages" only partially helps) supports nuanced policy arguments.

Developer Education Engineers building messaging systems can study this implementation to understand how delivery receipt timing becomes an information channel, informing better design decisions for their own applications.

Threat Intelligence Analysts tracking surveillance-technology proliferation can monitor forks and adaptations of this repository to understand how these techniques spread in adversarial communities.

Installation & Setup

The project requires Node.js 20+ and npm. WhatsApp account credentials are needed for that platform's functionality.

Clone and Install Dependencies

# Clone repository
git clone https://github.com/gommzystudio/device-activity-tracker.git
cd device-activity-tracker

# Install root dependencies
npm install

# Install client dependencies
cd client && npm install && cd ..

The root npm install handles server-side packages; the client directory contains the React frontend with its own dependency tree.

Docker Deployment (Recommended)

# Copy environment template
cp .env.example .env

# (Optional) Customize ports in .env file
# BACKEND_PORT=3001
# CLIENT_PORT=3000

# Build and start containers
docker compose up --build

After startup, access:

  • Frontend: http://localhost:3000 (or configured CLIENT_PORT)
  • Backend: http://localhost:3001 (or configured BACKEND_PORT)

Stop with:

docker compose down

Docker eliminates Node.js version conflicts and ensures consistent behavior across development machines.

Manual Setup

For development or customization:

# Terminal 1: Start backend
npm run start:server

# Terminal 2: Start frontend
npm run start:client

Open http://localhost:3000, scan the WhatsApp QR code with your mobile device, then enter the target phone number in international format (e.g., 491701234567).

CLI-Only Operation

npm start

Follow interactive prompts for authentication and target number entry. This mode uses the Delete probe method exclusively.

Real Code Examples

Example 1: CLI Output Format

The terminal interface presents structured status updates:

╔════════════════════════════════════════════════════════════════╗
║ 🟡 Device Status Update - 09:41:51                             ║
╠════════════════════════════════════════════════════════════════╣
║ JID:        ***********@lid                                    ║
║ Status:     Standby                                            ║
║ RTT:        1104ms                                             ║
║ Avg (3):    1161ms                                             ║
║ Median:     1195ms                                             ║
║ Threshold:  1075ms                                             ║
╚════════════════════════════════════════════════════════════════╝

Explanation: This output shows a device in Standby state. The RTT of 1104ms exceeds the dynamic threshold of 1075ms (90% of median 1195ms). The JID field is redacted for privacy. The three-state system—🟢 Online (below threshold), 🟡 Standby (above threshold), 🔴 Offline (no CLIENT ACK)—provides immediate operational interpretation without requiring manual timing analysis.

Example 2: Docker Compose Environment Configuration

# Copy environment template
cp .env.example .env

# (Optional) Customize ports in .env file
# BACKEND_PORT=3001
# CLIENT_PORT=3000

# Build and start containers
docker compose up --build

Explanation: The .env.example file defines configurable ports for both services. Uncommenting and modifying these values allows multiple instances or avoids conflicts with existing services. The --build flag ensures Docker rebuilds images after code changes—critical during active development. This pattern follows twelve-factor app principles for configuration management.

Example 3: Project Structure Overview

device-activity-tracker/
├── src/
│   ├── tracker.ts         # WhatsApp RTT analysis logic
│   ├── signal-tracker.ts  # Signal RTT analysis logic
│   ├── server.ts          # Backend API server (both platforms)
│   └── index.ts           # CLI interface
├── client/                # React web interface
└── package.json

Explanation: The modular architecture separates platform-specific tracking logic from shared infrastructure. tracker.ts and signal-tracker.ts implement distinct protocol handlers while server.ts provides a unified API. This separation enables independent maintenance and potential extension to additional messaging platforms. The client/ directory contains a standard React 18+ application consuming this backend.

Note: The README contains these three explicit examples. The following section expands on documented design principles rather than inventing additional code samples.

Advanced Usage & Best Practices

Probe Method Selection The web interface allows switching between Delete and Reaction probes. The Delete method is generally preferred for lower visibility; Reaction probes may be useful if platform rate-limiting differentially affects deletion requests. Monitor for CLIENT ACK patterns after method changes to ensure consistent receipt generation.

Threshold Calibration The 90% median threshold is adaptive but not infallible. For research requiring higher confidence, consider collecting baseline measurements across known device states before monitoring targets. Document network conditions (WiFi vs. mobile data) alongside RTT data, as the tool can detect network transitions that may confound state classification.

Operational Security The auth_info_baileys/ directory contains WhatsApp authentication material—never commit this to version control. Add it to .gitignore immediately. For shared research environments, use Docker secrets or environment-specific volume mounts rather than bind-mounting the authentication directory.

Rate Limiting Awareness WhatsApp's undocumented thresholds for "high volume" from unknown accounts represent an operational constraint. Space probe transmissions to avoid triggering anti-spam measures, which would invalidate measurements and potentially expose the monitoring activity.

Ethical Boundaries The repository's disclaimer bears repeating: obtain explicit consent before any monitoring. Unauthorized tracking violates privacy laws in most jurisdictions and undermines legitimate security research by associating these techniques with malicious use.

Comparison with Alternatives

Direct alternatives implementing this specific RTT side-channel are limited; the technique is research-niche. Comparable approaches include:

Approach Mechanism Visibility to Target Platform Coverage Research Orientation
gommzystudio/device-activity-tracker RTT of delivery receipts Silent (no notification) WhatsApp, Signal Explicit PoC with full source
Online status indicators Presence protocol Visible (if enabled) Most platforms Built-in feature, not research tool
Typing indicators Activity notifications Visible Most platforms Built-in feature, easily disabled
Network traffic analysis Packet timing/correlation Passive Any encrypted channel Requires infrastructure access

The key distinction is covertness: this PoC extracts state information without generating visible notifications or requiring the target to have any feature enabled. Network traffic analysis achieves similar covertness but requires far more infrastructure. The trade-off is specificity—this tool targets messaging platform delivery receipts, not general traffic patterns.

[INTERNAL_LINK: mobile-security-testing-tools]

FAQ

Q: Does this work if the target disabled read receipts? A: Yes. The attack exploits delivery receipts (CLIENT ACK), not read receipts. Disabling read receipts does not prevent this vulnerability.

Q: What WhatsApp setting helps mitigate this? A: Enable "Block unknown account messages" under Settings → Privacy → Advanced. This may reduce probe volume from unknown numbers, though WhatsApp does not disclose the rate-limiting threshold.

Q: Is Signal equally vulnerable? A: The repository includes signal-tracker.ts and states both platforms remain exploitable as of December 2025. Implementation details may differ.

Q: What license covers this project? A: The README states MIT License, though the repository metadata lists "Other." Verify the LICENSE file directly for confirmation.

Q: Why does my WhatsApp connection fail? A: Delete the auth_info_baileys/ directory and re-scan the QR code. This clears corrupted authentication state.

Q: Can this run entirely headless without Docker? A: Yes, using npm start for CLI mode. The web interface requires npm run start:server and npm run start:client in separate terminals.

Q: Is this legal to use? A: Only with explicit consent. Unauthorized tracking violates privacy laws. The tool is explicitly for research and education.

Conclusion

gommzystudio/device-activity-tracker translates academic research into runnable code, giving developers and security professionals a concrete mechanism to understand how messaging metadata leaks device state. Its 5,026 stars and active fork community indicate sustained relevance for privacy research, red team exercises, and protocol education.

The tool is best suited for security researchers, penetration testers, privacy advocates, and messaging platform developers who need demonstrable, reproducible evidence of side-channel vulnerabilities. It is not a consumer privacy solution—its value lies in exposing problems that vendors must fix architecturally.

If you're investigating messaging security, building privacy-respecting communication tools, or training teams on metadata awareness, this repository deserves study. Clone it, examine the detection logic, and consider how your own systems might inadvertently leak state through timing channels.

Explore the code: https://github.com/gommzystudio/device-activity-tracker

Comments (0)

Comments are moderated before appearing.

No comments yet. Be the first to share your thoughts!

Recommended Prompts

View All
All tools