<?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 Meenakshi M Kumar on Medium]]></title>
        <description><![CDATA[Stories by Meenakshi M Kumar on Medium]]></description>
        <link>https://medium.com/@meenakshimahesh?source=rss-9180116a8ebb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Meenakshi M Kumar on Medium</title>
            <link>https://medium.com/@meenakshimahesh?source=rss-9180116a8ebb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 15:33:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@meenakshimahesh/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[Can a Screenshot Steal Your Data?]]></title>
            <link>https://medium.com/@meenakshimahesh/can-a-screenshot-steal-your-data-1e9624c3e90f?source=rss-9180116a8ebb------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e9624c3e90f</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[data-privacy]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[information-security]]></category>
            <dc:creator><![CDATA[Meenakshi M Kumar]]></dc:creator>
            <pubDate>Tue, 29 Sep 2026 07:30:33 GMT</pubDate>
            <atom:updated>2026-09-29T07:30:33.990Z</atom:updated>
            <content:encoded><![CDATA[<h4>The Hidden Dangers of OCR and AI</h4><h3>It’s Just a Screenshot… Right?</h3><p>You’ve been staring at the same error for forty minutes. You copy the message, paste it into Google, and get nothing useful. So, you do what any reasonable developer does: you take a screenshot, drop it into the team Slack and type “anyone seen this before?”</p><p>Maybe it’s a terminal window showing a cryptic stack trace or your IDE mid-debug. The point is that the screenshot captures exactly what you’re seeing and sharing it feels natural. It’s just a picture of your screen. What’s the worst that could happen?</p><p>This raises a question worth sitting with: <strong>if someone gets your screenshot, what can they actually learn from it?</strong></p><p>The obvious answer is “whatever is visible in it”. But once machines get involved, there’s a more interesting distinction between what is visible, what is extractable and what can be understood automatically.</p><h3>Your Screenshot May Contain More Than You Think</h3><p>Consider a common engineering scenario. A developer is troubleshooting a failing API call and captures a terminal window to show a colleague the error:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5cuoSDtgLjJM1l9EwCXHyg.png" /><figcaption>Sample Screenshot</figcaption></figure><p>She wanted to share the ConnectionRefusedError. But the screenshot also contains:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JbEzPAZl727mmHRzbowsVA.png" /><figcaption>Table of Info</figcaption></figure><p>Not all of this is automatically sensitive. An IP address alone may not be useful to an attacker. An internal URL may not be reachable from outside the network. And the API key above is deliberately fictional.</p><p>But the point isn’t that every screenshot is a security incident. The point is that <em>“the screenshot contains far more than what the developer intended to share”</em> .</p><p>A human might overlook some of it.</p><p>A machine doesn’t have to.</p><h3>OCR: Turning Pixels Into Text</h3><p>A screenshot is fundamentally a grid of pixels. There’s no field inside the image called “API key” or “database username”. To a computer processing the raw image, it is simply visual data.</p><p>That’s where <strong>OCR, Optical Character Recognition </strong>comes in!</p><p>OCR converts visual text in an image into actual, machine-readable characters. The idea has been around since 1950s, when early systems were trained to read single typefaces from scanned paper. Modern OCR engines, like open-source <strong><em>“Tesseract” </em></strong>developed at HP and later maintained by Google, use deep convolutional neural networks that can handle hundreds of fonts, sizes, languages and background conditions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qo_IfW4UwGoJBmw_s7a6PQ.png" /><figcaption>OCR Process</figcaption></figure><h3>Let’s Test It: OCR With Python</h3><p>To make this concrete, let’s create a fake screenshot containing deliberately fictional values:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LY7IIjZnzuNOXhWKmgzuAw.png" /><figcaption>fake_config_screenshot.png</figcaption></figure><p>The <strong>“.test” </strong>domain is reserved for documentation and testing, 192.0.2.10 belongs to the reserved TEST-NET-3 range making it suitable for a safe demonstration.</p><p>Now let’s extract the text programatically:</p><pre># Install: pip install pytesseract Pillow<br># macOS: brew install tesseract<br># Linux: sudo apt install tesseract-ocr<br><br>import pytesseract<br>from PIL import Image<br>import re<br><br>#Load the fake screenshot<br>img = Image.open(&quot;fake_config_screenshot.png&quot;)<br><br>#Extract all visible text from the image<br>raw_text = pytesseract.image_to_string(img)<br><br>print(&quot;--- Raw OCR Output ---&quot;)<br>print(raw_text)<br><br>#Now search the extracted text with regular expressions<br>patterns = {<br>  &quot;Email&quot;: r&#39;[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}&#39;,<br>  &quot;IPv4&quot;: r&#39;\b(?:\d{1,3}\.){3}\d{1,3}\b&#39;,<br>  &quot;URL&quot;: r&#39;https?://[^\s]+&#39;,<br>  &quot;API Key&quot;: r&#39;API_KEY\s*=\s*\S+&#39;,<br>}<br><br>print(&quot;--- Pattern matches ---&quot;)<br>for label, pattern in patterns.items():<br>  matches = re.findall(pattern, raw_text)<br>  if matches:<br>    print(f&quot; {label}: {matches}&quot;)</pre><p>A successful run produces output similar to:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*X9XrFuSlZvY_NBMSYpEGCg.png" /><figcaption>Output</figcaption></figure><p>The process can run locally. No external API is required.</p><p>Notice what actually happened:</p><p>OCR didn’t hack anything. It simply converted visible pixels into text. The regex then searched that text for patterns that look like potentially interesting data.</p><p>Whether those values are real, valid or useful is a completely separate question.</p><p>But now comes the more interesting part:</p><blockquote>Can AI understand what the extracted information means?</blockquote><h3>OCR can read It, Can AI understand it?</h3><p>There is a meaningful difference between reading information and understanding its context.</p><p>Consider this OCR output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tnw3UUNB-v3YiBkkGNmz9w.png" /><figcaption>Sample output</figcaption></figure><p>To OCR, these are simply four strings.</p><p>A vision-language model can potentially interpret the relationships between them:</p><blockquote>Username: admin, IP: 192.0.2.10, Endpoint: /api/login, Event: authentication failed</blockquote><p>It may also identify the screen as an authentication log or suggest that the combination deserves investigation. But this is where we need to be careful.</p><p>A vision-language model can misread text, misunderstand context or produce a plausible but incorrect explanation. It should be treated as an interpretation layer, not as an authoritative security scanner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PBQhgd3BVJ-2VmHpy-_k2A.png" /><figcaption>Classical OCR vs. Vision language model</figcaption></figure><p>OCR tells us what text is present. AI can potentially help interpret what that text means.</p><p>Combine those capabilities with automation and a screenshot starts looking less like a frozen image and more like a document waiting to be processed.</p><h3>From Screenshot to Automated Intelligence</h3><p>Imagine a developer posts the terminal screenshot from section 2 into a public GitHub issue while asking for help. A hypothetical automated pipeline could look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*92zzD7TOCs2-v6SqrOXo4w.png" /><figcaption>Automated Pipeline</figcaption></figure><p>This is the critical moment to be precise about what automation can and cannot do:</p><ul><li>Extracting an API key is not the same as being authenticated.</li><li>Seeing an IP address is not the same as having network access.</li><li>Identifying an endpoint is not the same as exploiting it.</li><li>Knowing a DB username does not provide database access.</li></ul><p>What an automated pipeline changes is the cost and speed of information extraction. A process that once required a person to notice, read and interpret a screenshot can potentially be applied to large numbers of images.</p><p>The screenshot didn’t become more dangerous because of AI. The barrier to processing its contents become lower.</p><h3>Where Does the Approach Break</h3><p>It would be easy to assume that any screenshot can be perfectly read by any machine.</p><p>That’s not True!</p><ul><li>Image Quality Matters: Blurry images, small text, unusual fonts, compression, poor contrast and photographs taken at an angle can significantly reduce OCR accuracy.</li><li>False positives and false negatives exist: A scanner might flag, say API_KEY, even though it’s fake. At the same time, it might miss a real credential because OCR misread one character.</li><li>AI can be wrong: A model might classify a product ID as an API key or misunderstand an error message. Important findings should be verified before anyone acts on them.</li><li>OCR isn’t decryption: If a screenshot contains encoded or encrypted data, OCR can extract the characters. It doesn’t automatically decrypt them.</li><li>AI cannot see what isn’t there: A model can interpret visible information but it cannot reliably reconstruct what was cropped out or what exists outside the screenshot.</li></ul><h3>How to Protect Yourself</h3><ul><li>Redaction (if done properly): Use a solid, opaque block that completely replaces the sensitive pixels. Weak redaction methods such as translucent overlays or certain blur effects can leave information partially recoverable.</li><li>Inspect before sharing: Before posting a screenshot, check terminal prompts, open files, browser tabs, notifications, usernames, URLs, credentials, QR codes.</li><li>Use synthetic data: For tutorials, blogs and documentation, replace real values with fictional ones.</li><li>Rotate exposed credentials: If a real API key, password or token appears in a screenshot that has been shared outside its intended boundary, treat it as potentially compromised and revoke or rotate it.</li><li>Use secret scanning as a second layer: It can detect many known credential patterns. GitHub, for example, supports provider-specific patterns, generic patterns and some AI-based detection.</li><li>Check what’s actually in the frame before pressing send.</li></ul><p>These tools don’t replace careful review. They catch things humans miss.</p><h3>Conclusion: Your Screenshot Isn’t “Just an Image”</h3><p>We started with something completely ordinary: a developer taking screenshot to ask a colleague for help.</p><p>It felt harmless</p><p>But we followed that picture through a chain of transformations:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dF83jSndi8nhKBQOIXw66A.png" /></figure><p>At no point did anything magically get “hacked”!</p><p>OCR doesn’t break authentication. AI doesn’t bypass a firewall. Extracting a credential from a screenshot doesn’t mean that credential works or that the underlying system is reachable.</p><p>But something has changed.</p><p>Extracting and organising information from images has become cheap, fast and increasingly automated.</p><p>The information in the screenshot didn’t become dangerous!</p><p>The infrastructure for processing it became more accessible!</p><p>A screenshot is not just a JPEG. It may contain credentials, endpoints, usernames, architecture details, version information and other context, all wrapped in a format that feels visual and informal.</p><p>Until a machine reads it.</p><p>“Before you share the picture, check the pixels”</p><h3>References</h3><ol><li>Tesseract OCR: <a href="https://github.com/tesseract-ocr/tesseract/wiki/4.0-with-LSTM/0fbaab2ea9a512670849e67fe22eae42916dbe40?utm_source=chatgpt.com">Tesseract 4.0 with LSTM documentation</a></li><li>Tesseract Documentation: <a href="https://github.com/tesseract-ocr/tessdoc?utm_source=chatgpt.com">Official Tesseract documentation</a></li><li>IANA: <a href="https://www.iana.org/help/example-domains?utm_source=chatgpt.com">IANA Example Domains</a></li><li>OWASP: <a href="https://cheatsheetseries.owasp.org/cheatsheets/Secrets_Management_Cheat_Sheet.html?utm_source=chatgpt.com">OWASP Secrets Management Cheat Sheet</a></li><li>GitHub Scanning: <a href="https://docs.github.com/en/code-security/concepts/secret-security/secret-scanning?utm_source=chatgpt.com">GitHub Secret Scanning documentation</a></li><li>GitHub Scanning Patterns: <a href="https://docs.github.com/en/code-security/reference/secret-security/supported-secret-scanning-patterns?utm_source=chatgpt.com">GitHub Supported Secret Scanning Patterns</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e9624c3e90f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>