Smart Sheriff, Dumb Idea. The wild west of government assisted parenting

Abraham Aranguren (Cure53), Fabian Fässler (Cure53)

BruCON 0x08 · Day 2

Overview

This talk, "Smart Sheriff, Dumb Idea. The wild west of government assisted parenting," delivered by Abraham Aranguren and Fabian Fässler of Cure 53 at BruCON, exposes a catastrophic failure in government-mandated surveillance software designed to "protect" children in South Korea. The speakers detail a series of severe vulnerabilities within the Smart Sheriff and Smart Dream applications, which were developed to enforce a controversial law requiring mobile operators to provide content filtering for minors. The presentation highlights not only the technical incompetence that led to widespread security flaws but also the profound ethical and privacy concerns inherent in such mandatory monitoring systems.

Watch on YouTube

Visual summary for Smart Sheriff, Dumb Idea. The wild west of government assisted parenting by Abraham Aranguren, Fabian Fässler
Visual summary for Smart Sheriff, Dumb Idea. The wild west of government assisted parenting by Abraham Aranguren, Fabian Fässler

Key moments

  1. 4:00 South Korea's mandatory parental monitoring law
  2. 14:00 Incompetent 'fixes' ignore critical security warnings
  3. 18:30 Smart Sheriff's 'Bully API' leaks parent passwords
  4. 32:00 Smart Sheriff rebranded as 'Cyber Safety Zone'
  5. 38:30 Smart Dream leaks 700,000 child messages
  6. 39:40 Disturbing 'harmful words' list for child monitoring
  7. 47:00 The flawed concept of government-mandated surveillance
  8. 48:00 Korean government considers opt-out, constitutional complaint

Smart Sheriff, Dumb Idea. The wild west of government assisted parenting

Speakers: Abraham Aranguren (Cure 53), Fabian Fässler (Cure 53)

Conference: BruCON

YouTube: https://www.youtube.com/watch?v=AbGX67CuVBQ

Overview

This talk, "Smart Sheriff, Dumb Idea. The wild west of government assisted parenting," delivered by Abraham Aranguren and Fabian Fässler of Cure 53 at BruCON, exposes a catastrophic failure in government-mandated surveillance software designed to "protect" children in South Korea. The speakers detail a series of severe vulnerabilities within the Smart Sheriff and Smart Dream applications, which were developed to enforce a controversial law requiring mobile operators to provide content filtering for minors. The presentation highlights not only the technical incompetence that led to widespread security flaws but also the profound ethical and privacy concerns inherent in such mandatory monitoring systems.

The core issue revolves around a South Korean law that obliged mobile operators to install "adult content filtering services" on the phones of minors, with no opt-out for parents. This led to the development and mandatory deployment of applications like Smart Sheriff and its more intrusive counterpart, Smart Dream. Aranguren and Fässler's research, conducted in collaboration with Citizen Lab and Open Net Korea, revealed that these applications were riddled with critical security vulnerabilities, ranging from remote code execution and broken cryptographic implementations to unauthenticated access to highly sensitive personal data.

The significance of this talk extends beyond a mere technical exposé. It serves as a stark warning about the dangers of poorly conceived and implemented government technology, especially when it encroaches on fundamental privacy rights. The widespread deployment of these insecure applications exposed an entire generation of South Korean children to potential bullying, data theft, and manipulation, while simultaneously undermining the very trust the system was designed to foster. The talk underscores the critical need for robust security standards, independent auditing, and careful ethical consideration in the development and deployment of any software, particularly those with a broad societal impact.

Background

▶ Watch: South Korea's mandatory parental monitoring law (4:00)

South Korea, a nation with exceptionally high smartphone usage—nearly 90% of the total population and virtually 100% among young adults—faced growing concerns about cyberbullying and internet addiction among its youth. In response, the Korean government, through the Korea Communications Commission, introduced a new clause to the Telecommunication Business Act in late 2014. This law mandated that mobile operators provide "adult content filtering services" for minors, with further details added in early 2015. Crucially, this law offered no opt-out for parents, making the installation of these monitoring applications compulsory for children's devices.

To fulfill this mandate, the government funded the Korea Mobile Internet Business Association (MOIBA) with over $2.7 million to develop flagship applications. This investment led to the creation of Smart Sheriff (the primary mandatory application) and Smart Dream (an optional, but more invasive, monitoring service). Smart Sheriff allowed parents to manage screen time, block applications, and monitor visited websites, while Smart Dream went further by recording children's instant messages and Google searches, tagging them for "harmful" content. Mobile operators also developed their own, less prominent, alternative applications.

