National Cyber Warfare Foundation (NCWF)login

smsofdeath for demonstrating the WAP Push SMS modem crash in Android research


0 user ratings
2026-10-29 15:29:07
milo
Red Team (CNA)
"smsofdeath

smsofdeath is a proof-of-concept Android app that demonstrates how a malformed WAP Push PDU delivered over SMS can crash com.android.phone on a target handset, for authorized research on devices you own.








ToolMarkBlah/smsofdeath — PoC Android app demonstrating a malformed WAP Push SMS PDU that crashes com.android.phone on the receiving handset
CategoryMobile denial-of-service proof-of-concept / Android telephony research
Primary UseReproducing and studying the NegativeArraySizeException crash in WapPushOverSms.decodeWapPdu during authorized research on owned devices
Safe UseStrictly for authorized security research and testing on devices you own or have explicit written permission to test, as the README's disclaimer states; also useful to defenders validating patch coverage across a fleet
Telemetry NoteThe crash leaves a loud forensic trail: a FATAL EXCEPTION in com.android.phone within roughly 1–2 seconds, a PID change for that process, and a brief loss of signal visible to the user; defenders can capture it via adb logcat filters on NegativeArraySize, WapPushOverSms, and com.android.phone, and correlate inbound data-SMS events with modem restarts

smsofdeath is a compact proof-of-concept Android application, written in Java under an Apache-2.0 license, that demonstrates a remote and silent denial-of-service condition affecting Android telephony. The project's full title in the README is WAP Push Remote Modem Crash (PoC), and its companion writeup lives at smsofdeath.com. What makes it interesting from a defensive engineering perspective is not the app itself — it is deliberately minimal — but the failure mode it exposes: a parser bug in the SMS/WAP Push stack that takes down the entire telephony process on a receiving device without any user interaction.


The mechanics, as described in the README, are rooted in Android's inbound SMS pipeline. When a data SMS arrives carrying a WAP Push PDU, the framework routes it through WapPushOverSms.decodeWapPdu to parse the PDU header. A crafted 8-byte malformed PDU triggers a NegativeArraySizeException inside that decoder. Critically, this exception goes uncaught in InboundSmsHandler, which means the error propagates all the way up and terminates com.android.phone — the process that owns the modem interface, call state, and radio connectivity on essentially every Android handset.


The operational consequence described by the author is severe for a denial-of-service primitive: killing com.android.phone drops any active call, including emergency calls, silently from the victim's perspective. There is no notification, no prompt, and no interaction required on the receiving side. The crash happens within roughly one to two seconds of the message being delivered, the com.android.phone process respawns with a new PID, and the handset experiences a brief loss of signal while the radio stack reinitializes. From an availability standpoint, this is the telephony equivalent of a single-packet remote crash in a network service.


The PDU itself is delivered as a data SMS targeted at port 2948 — the standard WAP Push (connectionless WSP) port on mobile handsets. The README documents the exact 8-byte payload, which we deliberately won't reproduce here; the structural insight is what matters for defenders. The bug class is a classic length/offset validation failure in a binary header parser: the decoder trusts PDU-declared sizes enough to compute a negative array bound, and nothing in the calling path catches the resulting runtime exception before it reaches the process boundary. This is the same pattern that historically produced crashes in MMS and WSP parsers across multiple vendors, and it is a useful reminder that the SMS control plane remains an under-audited input surface.


Building the project follows the standard Android workflow. The README specifies ./gradlew assembleDebug, which produces app/build/outputs/apk/debug/app-debug.apk. You need an Android SDK on the build machine, with the path recorded in local.properties via sdk.dir=/path/to/Android/sdk — Android Studio generates that file automatically. The project targets minSdk 30 with targetSdk and compileSdk at 35, so it is built against a fairly current platform baseline, which matters because it suggests the crash condition is relevant to recent Android versions rather than being a relic of old AOSP code that has long since been patched everywhere.


The app's runtime surface is deliberately thin. On the sender device you enter or auto-fill the target number from an active SIM, select which SIM sends the message, and trigger the single documented action. The permission set matches this scope exactly: SEND_SMS to transmit, READ_PHONE_NUMBERS to source the number, and READ_PHONE_STATE to enumerate SIM state. The tight permission footprint is itself a good signal for triage — a research PoC that requests only what its documented function requires, rather than bundling extraneous location or storage access, is more consistent with its stated purpose.


For defenders, the observation workflow the README documents is the genuinely valuable artifact. Watching a test device with adb logcat | grep -E 'NegativeArraySize|WapPushOverSms|com.android.phone' gives a precise detection signature: a FATAL EXCEPTION in com.android.phone, a process restart with a new PID, and the NegativeArraySizeException stack trace anchored in WapPushOverSms.decodeWapPdu. Any organization operating Android fleets, especially those in emergency services or critical communications, can turn that signature into a log-based detection or MDM health check that flags repeated unexplained restarts of the telephony process on enrolled devices.


The defensive takeaways extend beyond detection. Because the trigger is an inbound data SMS to a well-known port, carriers and enterprise SMS gateways are a natural filtering point — malformed WAP Push PDUs are rarely legitimate traffic on modern networks, where push messaging has largely moved to FCM and similar IP-based channels. Device management teams should also verify vendor patch status for the decodeWapPdu parser specifically, since the README's minSdk 30 baseline indicates the code path exists on devices still in wide deployment. Crash-looping the radio stack is also a resilience concern: repeated triggering could degrade emergency-call availability, which puts this in the same risk conversation as other telephony DoS findings that regulators have taken seriously.


From an engineering-culture angle, the bug illustrates a recurring lesson about exception hygiene at trust boundaries. InboundSmsHandler is processing untrusted network input — bytes that arrive from any number on any network — yet the call path leaves a runtime exception from decodeWapPdu uncaught. Any parser handling carrier-network input should treat RuntimeException from decoding as expected malformed input, log it, and drop the message, rather than letting it terminate a system-critical process. This is a pattern worth auditing in your own Android platform code or vendor RIL/telephony forks: find every decode* entry point reachable from inbound SMS/MMS and verify the failure path is contained.


The project sits at around 80 stars, which is modest but reasonable for a narrow telephony PoC, and its repo metadata is unremarkable — Java, main branch, no topic tags. The README is honest about scope, includes an explicit disclaimer restricting use to owned or explicitly authorized devices, and does not oversell the finding beyond what the crash log demonstrates. For authorized professionals — mobile security researchers, Android platform engineers, and defenders of device fleets — smsofdeath is best treated as a reproduction harness and detection-development aid: a concrete, observable demonstration of why the SMS parsing path deserves the same fuzzing and hardening attention as any other network-facing parser.



Official project repository for MarkBlah/smsofdeath.

Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.






Source: OffensiveSec
Source Link: https://www.offsecblog.com/2026/10/smsofdeath-for-demonstrating-wap-push.html


Comments
new comment
Nobody has commented yet. Will you be the first?
 
Forum
Red Team (CNA)



Copyright 2012 through 2026 - National Cyber Warfare Foundation - All rights reserved worldwide.