<?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 Rohan Irani on Medium]]></title>
        <description><![CDATA[Stories by Rohan Irani on Medium]]></description>
        <link>https://medium.com/@rohanirani2003?source=rss-588cc1abaea8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*hvvZtAnil7Zn2e93</url>
            <title>Stories by Rohan Irani on Medium</title>
            <link>https://medium.com/@rohanirani2003?source=rss-588cc1abaea8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 11:24:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rohanirani2003/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[Inside the CAN Bus: The Hidden Security Risks in Connected Vehicles]]></title>
            <link>https://medium.com/@rohanirani2003/inside-the-can-bus-the-hidden-security-risks-in-connected-vehicles-8a55cbf93ae5?source=rss-588cc1abaea8------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a55cbf93ae5</guid>
            <category><![CDATA[automobile]]></category>
            <category><![CDATA[automotive]]></category>
            <category><![CDATA[connected-car-data]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Rohan Irani]]></dc:creator>
            <pubDate>Mon, 24 Mar 2025 14:15:23 GMT</pubDate>
            <atom:updated>2026-05-20T08:13:53.065Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*g4SDVTYnqc5KmN8A.jpg" /></figure><p><em>“Does it come with an app?”</em></p><p><em>“How do I start the car with my phone?”</em></p><p>This is the modern automobile market in a nutshell. Today’s car buyers are more concerned about how well their machines are equipped rather than just horsepower and torque figures, which were the primary selling points a few years ago.</p><p>With the rising demand for high-tech features, OEMs have had to step up their game offering the best-in-class technology at competitive prices to keep consumers satisfied. “Connected Car” features make accessing vehicle data effortless, often within seconds. <strong>But have we ever stopped to think about what could go wrong?</strong></p><p>This article dives into how <strong>Connected Car Tech (CCT)</strong> data can be manipulated and the security measures OEMs claim to implement (Do they?)</p><h4><strong>The Hidden Network Inside Your Car</strong></h4><p>Modern vehicles are no longer just mechanical machines , they are <strong>rolling computers</strong> with dozens of electronic control units <strong>(ECUs)</strong> communicating over a shared network.</p><p>At the heart of this communication lies the <strong>Controller Area Network (CAN Bus)</strong>, a protocol that enables real-time data exchange between various vehicle components, from the <strong>engine control unit (ECU)</strong> to the <strong>dashboard, airbags, and ABS system</strong>.</p><p>While the CAN Bus is essential for seamless vehicle operation, <strong>it was never designed with security in mind</strong>.</p><p>Originally developed in the 1980s, it lacks <strong>encryption, authentication, or message validation</strong>, making it <strong>vulnerable to cyberattacks</strong>.</p><p>If an attacker gains access to a vehicle’s CAN Bus whether through <strong>physical access (OBD-II port), or wireless vulnerabilities </strong>they can manipulate critical vehicle data.</p><p>This can lead to:</p><p>• <strong>Fake sensor readings</strong> (e.g., manipulating RPM, fuel level, or speedometer data).</p><p>• <strong>Denial-of-Service (DoS) attacks</strong>, causing ECUs to crash or malfunction.</p><p>• <strong>Braking or acceleration interference</strong>, endangering driver safety.</p><h4><strong>How does CAN work?</strong></h4><p>The <strong>CAN Bus </strong>is<strong> </strong>basically<strong> </strong>a <strong>nervous system for modern vehicles</strong>, allowing ECUs to communicate with each other without a central computer. Instead of having a direct connection between every component (which would be complex and inefficient), all ECUs share the same <strong>CAN Bus</strong> and communicate through <strong>messages</strong>.</p><p>Components of a <strong>CAN</strong> bus com message include :<br><strong>i. CAN ID</strong></p><p>Unique identifier for which ECU sent the message. Lower values have higher priority.</p><p><strong>ii. DLC</strong></p><p>Data Length Code — indicates how many bytes of data are in the message (0 to 8 for CAN 2.0).</p><p><strong>iii. Data</strong></p><p>Actual information being sent (sensor values, commands, etc.). Can be up to 8 bytes.</p><p><strong>iv. CRC</strong></p><p>Cyclic Redundancy Check — used for error detection.</p><p><strong>Example CAN Message (RPM Data Simulation):</strong></p><pre>0CFF → Message ID (could be from the engine ECU).<br>vcan0 0CFF [8] 07 D0 00 00 00 00 00 00<br></pre><ul><li><strong>07 D0</strong> → Data in Hex (2000 in decimal, meaning <strong>2000 RPM</strong>).</li><li><strong>Remaining bytes</strong> → Padding.</li></ul><h4><strong>So what’s the catch?</strong></h4><p><strong>There is no security!</strong></p><p>The CAN Bus was designed <strong>before cybersecurity was a concern</strong>. It <strong>trusts every device on the network</strong>, meaning:</p><p>1.It does <strong>not</strong> verify if messages are from a legitimate source.</p><p>2. It has <strong>no encryption</strong>, so attackers can eavesdrop.</p><p>3. It has <strong>no authentication</strong>, so fake messages are accepted as real.</p><p><strong>3) Simulating a CAN Bus Attack</strong></p><p>Let’s try to simulate an attack on the CAN bus. We will setup a virtual CAN bus and try to manipulate RPM readings of a Vehicle.</p><p>The first attack is based on injecting fake RPM data o trick the system. We’ll send a <strong>fake RPM value of 7000 RPM.</strong></p><p>Sending fake data👇🏻</p><pre>cansend vcan0 0CFF#1B58000000000000</pre><p><strong>1B58 (Hex) = 7000 RPM</strong> in decimal.</p><p><strong>Expected Manipulated Output in candump</strong>👇🏻</p><pre>vcan0  0CFF   [8]  1B 58 00 00 00 00 00 00  </pre><p>This <strong>overrides the original RPM value</strong>, making it appear as if the engine is revving at 7000 RPM, even though the real engine speed might be much lower.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qgla1XoNfa4hMcXkkmhwNA.png" /><figcaption>RPM data manipulated to 7000RPM (Right Terminal)</figcaption></figure><p><strong>Automating the Attack (Denial-of-Service on RPM)</strong></p><p>Instead of sending a single fake message, an attacker could flood the network with <strong>constant fake RPM values</strong>, preventing the ECU from processing real data.</p><p>Run this <strong>continuous attack script</strong>:</p><pre>while true; do cansend vcan0 0CFF#1B58000000000000; done</pre><p>This could lead to :<br> i. The speedometer or tachometer might <strong>freeze</strong> or show <strong>incorrect values</strong>.</p><p>ii. The real RPM value <strong>never updates</strong> because the fake messages dominate the network.</p><h4><strong>Observing the Impact</strong></h4><p>You can compare real vs. manipulated data by running:</p><pre>candump vcan0</pre><h4><strong>How can we secure CAN bus?🧐</strong></h4><p>The CAN Bus <strong>was designed for reliability, not security</strong>.</p><p><strong>i. No authentication</strong> — Any device on the bus can send messages.</p><p>ii. <strong>No encryption</strong> — Attackers can read and modify messages easily.</p><p><strong>iii. No built-in intrusion detection</strong> — The vehicle <strong>trusts</strong> every message.</p><p>This makes <strong>spoofing and denial-of-service (DoS) attacks</strong> easy to execute.</p><p>The best way I could think of securing attacks on the CAM is by implementing a simple <strong>IDS</strong> (Intrusion Detection System)</p><h4><strong>CAN IDS can detect:</strong></h4><p>• <strong>Unusual message frequencies</strong> (e.g., RPM changing too fast).</p><p>• <strong>Spoofed messages from unexpected sources</strong> (ECU sending incorrect data).</p><ul><li><strong>High message injection rate</strong> (DoS attack).</li></ul><p>A Simple IDS python script to detect anomalies👇🏻</p><pre>import pandas as pd<br><br>df = pd.read_csv(&quot;can_data.csv&quot;, names=[&quot;Timestamp&quot;, &quot;CAN_ID&quot;, &quot;Data&quot;])<br>df[&quot;RPM&quot;] = df[&quot;Data&quot;].apply(lambda x: int(x[:4], 16))  <br><br><br>RPM_MIN, RPM_MAX = 800, 5000<br><br><br>df[&quot;Anomaly&quot;] = (df[&quot;RPM&quot;] &lt; RPM_MIN) | (df[&quot;RPM&quot;] &gt; RPM_MAX)<br><br><br>anomalies = df[df[&quot;Anomaly&quot;]]<br>print(&quot;Detected Anomalies:&quot;)<br>print(anomalies[[&quot;Timestamp&quot;, &quot;RPM&quot;]])</pre><p>This basic IDS flags RPM values <strong>above 5000 RPM</strong> as suspicious.</p><p>Another method i could think of is limiting the amount of messages sent by the ECU per second.</p><p>Example: A real RPM signal updates <strong>once per second</strong>, so any device sending RPM data <strong>100 times per second</strong> is suspicious.</p><p>In an era where manufacturers focus on adding <strong>“bells and whistles”</strong> to vehicles, it’s equally crucial to ensure that the communication within these technologies remains secure.</p><p>If you’ve made it this far and have knowledge about this topic, I’d love to hear your thoughts! Feel free to share your insights in the comments — especially on how OEMs actually implement security in real-world vehicles. I’m sure they have measures in place, and it would be great to discuss them.😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a55cbf93ae5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Installing Pixel Experience on Dubai]]></title>
            <link>https://medium.com/@rohanirani2003/installing-pixel-experience-on-dubai-a6c7dfee3053?source=rss-588cc1abaea8------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6c7dfee3053</guid>
            <category><![CDATA[pixel-experience]]></category>
            <category><![CDATA[custom-rom]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Rohan Irani]]></dc:creator>
            <pubDate>Fri, 06 Jan 2023 14:14:26 GMT</pubDate>
            <atom:updated>2023-01-31T15:23:02.324Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yVwg5HEtCBBDK6Ht2JCjMA.png" /></figure><p><strong>Prerequisites</strong><a href="https://nameless.wiki/getting-started/install/for_9_9PRO#prerequisites"><strong>​</strong></a></p><ul><li>Working brains, common sense, lots of coffee</li><li>Latest <a href="https://dl.google.com/android/repository/platform-tools-latest-windows.zip">platform-tools</a></li><li><a href="https://dl.google.com/android/repository/latest_usb_driver_windows.zip">Google USB driver</a></li><li>Developer options enabled: Settings -&gt; About phone -&gt; Tap Build number at the bottom seven (7) times</li><li>ADB enabled: Settings -&gt; System -&gt; Developer options -&gt; USB debugging</li><li>Required images: dtbo.img, vendor_boot.img, boot.img (put these in the same folder with platform-tools)</li><li>Get images from <a href="https://tinyurl.com/yc23da54">downloads page</a></li><li>ROM zip (put it in the same folder with platform-tools)</li><li>Unlocked bootloader</li></ul><p><strong>Flashing Images</strong></p><p>1. <a href="https://nameless.wiki/getting-started/install/for_9_9PRO#prerequisites"><strong>​</strong></a> Reboot your phone to fastboot mode</p><p>2. Open cmd and go to the folder where platform tools are <strong>(DO NOT USE POWERSHELL!)</strong></p><p>3. Enter following commands by copy pasting one by one:</p><p>· <strong>fastboot flash boot boot.img</strong></p><p>· <strong>fastboot flash dtbo dtbo.img</strong></p><p>· <strong>fastboot flash vendor_boot vendor_boot.img</strong></p><p>4. Reboot your phone to recovery mode, click “Install update” -&gt; “ADB Sideload”</p><p><strong>Ensuring all firmware partitions are consistent</strong></p><ol><li>Download the copy-partitions-20220613-signed.zip file from <a href="https://mirrorbits.lineageos.org/tools/copy-partitions-20220613-signed.zip">here</a>.</li><li>Sideload the copy-partitions-20220613-signed.zip package:</li></ol><ul><li>On the device, select “Apply Update”, then “Apply from ADB” to begin sideload.</li><li>On the command prompt type:<strong> <em>adb sideload copy-partitions-20220613-signed.zip</em></strong></li></ul><ol><li>Now reboot to recovery by tapping “Advanced,” then “Reboot to recovery.”</li></ol><p><strong>Sideloading ROM</strong></p><p>1. In cmd enter command: (Whatever is the filename)</p><p>· <strong>adb sideload pixelexp_xxx.zip</strong></p><p>2. Wait until your device shows Step 2/2 and back arrow appears. Click back arrow, then click “Factory reset” -&gt; “Format data/factory reset” -&gt; “Format data”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6c7dfee3053" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>