The research into these applications was initiated by Open Net Korea, a privacy and digital rights group, which raised concerns about the law's implications. They partnered with Citizen Lab from the University of Toronto, known for its work on digital surveillance and privacy. Cure 53, represented by Aranguren and Fässler, joined this collaboration to provide the technical analysis and penetration testing of the mobile applications. This collective effort, partly funded by the Open Technology Fund, aimed to understand the technical implementation of these mandatory tools and assess their security posture, ultimately revealing a disturbing landscape of privacy invasion and severe vulnerabilities.

Key Findings

▶ Watch: Smart Sheriff's 'Bully API' leaks parent passwords (18:30)

The Cure 53 team uncovered an alarming array of severe security vulnerabilities across Smart Sheriff, Smart Dream, and even some alternative operator applications. These findings painted a picture of deeply flawed design and implementation, compromising the privacy and security of millions of children.

For Smart Sheriff, the initial penetration test revealed:

  • Remote Code Execution (RCE) via JavaScript Interface: The application used a JavaScript interface within a web view, which, in Android versions 2.4 to 4.1, allowed for arbitrary code execution. This was compounded by the fact that traffic was transmitted over cleartext HTTP.
  • Broken HTTPS Implementation: Following the initial report, MOIBA "fixed" the HTTP issue by implementing HTTPS. However, their implementation was critically flawed, explicitly instructing the app to proceed() on all SSL errors and return true for any hostname verification issues, effectively rendering HTTPS useless and enabling trivial Man-in-the-Middle (MITM) attacks.
  • Catastrophic Cryptographic Failures: Sensitive data was "encrypted" using a simple XOR cipher with a static key hardcoded in the APK. This was later "improved" by adding AES encryption, but again, with a second static key also hardcoded in the APK. This meant anyone with the APK could easily decrypt all communications. The API design was a convoluted chain of phone_number XOR key1 -> JSON AES key2 -> Base64 -> Broken HTTPS.
  • "Bully API" (Unauthenticated Data Disclosure & Manipulation): The API allowed any user to query the system with a child's phone number and receive the parent's phone number and their XOR-encrypted password in return. As the XOR key was publicly known, this granted full parent-level access to any child's account. Attackers could then block phone usage, deny app access, or even fake usage statistics (e.g., falsely reporting a child searched for "porn") to cause trouble for the child. A script was demonstrated that could enumerate and dump parent/child credentials across the country.
  • Cross-Site Scripting (XSS): Persistent XSS vulnerabilities were found, with a proof-of-concept (POC) even being indexed by Google due to its public disclosure.
  • Outdated and Insecure Infrastructure: The backend was running on Apache Tomcat 6.0.29, a version released in 2009, long past its end-of-life and known to have numerous vulnerabilities.
  • Trivial Web Filtering Bypass: The content filter could be bypassed by simply adding a parameter containing the string "mobile" to any URL.
  • Insecure Data Storage: The application stored its database, containing sensitive child information, on the SD card, making it accessible to other malicious applications or physical theft.
  • Developer Negligence: The app contained unlicensed fonts, development/debugging snippets, and exposed internal paths and test credentials.

For Smart Dream, the findings were even more intrusive:

  • Abuse of Android Accessibility Permissions: Smart Dream utilized Android's accessibility permissions, typically meant for users with disabilities, to monitor and log all messages from third-party apps like KakaoTalk and even Google search queries.
  • Massive Data Leakage (700,000+ Messages): An unauthenticated API allowed enumeration and dumping of over 700,000 messages from more than 55,000 registered children, including the "harmful word" tags assigned by the app.
  • Problematic "Harmful Words" List: The app monitored over 1,000 words, many of which were highly inappropriate for surveillance, such as "menstruation," "multiculturalism," "black history," "sarcasm," and common social terms.
  • XSS in Parent Interface: Another XSS was found in the parent's web interface, allowing for mass exploitation via crafted messages.
  • SMS Authentication Bypass: A client-side JavaScript check for SMS authentication could be easily bypassed.

Even the alternative mobile operator applications showed similar weaknesses, with some being poorly obfuscated and others containing highly personal messages from developers ("Damn you hecka, what is your benefit when decompile this app?"). One application used heavily obfuscated native binaries, which required significant reverse engineering to decrypt strings, but ultimately revealed similar security shortcomings, including a lack of SSL validation.

Technical Deep Dive

▶ Watch: Smart Dream leaks 700,000 child messages (38:30)

