<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ullah-naqeeb</title>
    <description>The latest articles on DEV Community by ullah-naqeeb (@ullahnaqeeb).</description>
    <link>https://dev.to/ullahnaqeeb</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4021148%2F1d554aa6-019a-49f7-af4e-7deb3700a9a7.png</url>
      <title>DEV Community: ullah-naqeeb</title>
      <link>https://dev.to/ullahnaqeeb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ullahnaqeeb"/>
    <language>en</language>
    <item>
      <title>Is using Android's Accessibility Service for an on-device AI security agent a bad idea? 🤖🛡️</title>
      <dc:creator>ullah-naqeeb</dc:creator>
      <pubDate>Wed, 08 Jul 2026 14:55:06 +0000</pubDate>
      <link>https://dev.to/ullahnaqeeb/is-using-androids-accessibility-service-for-an-on-device-ai-security-agent-a-bad-idea-1m0d</link>
      <guid>https://dev.to/ullahnaqeeb/is-using-androids-accessibility-service-for-an-on-device-ai-security-agent-a-bad-idea-1m0d</guid>
      <description>&lt;p&gt;Hey Dev Community! 👋&lt;/p&gt;

&lt;p&gt;I’m currently building Aigris, an open-source, 100% on-device AI cybersecurity agent designed to protect everyday mobile users from real-time threats like phishing and financial scams.&lt;/p&gt;

&lt;p&gt;The project is fully public, and you can check out the architecture or roast my code here:&lt;br&gt;
👉 GitHub Repository: &lt;br&gt;
&lt;a href="https://github.com/ullah-naqeeb/aigris.git" rel="noopener noreferrer"&gt;https://github.com/ullah-naqeeb/aigris.git&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To intercept phishing attempts before the browser renders the malicious payload, I made a specific engineering choice: I implemented an Android Accessibility Service to extract the full URL string directly from the address bars of major browsers (Chrome, Edge, Samsung Internet).&lt;/p&gt;

&lt;p&gt;Under the hood, the pipeline is highly optimized for consumer hardware to respect strict resource constraints (&amp;lt; 5% CPU when idle, &amp;lt; 200MB RAM footprint):&lt;/p&gt;

&lt;p&gt;Asynchronous Inference: URL extraction and local ONNX model inferences are completely offloaded from the Main Thread using Kotlin Coroutines (Dispatchers.Default).&lt;/p&gt;

&lt;p&gt;TTL Memory Caching: An Android LruCache stores up to 100 entries with a 10-minute Time-To-Live (TTL). Hits skip the ONNX inference entirely to save battery.&lt;/p&gt;

&lt;p&gt;URL Normalization: Query parameters and fragments are stripped before lookup to maximize cache efficiency.&lt;/p&gt;

&lt;p&gt;The Dilemma: The Accessibility Service Friction 🛑&lt;br&gt;
While this architecture works flawlessly under the hood and successfully bypasses Android OS deep-link restrictions, I’m facing a major philosophical and practical crossroads regarding UX and app distribution.&lt;/p&gt;

&lt;p&gt;As we all know, Accessibility APIs are notoriously difficult to clear on the Google Play Store if your app isn't strictly an assistive technology. Google is (rightfully) aggressive about blocking apps that use these permissions due to historical malware abuse.&lt;/p&gt;

&lt;p&gt;Even for sideloaded or open-source apps, asking a non-technical consumer to go deep into Android Settings, find "Downloaded Services," and toggle a scary warning switch is a massive user friction.&lt;/p&gt;

&lt;p&gt;My Questions to the Community:&lt;br&gt;
Did I pick the wrong tool? Is there a less invasive, modern Android API that can achieve system-wide or browser-wide URL interception without root and without relying on local VPN loops (which often mess with battery and DNS encryption)?&lt;/p&gt;

&lt;p&gt;Play Store compliance: Has anyone successfully published a security-focused app utilizing Accessibility Services recently? What was your experience with the review board?&lt;/p&gt;

&lt;p&gt;UX alternatives: If I stick with this, what's the best way to explain this "scary permission" to a regular user without overwhelming them?&lt;/p&gt;

&lt;p&gt;I’d love to hear your thoughts, architectural critiques, or alternative approaches. If you find the project interesting, feel free to contribute or drop a ⭐️ on GitHub!&lt;/p&gt;

&lt;p&gt;Looking forward to your feedback! 💬&lt;/p&gt;

</description>
      <category>android</category>
      <category>architecture</category>
      <category>opensource</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Building Aigris: An On-Device AI Cybersecurity Agent for Android</title>
      <dc:creator>ullah-naqeeb</dc:creator>
      <pubDate>Wed, 08 Jul 2026 11:04:06 +0000</pubDate>
      <link>https://dev.to/ullahnaqeeb/building-aigris-an-on-device-ai-cybersecurity-agent-for-android-3l8j</link>
      <guid>https://dev.to/ullahnaqeeb/building-aigris-an-on-device-ai-cybersecurity-agent-for-android-3l8j</guid>
      <description>&lt;p&gt;Cyber threats are becoming increasingly common. Phishing websites, malicious links, fake messages, and social engineering attacks target millions of people every day.&lt;/p&gt;

&lt;p&gt;Most security solutions rely heavily on cloud services: data is sent to remote servers, analyzed, and then a decision is returned to the user.&lt;/p&gt;

&lt;p&gt;As someone who is passionate about both artificial intelligence and cybersecurity, I started asking myself a question:&lt;/p&gt;

&lt;p&gt;Can we build a security assistant that uses AI directly on the user's smartphone while preserving privacy?&lt;/p&gt;

