Ziyad Mohammad Mansy Ibrahim
Also listed as Ziyad Ibrahim.
I build automated tests that catch the bugs people miss, especially the silent ones that never crash.
Researcher in software testing and security · Senior mobile software engineer
Research interests: fuzzing, differential and metamorphic testing, test oracles, program analysis, LLM testing agents and the knowledge they need, and security of mobile, web and cross-platform apps, untrusted input handling, library updates and software supply chains. Any kind of software, with mobile and web apps as my strongest areas.
Applying to Ph.D. programs in Computer Science and Software Engineering for Fall 2027In one minute
The short version, for anyone in a hurry.
Software often fails quietly. A price is rounded, a login token ends up in a log file, a record disappears. Nothing crashes, so no test notices, and a human expert has to find it later. Sometimes an attacker finds it first.
In 2026, while working full time, I designed and ran three research studies on using AI to guide automated testing, and wrote each one up as a sole-authored paper. All three are under review at international software engineering conferences.
My tests found silent data loss in two Google libraries (json_serializable, built_value) with over 18 million downloads a month. Both now document the problem, and one maintainer called my fix a "great fix to a VERY nuanced problem."
Five years shipping and securing production apps with 200K+ downloads, including the #1 Health & Fitness app on the Saudi App Store. At a fintech licensed by the Saudi Central Bank, I led three senior engineers with zero security incidents in production. Today I build HIPAA-compliant apps that handle thousands of trips a day across the US. I graduated first of about 200 in Computer Engineering.
The problem, in one picture
Most testing looks for crashes. The failures I care about never crash.
Apps receive data as text, in a common format called JSON. A software library turns that text into values the app can use. Here is a real case I found in one of Google's libraries, when an app expects a whole number:
"price": 1.9Text arriving from a server
json_serializableGoogle's Flutter Favorite for JSON, used by 360K+ GitHub repositories
price = 1The value quietly changed
I traced the cause, reported it to Google with a proposed fix, then wrote the fix myself. A Google maintainer merged it the same day and called it a "great fix to a VERY nuanced problem." My testing also found silent data loss in Google's built_value, which its maintainer documented after my report. Together, json_serializable and built_value see over 18 million downloads a month.
I met this problem long before my research. At Madfu, a fintech licensed by the Saudi Central Bank, outside security experts audited our apps every few months and found 5 to 10 vulnerabilities each time that our code reviews and automated tests had missed. In one round, they found users' login tokens in our app's logs. Nothing crashed and no test failed, because none knew to look for it. I owned every fix, yet every round showed the same limit: a human expert still had to find what our testing had missed. Today I build AI agents that test my apps as a human tester would, and running the steps is the easy part. Knowing what to look for, what counts as a failure and what is still unchecked is the hard part, and it is the question I want to spend my Ph.D. on.
Why this is hard. To catch it, a test has to know what the right answer should have been. Researchers call this the test oracle problem. A crash is easy to spot. A wrong number that looks normal is not. My research is about building automated tests that can tell, and that only report problems that are real, so developers are not buried in false alarms.
Why this matters now: PHP2Shell
A real example from October 2026 of a flaw that testing missed for over a decade.
PHP is the programming language behind most websites. In October 2026, two critical flaws in it, nicknamed PHP2Shell, let attackers take over web servers without logging in. Both flaws sat in error-handling code that runs only when a request ends abnormally, for example when the server runs out of memory partway through it.
PHP 5.4 is released. Researchers later traced the earliest affected code back to it.
Years of testing never trigger them, because the faulty code runs only when a request fails in an unusual way.
Researchers from Calif, Wiz and OpenAI report the flaws to PHP. Calif and Wiz say they used AI models in their research.
Amazon's honeypots record the first attack attempts, four days before any fix exists.
After the exploit leaks, PHP moves its release up a day and ships fixes for every supported version (8.2 to 8.5).
CISA, the US cybersecurity agency, lists both flaws as exploited in real attacks.
What it teaches, and how it connects to my work
Tests mostly run the common paths. In my third study, an AI testing agent missed the rare failures and then told me everything was fine.
AI helped find these flaws, and attackers were trying to use them before any fix existed. The goal is to find such flaws before attackers do.
A testing tool should say clearly what it could not check, instead of declaring the software safe.
I want to understand why testing misses flaws like these and build automated tools that find them before attackers do. I want the next PHP2Shell to be caught in testing, not after a decade in use.
Sources: Tenable · Canadian Centre for Cyber Security · BleepingComputer. CVE-2026-109618 and CVE-2026-109619.
My research, step by step
Three studies, each answering a question the one before it left open. All three are sole-authored, and all code and data are public. They test JSON libraries, but the methods apply to any kind of software.
All three use fuzzing: a testing tool automatically creates huge numbers of unusual inputs and feeds them to a program to see what breaks. In my work, an AI model helps create those inputs.
Can AI write good test inputs for a program it cannot see inside?
The situation. Most fuzzers decide which inputs are worth keeping by watching which parts of the program each one runs. That requires the program's source code, and outside testers rarely have it. Even the security auditors at the fintech where I worked asked us for ours.
What I did. I let an AI model write programs that generate test inputs, and told it only how many of its inputs the target program rejected. Every generator the AI wrote ran in a sandbox, and every input ran under memory-safety checks. I tested it on cJSON, a widely used program that reads JSON (13K+ GitHub stars).
Share of test inputs the program accepted (higher is better)
A comparison I planned in advance reached 93% with no feedback at all, so most of the gain came from the AI's own generators. In a replication I planned in advance on a second program, the method did worse, and I traced every rejected input to its cause: that program breaks the JSON standard in places and rejected inputs the AI expected to pass.
Lesson. Counting failures is not enough. The AI needs to know which inputs failed and why.
How do you catch a bug that never crashes?
What I did. I gave the same inputs to the four most common ways Dart apps read JSON and flagged every input where their results differed. If two libraries read the same text differently, at least one of them is quietly wrong.
Share of test inputs that exposed a difference (higher is better)
At first the AI lost to a simple generator. When I gave it four short notes on how these libraries handle unusual values, it moved ahead. Along the way I found silent data loss in two Google libraries, json_serializable and built_value, and both acted on my findings: Google merged my fix to json_serializable, and built_value's maintainer documented the behavior.
Lesson. The AI did not need to search harder. It needed knowledge about the libraries.
Can an AI agent learn that knowledge on its own?
What I did. Across eight JSON readers in Dart and Kotlin, in 55 seeded runs over 83,500 inputs, I compared three sources of knowledge: notes I wrote, notes an AI took from reading the library code, and notes an AI learned by running its own experiments. I published the study plan before running it, so I could not adjust it to fit the results.
Dart: share of inputs that exposed a difference
Kotlin: share of inputs that exposed a difference
In Kotlin, where differences were common, the experimenting agent helped. In Dart, where they were rare, it usually missed them and then reported that the libraries agreed.
Lesson. An agent only learns from failures it manages to trigger, so a report of no problems means little unless it also shows what was tested and lets developers see the gaps. That gap is where I want to start my Ph.D.
Papers
All sole-authored, under review, with preprints, code and data public.
Where Does an LLM Fuzzer's Domain Knowledge Come From? Human, Code-Read, and Self-Acquired Knowledge for Differential Testing of Typed Deserializers
Ziyad Mohammad Mansy Ibrahim (sole author)
In plain words: where should an AI testing tool get its knowledge about the software it tests, from a person, from the code, or from its own experiments?
In Dart, knowledge written by a person worked best (30.9% of inputs exposed differences, vs. 11.6% from reading code and 1.5% with none). In Kotlin, an agent's own experiments raised the rate from 50% to 67%.
Cite
@misc{ibrahim2026knowledge,
author = {Ibrahim, Ziyad Mohammad Mansy},
title = {Where Does an {LLM} Fuzzer's Domain Knowledge Come From? Human, Code-Read, and Self-Acquired Knowledge for Differential Testing of Typed Deserializers},
year = {2026},
note = {Preprint, under review at ICST 2027},
doi = {10.5281/zenodo.23002933}
}Beyond Sanitizers: LLM-Guided Refinement for Differential JSON Deserialization Testing in Dart
Ziyad Mohammad Mansy Ibrahim (sole author)
In plain words: how can automated testing catch libraries that quietly change data instead of crashing?
Two Dart JSON libraries silently capped out-of-range numbers in 649 of 11,449 accepted inputs each (5.7%). Missing knowledge, not weak search, was what held the AI fuzzer back.
Cite
@misc{ibrahim2026beyond,
author = {Ibrahim, Ziyad Mohammad Mansy},
title = {Beyond Sanitizers: {LLM}-Guided Refinement for Differential {JSON} Deserialization Testing in {Dart}},
year = {2026},
note = {Preprint, under review at AST 2027},
doi = {10.5281/zenodo.22555794}
}Coverage-Free Fuzzing: LLM-Guided Refinement of Grammar-Based Test Generators
Ziyad Mohammad Mansy Ibrahim (sole author)
In plain words: can an AI write good test inputs for a program without seeing inside it?
AI-written generators raised the share of valid cJSON inputs from 58% to 97%. A comparison planned in advance showed most of the gain came from the generators themselves.
Cite
@misc{ibrahim2026coverage,
author = {Ibrahim, Ziyad Mohammad Mansy},
title = {Coverage-Free Fuzzing: {LLM}-Guided Refinement of Grammar-Based Test Generators},
year = {2026},
note = {Preprint, under review at FORGE 2027},
doi = {10.5281/zenodo.22556342}
}What I want to work on next
The question I want to spend my Ph.D. on: how can automated testing find the bugs and security flaws that today only human experts uncover, including silent failures, without burying developers in false alarms?
My studies raised three open questions. All three come down to one thing: backing every result with evidence, whether a testing tool reports a bug or says there is none.
1. How can a tool tell a real bug from intended behavior?
Many differences I checked by hand turned out to be intended, and a tool that reports all of them buries developers in false alarms. Other cases are harder to judge, like the data loss I found in Google's libraries, which was documented only after my reports, in one case through a fix I wrote. I want tools that learn what a library is supposed to do from its documentation and code, and back each report with a small input and the rule it breaks or the gap it reveals.
2. What quietly changes when an app updates a library?
Apps update the libraries they depend on all the time, often automatically, and assume that passing tests mean nothing broke. The silent data loss I found passed every existing test. I want to run each new version side by side with the one it replaces and flag every input where they behave differently, using the code changes and release notes to guide the tests. The hard parts are reaching the code that changed and deciding which differences matter to the app.
3. Can a testing tool do part of a security expert's job and say what it did not check?
Madfu's auditors checked protections such as secure key storage and blocking fake servers. In practice, a protection that works on Android can fail on iOS or an older OS, even when one codebase serves every platform, as Flutter apps do across Android, iOS and the web. I want tools that test whether each protection holds on every platform and version, and that report what they could not check next to what they found.
After my Ph.D., I want to join an industry research team like Google's OSS-Fuzz or Big Sleep, so that open-source software and its users get the kind of testing Madfu paid experts for. I want to help make expert-level testing and security audits something every developer can run.
Education and honors
B.Sc. in Electrical Engineering (Computer Engineering and IT), Modern Academy for Engineering and Technology
May 2022- Ranked 1st of about 200 in my class. General grade: Excellent. CGPA 3.535/4.00 (90.03%). GPA above 3.8/4.00 and the yearly grade "Excellent with Honors" in each of my first three years, starting with 3.97/4.00. WES U.S. equivalent GPA: 3.71/4.00.
- Merit scholarship in all 10 semesters (2017 to 2022).
- Graduation project (A+, team leader, advisor Prof. Abdelmoneim Fouda): Modern Home Furniture in Augmented Reality, an app that places furniture in a real room at real scale, with the mobile-to-engine layer tested across devices and performance conditions.
- Undergraduate research with Dr. Manar Donia: trained an AI model on 5,000+ medical scans to classify breast tumors, then ran it fully offline inside a mobile app that shows the result with related medical information.
- ZAB (Germany) Statement of Comparability: degree assessed as equivalent to a German university bachelor's degree (2026).
Selections
- One of about 20 of about 70 prospective Ph.D. applicants whose solutions to Dr. Marcelo D'Amorim's (NC State University) fuzzing research challenge passed, and was invited to a Q&A session with him (2026). This challenge started my research.
How I work
What I care about when I do research.
For my third study, I published the full plan before running it, so I could not change it later to fit the results.
When a method did worse on a second program, I reported it and explained why, instead of showing only the good result.
All code, prompts and results are public with permanent DOIs, so anyone can recheck every number.
When my tests find a real problem, I trace the cause, report it to the maintainers and send the fix, so it reaches everyone who uses the library. See the fixes they merged.
Every report I file arrives with the input, the evidence and the steps to fix it, the way the penetration-test reports at Madfu did, so a maintainer can verify it in minutes.
Five years on remote teams taught me to write so that anyone can pick up my work and continue it without a single explanation from me, from bug reports and tickets to code comments and documentation.
Real-world impact
Problems I found or fixed in software that many developers depend on.
- Google json_serializable (used by 360K+ GitHub repositories): found that it silently caps out-of-range numbers and turns 1.9 into 1. A Google maintainer merged my fix the same day and called it a "great fix to a VERY nuanced problem" (#1591, PR #1592).
- Google built_value: reported that a missing required list silently becomes empty. The maintainer confirmed it was undocumented and documented it (#1404, dart-lang/build#5178).
- JetBrains kotlinx.serialization: reported, with a standalone reproducer on two releases, that its strict mode accepts characters the JSON standard forbids (#3276).
- intercom_flutter: fixed an app crash at startup on recent iOS versions in a package with 320K+ monthly downloads, released in v9.0.4 (PR #431).
- LLVM: added a controlled comparison to a report of an AddressSanitizer hang on macOS, showing that upstream LLVM 23.1.0 is unaffected (#200447).
- Community: 3,000+ GitHub contributions across 50+ repositories, Stack Overflow top 8% (2021) with answers that have reached about 21,000 people, and developer articles on Medium.
Experience
Five years shipping and securing production apps in fintech, healthcare, transportation, HR and real estate, with 200K+ combined downloads, working remotely from Cairo with teams in the UAE, Saudi Arabia, the UK and the US. Open any role for details.
Senior Mobile Software Engineer, Naveera Tech (US, remote)
May 2026 – PresentTook over a fleet platform that had gone 9 months without a release and shipped it within a month. It now handles thousands of trips a day for hundreds of US organizations, including medical transportation.
Naveera Driver on the App Store · Google Play
Details
- Built the HIPAA-compliant Driver and Client apps used by non-emergency medical transportation, paratransit and commercial transportation providers.
- Designed an offline-first architecture that keeps dispatch, navigation and trip state correct when the connection drops, and reconciles automatically when it returns.
- Built live turn-by-turn navigation and the dispatch, routing and billing workflows.
- Own testing end to end: unit and integration tests, manual test passes, and my AI agents that run manual-style test scenarios across the apps' core flows.
Senior Mobile & Web Software Engineer, Focal Agent (UK, remote)
Aug 2024 – Apr 2026Delivered AI features for PropertyBox, a real-estate platform used by thousands of estate agents across the UK, Europe and the UAE.
PropertyBox · App Store · Google Play
Details
- AI photo enhancement (2.9M+ photos), object removal (426K+ objects), floor-plan redrawing (94K+ plans), property-description generation and one-step social publishing.
- Custom features for enterprise clients Reapit and Connells, and UK regulatory workflows for EPC compliance.
- One Flutter codebase for Web, Android and iOS, shipped through automated CI/CD on Azure Pipelines.
- Unit and integration tests, plus AI agents that test the app the way a human tester would. Ran recurring sessions teaching colleagues to use AI coding tools.
Lead Mobile Software Engineer, Madfu (Saudi Arabia, remote)
Jan 2023 – Jul 2024Led a team of three senior engineers building the apps of a buy-now-pay-later platform licensed by the Saudi Central Bank (100K+ downloads), with zero security incidents in production.
MADFU on the App Store · Google Play · MADFU Partner on the App Store · Google Play
Details
- Replaced separate native Android and iOS apps with one Flutter app built from scratch: the consumer app (100K+ downloads) with KYC, installments and Apple Pay, Google Pay, Stripe and POS integrations, and the MADFU Partner merchant app, one responsive codebase for phones and POS terminals.
- Closed all 5 to 10 findings from every recurring third-party penetration test and hardened the apps with secure key handling, encryption at rest, SSL pinning, root and jailbreak detection, code obfuscation, biometric authentication, session timeouts and screen-capture protection.
- Built the team's quality process from nothing: mandatory code review, a shared component library and test-driven development. Crash-free users rose to 98% against a 95% target, with a two-week release cadence.
Senior Mobile Software Engineer, Assas IT Solutions (Saudi Arabia, remote)
Jan 2022 – Dec 2022Led and mentored junior engineers to stabilize Tahara and take it to production, and built its core features, including cycle tracking and a weekly pregnancy calendar. A women's-health app, it ranked #1 in Health & Fitness and #12 across all categories on the Saudi App Store (Oct 2026), with 100K+ downloads.
Founding Mobile Software Engineer, Talmaro (UAE, remote)
Mar 2021 – Dec 2021The company's first mobile engineer. Built and shipped its HR app from scratch, with attendance, payroll, leave and approval workflows, reaching 10K+ downloads across three app stores.
Founder and Independent App Developer, Mansy Studio
Self-publishedMy own app studio at mansystudio.com. I have published 10+ apps of my own on Google Play as sole developer, from design to release, besides the apps I built for the companies I worked for. In November 2026 I launched Z Academy, licensing-exam prep for dentists, pharmacists and nurses with 7,400+ explained questions for 36 exams in Egypt and the Gulf, and Homelings, an offline puzzle game for children aged 3 to 8 in 6 languages.
Mansy Studio · Z Academy · Homelings · Piety of Hearts · All apps on Google Play
Details
- Z Academy: one app per profession, each holding every licensing exam that profession sits in the Gulf and Egypt, with every answer option explained, timed mock exams in each exam's real format and a study plan that counts down to the exam date. Dental Exam Prep: 1,500+ questions for 7 exams. Pharmacy Exam Prep: 3,000+ questions for 8 exams, including Egypt's. Nursing Exam Prep: 2,900+ questions for 21 exams, including Kuwait, Egypt and six midwife exams.
- Z Academy engineering: five shared Flutter packages (exam engine, design system, services, screen protection and the full exam app) that every profession's app reuses, so a new app is a profile plus its content. Encrypted question packs with keys kept outside the code, Firebase App Check with Play Integrity, database rules tested on an emulator, and screenshot and screen-recording blocking. A GitHub Actions pipeline uploads each signed build to internal testing, then promotes that exact tested build to production.
- Homelings (Google Play): a calm road-building puzzle with unlimited levels on three islands, including Train Island and Number Roads, where sums become roads for ages 6 to 8. Game rules live in a pure Dart package with a solver that proves every level can be solved before it ships. No ads, no server and no personal data, fully offline, right-to-left Arabic, and a grown-up check in front of every purchase.
- Piety of Hearts (Google Play): a Flutter prayer and Quran app in 9 languages (1K+ downloads, 4.9/5) with adhan alerts, home-screen widgets, a Qibla compass and offline azkar and Quran. Also Flying Bird, an ad-free one-tap game (5.0/5), and earlier native Android apps in Java and Kotlin.
Leadership, teaching and skills
Leadership and teaching
- The best way to master a subject is to teach it. I have lived by that in how I study, how I lead and how I do research.
- Throughout university I tutored friends in my cohort, led study groups before exams and turned my notes for every course into a revision guide before each final. Much of my class prepared from those guides.
- Led and mentored three senior engineers at Madfu, mentored junior engineers at Assas while taking Tahara to production, and ran regular sessions at Focal Agent teaching colleagues to use AI coding tools well.
- Led my graduation project team, planned the work and taught teammates, and presented the project at a final defense that included external examiners. Led my team's seminar presentations (Seminar I: A+).
Skills
- Research and testing: fuzzing, grammar-based and property-based test generation, differential testing, static analysis, test-driven development, pre-registered experiments, nonparametric statistics (Mann–Whitney U, Cliff's δ, Holm correction).
- AI agents for engineering: designed a suite of 39 custom AI agents that I use daily across every project I work on, covering bug hunting, fuzz testing, coverage and mutation testing, security auditing, code review and the rest of the development lifecycle.
- Tools: Hypothesis, ANTLR, AddressSanitizer, UndefinedBehaviorSanitizer, OpenAI API, Git, GitHub Actions, Azure DevOps, Codemagic.
- Languages: Dart, Python, Kotlin, C, Java, Swift, JavaScript.
- Mobile and web: Flutter, Android, iOS, React, Flutter Web, Clean Architecture, SOLID, offline-first systems, secure key storage, encryption at rest.
- ML and AR: TensorFlow, TensorFlow Lite, OpenCV, Unity3D, ARCore.