The security vulnerabilities in Smart Sheriff and Smart Dream stemmed from a fundamental lack of secure development practices, cryptographic ignorance, and an apparent disregard for user privacy. The Cure 53 team detailed their methodology and the specific technical weaknesses.

Initial Setup and Language Barrier Overcome

One of the first challenges was the language barrier, as the applications were entirely in Korean. To overcome this, the researchers used apktool to unpack the Android Package Kit (APK) files. They then modified the strings.xml file, replacing Korean strings with English translations obtained via Google Translate, and repackaged the APK. For web views that dynamically loaded Korean content from servers, Burp Suite was used to intercept and translate responses. Additionally, strategic logging was added to the application's code to understand execution flow and identify interesting functionalities.

Remote Code Execution through JavaScript Interface

The initial Smart Sheriff application transmitted data over cleartext HTTP. Critically, it utilized Android's addJavascriptInterface method within its web views. In Android versions 2.4 through 4.1, this interface was known to be vulnerable, allowing JavaScript code running in the web view to invoke arbitrary Java methods, leading to remote code execution (RCE). By intercepting the unencrypted HTTP traffic, an attacker could inject malicious JavaScript into the web view, gaining control over the child's device.

The Illusion of HTTPS: Broken SSL Implementation

After the first report, MOIBA attempted to address the cleartext communication by implementing HTTPS. However, this fix was superficial and ineffective. The application's code explicitly contained a WebViewClient override for onReceivedSslError, which simply called handler.proceed(). This instruction told the WebView to ignore all SSL certificate errors, including invalid, expired, or self-signed certificates. Furthermore, the HostnameVerifier was implemented to always return true, effectively disabling hostname validation. This meant that any attacker could perform a Man-in-the-Middle (MITM) attack by presenting a self-signed certificate, and the application would blindly accept it, allowing them to intercept and modify all "secure" HTTPS traffic.

Cryptographic Fails: Static Keys and XOR

The "encryption" strategy employed by Smart Sheriff was fundamentally flawed. Initially, sensitive JSON data, such as phone numbers, was protected using a simple XOR cipher with a static key directly embedded within the APK. This key could be easily extracted by decompiling the application. After the first report, MOIBA introduced a second layer of encryption using AES, but this too suffered from the same critical flaw: the AES key was also static and hardcoded within the APK. The entire process was phone_number XOR key1 -> JSON AES key2 -> Base64 encoding. This multi-layered "crypto" provided no real security, as both keys were publicly available to anyone with the application package. An attacker could easily reverse the process to decrypt and re-encrypt data.

The "Bully API": Unauthenticated Data Access and Manipulation

Perhaps the most egregious vulnerability was the "Bully API" in Smart Sheriff. This API allowed any unauthenticated user to submit a child's phone number and, in return, receive the associated parent's phone number and their password. While the password was XOR-encrypted, the static XOR key in the APK made decryption trivial. This meant an attacker could fully log in as the parent and gain complete control over the child's device, including:

  • Blocking phone usage entirely or during specific hours.
  • Denying access to installed applications.
  • Faking usage statistics, such as browsing history. The device_id parameter in API requests was not authenticated, allowing an attacker to impersonate any child and report fabricated activities (e.g., searching for "porn"), leading to severe consequences for the child.

The speakers demonstrated a curl command to exploit this, showing how easily parent phone numbers and passwords could be retrieved. They even ran a script that randomly enumerated South Korean phone numbers, successfully harvesting credentials for numerous parent-child pairs due to the mandatory nature and widespread adoption of the app.

Cross-Site Scripting (XSS) and Outdated Infrastructure

Smart Sheriff was found to have persistent XSS vulnerabilities. One such vulnerability, detailed in their public report, was even indexed by Google, demonstrating the long-term exposure. The backend server infrastructure was running on Apache Tomcat 6.0.29, an ancient version from 2009, which is known to have numerous unpatched vulnerabilities. This choice of outdated software further exposed the entire system to attack.

Smart Dream's Invasive Monitoring and Data Leak

Smart Dream took surveillance to another level. It abused Android's accessibility permissions—designed for assistive technologies—to intercept and log messages from popular third-party instant messaging apps like KakaoTalk, as well as Google search queries. This highly intrusive monitoring was then sent to MOIBA's servers.