&lt;p&gt;This question became the starting point of Aigris.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who am I?
&lt;/h2&gt;

&lt;p&gt;I'm a second-year Computer Engineering student with a strong interest in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Artificial Intelligence&lt;/li&gt;
&lt;li&gt;Cybersecurity&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I enjoy building projects that allow me to combine theory with practical engineering challenges. Aigris is currently my biggest personal project and an opportunity to explore how AI and cybersecurity can work together in real-world applications.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Aigris?
&lt;/h2&gt;

&lt;p&gt;Aigris is an experimental Android application that aims to become an AI-powered cybersecurity agent capable of helping users defend themselves against common digital threats.&lt;/p&gt;

&lt;p&gt;The project focuses on a simple principle:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Security should be intelligent, proactive, and privacy-friendly.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The long-term vision is to create a mobile security assistant capable of:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Detecting phishing attempts&lt;/li&gt;
&lt;li&gt;Analyzing suspicious URLs&lt;/li&gt;
&lt;li&gt;Identifying potentially dangerous content&lt;/li&gt;
&lt;li&gt;Warning users about digital threats in real time&lt;/li&gt;
&lt;li&gt;Performing as much analysis as possible directly on the device&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why On-Device AI?
&lt;/h2&gt;

&lt;p&gt;Privacy is one of the main motivations behind this project.&lt;/p&gt;

&lt;p&gt;Sending sensitive information to external servers is not always desirable. Modern smartphones are becoming increasingly powerful and can now execute lightweight machine learning models efficiently.&lt;/p&gt;

&lt;p&gt;Running AI directly on the device offers several advantages:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Better privacy&lt;/li&gt;
&lt;li&gt;Lower latency&lt;/li&gt;
&lt;li&gt;Reduced dependence on cloud services&lt;/li&gt;
&lt;li&gt;Some protection capabilities even while offline&lt;/li&gt;
&lt;li&gt;Greater user control over personal data&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This privacy-first approach is one of the core ideas behind Aigris.&lt;/p&gt;

&lt;p&gt;Technologies Behind the Project&lt;/p&gt;

&lt;p&gt;Aigris combines multiple areas of computer science:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Android Development&lt;/li&gt;
&lt;li&gt;Kotlin&lt;/li&gt;
&lt;li&gt;Machine Learning&lt;/li&gt;
&lt;li&gt;ONNX Runtime&lt;/li&gt;
&lt;li&gt;Cybersecurity&lt;/li&gt;
&lt;li&gt;Software Engineering&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One of the most interesting aspects of this project is learning how to deploy AI models efficiently on mobile devices while respecting performance and battery constraints.&lt;/p&gt;

&lt;h2&gt;
  
  
  Current Goals
&lt;/h2&gt;

&lt;p&gt;The project is still evolving, but the current areas of focus include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Phishing detection&lt;/li&gt;
&lt;li&gt;Suspicious URL analysis&lt;/li&gt;
&lt;li&gt;Real-time threat alerts&lt;/li&gt;
&lt;li&gt;Privacy-preserving AI inference&lt;/li&gt;
&lt;li&gt;Malware-related threat detection&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Technical Challenges
&lt;/h2&gt;

&lt;p&gt;Building an intelligent security application on a smartphone is not easy.&lt;/p&gt;

&lt;p&gt;Some of the challenges I am currently exploring include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Optimizing AI models for mobile devices&lt;/li&gt;
&lt;li&gt;Reducing inference time&lt;/li&gt;
&lt;li&gt;Limiting memory consumption&lt;/li&gt;
&lt;li&gt;Balancing security and battery usage&lt;/li&gt;
&lt;li&gt;Designing a user experience that remains simple and non-intrusive&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These challenges are exactly what make the project exciting from both an engineering and research perspective.&lt;/p&gt;

&lt;h2&gt;
  
  
  Future Ideas
&lt;/h2&gt;

&lt;p&gt;Some ideas I would like to explore in future versions are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;More advanced phishing classifiers&lt;/li&gt;
&lt;li&gt;Social engineering detection&lt;/li&gt;
&lt;li&gt;Better explainability of AI decisions&lt;/li&gt;
&lt;li&gt;Browser protection mechanisms&lt;/li&gt;
&lt;li&gt;Additional security modules&lt;/li&gt;
&lt;li&gt;Further optimization of on-device models&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why I'm Sharing This
&lt;/h2&gt;

&lt;p&gt;One of the reasons I love open source is the opportunity to learn from other developers.&lt;/p&gt;

&lt;p&gt;I'm still a student, and I know there is a lot I can improve. That's exactly why I'm sharing this project publicly.&lt;/p&gt;

&lt;p&gt;I would genuinely appreciate feedback about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The architecture&lt;/li&gt;
&lt;li&gt;The idea itself&lt;/li&gt;
&lt;li&gt;The machine learning approach&lt;/li&gt;
&lt;li&gt;The Android implementation&lt;/li&gt;
&lt;li&gt;Possible security improvements&lt;/li&gt;
&lt;li&gt;Features that could make the project more useful&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  GitHub Repository
&lt;/h2&gt;

&lt;p&gt;You can find the project here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/ullah-naqeeb/aigris.git" rel="noopener noreferrer"&gt;https://github.com/ullah-naqeeb/aigris.git&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you have suggestions, ideas, or constructive criticism, I would be extremely grateful to hear your thoughts.&lt;/p&gt;

&lt;p&gt;Even a small piece of feedback can help improve the project and help me grow as a developer.&lt;/p&gt;

&lt;p&gt;Thank you for reading!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>cybersecurity</category>
      <category>android</category>
    </item>
  </channel>
</rss>
