<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mayank Metha on Medium]]></title>
        <description><![CDATA[Stories by Mayank Metha on Medium]]></description>
        <link>https://medium.com/@mayankmethad?source=rss-7fd061c0c839------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*2tB2r81UoN6bos9m</url>
            <title>Stories by Mayank Metha on Medium</title>
            <link>https://medium.com/@mayankmethad?source=rss-7fd061c0c839------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 01:48:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mayankmethad/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Changing Android Process Name at Runtime]]></title>
            <link>https://medium.com/@mayankmethad/masking-android-process-name-on-runtime-db1a4b1123d7?source=rss-7fd061c0c839------2</link>
            <guid isPermaLink="false">https://medium.com/p/db1a4b1123d7</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-security]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Mayank Metha]]></dc:creator>
            <pubDate>Sun, 29 Aug 2021 12:39:57 GMT</pubDate>
            <atom:updated>2021-08-29T12:51:10.186Z</atom:updated>
            <content:encoded><![CDATA[<p>Base of Android kernel is Linux kernel. This allows us to make use of C/C++ on Android, making it very powerful mobile OS. Android C/C++ programming is supported via NDK. The GNU C Library (glibc) project provides the core libraries for the GNU system and GNU/Linux systems, as well as many other systems that use Linux as the kernel. NDK can make use of glibc easily due to this fact.</p><p>Process name is provided via name of the package name in Android. In C/C++ language this name is provided via runtime argument <strong><em>argv[0]</em></strong>. <strong><em>argv[0]</em></strong> is used by glibc to set the process name. In glibc there is a file <strong><em>argp-parse.c</em></strong> assigns the process name from the function <strong><em>argp_default_parser()</em></strong>. In this function the value of variable <strong><em>program_invocation_short_name</em></strong> is set, which is used to identify the process name. A weak alias of <strong><em>program_invocation_short_name </em></strong>is present in <strong><em>libc-misc.c</em></strong>. In this file, the weak_alias name is <strong><em>__progname </em></strong>and <strong><em>__progname </em></strong>gets the value from <strong><em>argv[0].</em></strong> glibc exposes <strong><em>__progname</em></strong> as <strong><em>extern</em></strong>, making it possible to be called from any C/C++ code file.</p><p>As Android NDK can make use of glibc, it makes it easy to change the Android package name on runtime, thereby masking the process even without superuser/root access. This can be a great security risk as malware, spywares and other rouge apps can make use of this to evade security scanners and removal tools.</p><p>Proof of Concept Code and Video:</p><p><a href="https://github.com/mayankmetha/dynamic_process_name">GitHub - mayankmetha/dynamic_process_name: POC of changing android process name using glibc&#39;s __progname.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db1a4b1123d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can we trust Aarogya Setu?]]></title>
            <link>https://medium.com/@mayankmethad/can-we-trust-aarogya-setu-e9b6a3edd1f7?source=rss-7fd061c0c839------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9b6a3edd1f7</guid>
            <dc:creator><![CDATA[Mayank Metha]]></dc:creator>
            <pubDate>Sun, 14 Jun 2020 03:57:39 GMT</pubDate>
            <atom:updated>2020-06-14T04:04:04.376Z</atom:updated>
            <content:encoded><![CDATA[<p>Refer video link <a href="https://www.facebook.com/mayankmethad17/videos/2948881305160102/">https://www.facebook.com/mayankmethad17/videos/2948881305160102/</a>for the content that follows.</p><p>Left is Aarogya Setu what the government wants us to see (commit b81f31a, dated 1 June,2020 from GitHub), Right is the actual Aarogya Setu app from Play Store (version 1.2.2, released 31th May,2020) decompiled. Compare both the files, both are Android Manifest files, certain line difference is because the content was added by compilers.</p><p>On the left no Camera permission, on the right there is camera permission.</p><p>Left has only firebase cloud message, right has firebase remote app install, analytics code and lots more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9MPPBctp9lqtohndaTZuRQ.jpeg" /><figcaption>Android Manifest Difference!</figcaption></figure><p>Even iOS version is flawed as hell. Disable location permission for the app from settings, turn off Bluetooth from settings and then use the app, it can still show your location if you are walking and warns you of potential suspected COVID exposure also, this is surprising as it defeats the iOS security model.</p><p>How frequently the location is collected is also terrible, interval of collection is either a time period of 5 to 30 minutes or a displacement of 100m. This is the same location update logic when you use navigation apps. This location can easily be mocked also using the same GPS mocking apps used to play Pokemon Go.</p><p>Can we still trust this Aarogya Setu app?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9b6a3edd1f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Importance of Information Gathering in Security]]></title>
            <link>https://medium.com/@mayankmethad/importance-of-information-gathering-in-security-d7a8f590d8f?source=rss-7fd061c0c839------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7a8f590d8f</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[information-security]]></category>
            <dc:creator><![CDATA[Mayank Metha]]></dc:creator>
            <pubDate>Tue, 14 Apr 2020 06:26:57 GMT</pubDate>
            <atom:updated>2020-04-14T08:12:10.772Z</atom:updated>
            <content:encoded><![CDATA[<p>Security is a broad and a fast-growing domain in the cyberspace. The most important step in Security to solve any problem is “<em>Information Gathering</em>.”</p><p>Many of the security vulnerability discovered was a result of Information Gathering. Even the oldest of the protocol has some flaws, only on through studying the design &amp; implementation they can be discovered. Isn’t this what we call Information Gathering. Let’s take an analogy from the real world. A patient goes to a doctor with some problems. The doctor collects vital of the patients and suggests tests if required. This diagnosis is Information Gathering. To cure any problem the doctor learns from literature and other doctors, which is also a process of Information Gathering.</p><p>Similarly, is the cyber world. To do any task, Information about the task is needed. The background about the task is also important, to solve it. This background includes literature and documentation of tools, protocols and much more. How things work should also not be ignored. All these are a process of Information Gathering. Many times people new to security forget this step and cause harm not only to others, but also to themselves. So, do homework of Information Gathering before diving into solving a security problem or a hack, else you will be related to this meme for sure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*mvhJE3j7yRrJ9SAcybrlQQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7a8f590d8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>