The API for Smart Dream was also unauthenticated, allowing the researchers to enumerate and access a massive database of stored messages. By simply incrementing an identifier in their API requests, they were able to dump over 700,000 messages from more than 55,000 children. These messages were also tagged with categories like "violence," "assault," or "threat" based on a list of over 1,000 "harmful words." This list itself was highly problematic, including innocuous terms like "menstruation," "multiculturalism," "black history," and "sarcasm," leading to potentially false positives and severe privacy intrusions. Smart Dream also featured XSS in its parent web interface and a bypass for SMS authentication checks implemented client-side in JavaScript.

Alternative Applications and Developer Frustration

The researchers also briefly examined alternative applications developed by mobile operators. Two were found to be rebranded versions of an app by a third-party company. While one was obfuscated, the other conveniently left its original class names intact, simplifying analysis. One of these apps even contained a hardcoded string from a frustrated developer: "Damn you hecka, what is your benefit when decompile this app please don't disturb us here." Another alternative app used native binaries for heavy string obfuscation, which required significant reverse engineering (or the "lame" approach of using the library against itself) to de-obfuscate, but still exhibited similar security flaws like a lack of SSL validation.

In summary, the technical deep dive reveals a systemic failure in security engineering, from basic network security and cryptography to API design and application logic, all within a mandatory surveillance system for children.

Demo / Proof of Concept

▶ Watch: Disturbing 'harmful words' list for child monitoring (39:40)

The talk included compelling demonstrations and proofs of concept that underscored the severity of the findings.

The most impactful demonstration was the exploitation of the "Bully API" in Smart Sheriff. The speakers showed a curl command used to query the Smart Sheriff API with a child's phone number. The API response, transmitted over the broken HTTPS and flawed cryptography, revealed the parent's phone number and their XOR-encrypted password. The ease with which this password could be decrypted was explained, highlighting how an attacker could gain full control over the child's phone settings.

To illustrate the scale of this vulnerability, a script was run live during the presentation. This script systematically enumerated random phone numbers in South Korea, demonstrating its ability to rapidly discover parent-child relationships and extract corresponding parent passwords. The output clearly showed multiple instances of "parent found" along with their decrypted passwords, emphasizing that this was not an isolated flaw but a systemic risk affecting potentially millions of users.

Another key proof of concept mentioned was the persistent XSS vulnerability found in Smart Sheriff. The speakers highlighted the irony that their publicly disclosed proof-of-concept for this XSS was so effective that it had been indexed by Google. This meant that simply searching for the domain and clicking the Google-indexed link would trigger the XSS payload, showcasing the long-lasting and easily exploitable nature of the flaw.

The ability to fake usage statistics was also described as a proof of concept. By sending unauthenticated API requests with a child's phone number and a fabricated device_id (which was not validated), an attacker could inject false browsing history into the child's profile, such as a search for "porn," which would then be reported to the parents. This demonstrated the potential for malicious actors to cause significant distress and manipulate family dynamics.

For Smart Dream, while not a live demo, the speakers detailed how they were able to write a script to enumerate and dump over 700,000 stored messages from the unauthenticated API. They showed a redacted screenshot of what the output of such a script would look like, emphasizing the massive scale of sensitive data leakage.

These demonstrations collectively provided concrete evidence of the applications' critical flaws, moving beyond theoretical vulnerabilities to show real-world exploitability and devastating consequences.

Defensive Implications

▶ Watch: Korean government considers opt-out, constitutional complaint (48:00)

The revelations surrounding Smart Sheriff and Smart Dream carry profound defensive implications, not only for individuals but also for developers, governments, and the broader cybersecurity community.

For individuals and families, the primary defensive implication is a stark warning against the inherent risks of mandatory surveillance applications, even those marketed for safety. The talk unequivocally demonstrates that even with the best intentions, such systems can be fundamentally flawed, turning protective measures into vectors for greater harm. Parents should be acutely aware of the privacy trade-offs and potential security risks associated with any monitoring software, particularly those over which they have little control or transparency. The ideal defense for children is open communication and trust, rather than relying on insecure technical surveillance.

For software developers and organizations involved in building applications that handle sensitive personal data, especially those related to minors or mandated by law, the implications are clear:

  • Prioritize Security by Design: Security must be integrated from the very inception of a project, not as an afterthought. This includes proper threat modeling and risk assessment.
  • Implement Robust Transport Security: HTTPS must be correctly implemented, with proper SSL/TLS certificate validation (no handler.proceed() on errors) and strict hostname verification.
  • Strong Cryptography: Use industry-standard, well-vetted cryptographic algorithms with unique, securely managed keys that are never hardcoded in the application binary. Avoid custom or easily reversible "encryption" schemes like XOR.
  • Comprehensive Input Validation and Output Encoding: Prevent common web vulnerabilities like XSS and SQL injection by rigorously validating all input and properly encoding all output based on its context.
  • Strict Authentication and Authorization: All API endpoints and sensitive functionalities must be protected by robust authentication and authorization mechanisms. Assume no input is trustworthy. The "Bully API" and Smart Dream's data dump were possible due to a complete lack of proper authentication.
  • Secure Data Storage: Sensitive data should never be stored on easily accessible locations like SD cards. Utilize Android's internal, protected storage and ensure databases are encrypted at rest.
  • Dependency Management and Patching: Keep all third-party libraries, frameworks (like Apache Tomcat), and operating system components up-to-date. Outdated software is a major attack surface.
  • Independent Security Audits: Regular, independent penetration testing and security audits by qualified experts are crucial, especially for high-impact applications.

For governments and regulatory bodies contemplating or mandating such applications, the defensive implications are perhaps the most critical:

  • Ethical Review and Privacy Impact Assessments: Before mandating any surveillance technology, conduct thorough ethical reviews and comprehensive privacy impact assessments. Consider if the proposed solution creates more problems than it solves.
  • Mandate Security Standards, Not Just Features: When commissioning software, governments must define strict security requirements and enforce adherence to industry best practices, rather than simply outlining functional features.
  • Avoid Centralized Data Repositories: For sensitive data, especially from children, consider decentralized architectures or designs that minimize the amount of data collected and stored in a central location. As suggested by Open Net Korea, mandating "no central server" could eradicate many attack vectors.
  • Allow Opt-Outs: Respecting individual autonomy and providing opt-out clauses for such services is a fundamental democratic principle and can help mitigate some of the privacy concerns.
  • Transparency and Accountability: Ensure full transparency regarding data collection, storage, and usage, and establish clear accountability mechanisms for security failures.

The Smart Sheriff saga serves as a cautionary tale: a well-intentioned but poorly executed government initiative can inadvertently create a massive security and privacy nightmare, undermining public trust and exposing vulnerable populations to significant risks.

Key Takeaways

  • Mandatory Surveillance Apps Pose Inherent Privacy Risks: Even if perfectly secure, the concept of a government-mandated application monitoring children's private communications and activities is fundamentally flawed and raises profound ethical and privacy concerns.
  • Catastrophic Security Failures are Systemic: Smart Sheriff and Smart Dream were riddled with severe vulnerabilities, including RCE, broken HTTPS, trivial cryptography, unauthenticated data access, and XSS, demonstrating a complete disregard for secure development practices and exposing millions of children to data theft and manipulation.
  • "Security by Obscurity" and Weak Crypto are Useless: The reliance on hardcoded XOR and AES keys, along with superficial HTTPS implementation, provided no real security and was easily bypassed by attackers, highlighting the importance of proper cryptographic design and implementation.
  • Disclosure and Public Scrutiny Can Drive Change, But Challenges Remain: The coordinated efforts of Citizen Lab and Open Net Korea led to the app's removal and rebranding, and even influenced legislative changes (like an opt-out clause). However, vendors may attempt to evade accountability through cosmetic changes and rebranding, demonstrating the ongoing need for vigilance.
  • Governments Must Prioritize Security and Ethics in Mandated Software: When developing or commissioning public-facing or mandatory applications, especially those handling sensitive data, governments must enforce rigorous security standards, conduct thorough privacy impact assessments, avoid centralized data collection, and ensure independent auditing to prevent such widespread failures.
  • The "Bully API" Illustrated the Worst-Case Scenario: The ability for any malicious actor to easily retrieve parent credentials and manipulate child usage data, or for the app to log innocuous "harmful words," showcased the potential for severe social and psychological harm beyond mere data breaches.

About the Speaker(s)

Abraham Aranguren is a security researcher and co-founder of Cure 53, a German company specializing in penetration testing and security audits. He is also known for his work on OWASP OWTF (Offensive Web Testing Framework), an open-source project aimed at streamlining web penetration testing. Aranguren's expertise lies in offensive security, particularly in web and mobile application penetration testing, as demonstrated by his detailed analysis of the Smart Sheriff applications.

Fabian Fässler is also a security researcher at Cure 53. He collaborated with Abraham Aranguren on the Smart Sheriff research, contributing significantly to the technical analysis, reverse engineering of Android applications, and the identification of critical vulnerabilities. His work, alongside Aranguren's, highlights Cure 53's commitment to exposing security flaws in critical software and advocating for improved digital privacy.

Reviews

→ Top-rated talks at BruCON 0x08

All talks from BruCON 0x08