<?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>Forem: Yuri Borges</title>
    <description>The latest articles on Forem by Yuri Borges (@yurithecoder).</description>
    <link>https://forem.com/yurithecoder</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3855827%2F3eaca775-de3a-46c8-ba10-9ceaef447277.png</url>
      <title>Forem: Yuri Borges</title>
      <link>https://forem.com/yurithecoder</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/yurithecoder"/>
    <language>en</language>
    <item>
      <title>I built an npm malware scanner and found 21 malicious packages in 24 hours</title>
      <dc:creator>Yuri Borges</dc:creator>
      <pubDate>Fri, 03 Apr 2026 16:42:48 +0000</pubDate>
      <link>https://forem.com/yurithecoder/i-built-an-npm-malware-scanner-and-found-21-malicious-packages-in-24-hours-49ep</link>
      <guid>https://forem.com/yurithecoder/i-built-an-npm-malware-scanner-and-found-21-malicious-packages-in-24-hours-49ep</guid>
      <description>&lt;p&gt;I built an automated scanner that monitors new npm packages in real time. Ran it for 24 hours against ~2000 recent registry changes and it flagged 21 malicious packages across 11 campaigns.&lt;/p&gt;

&lt;p&gt;Four of them use attack techniques I haven't seen documented before, all targeting AI coding assistants.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Findings
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. LLM API Man-in-the-Middle&lt;/strong&gt; — A package overwrites ~/.claude/ on install and redirects all Claude API traffic through an attacker-controlled proxy. Every prompt and response passes through their server.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Encrypted Skill Backdoor&lt;/strong&gt; — A package downloads encrypted payloads from a remote API and installs them as Claude Code skills. The payloads can't be inspected, and the server can swap them anytime without updating the npm package.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. RAT Disguised as AI Coding Tool&lt;/strong&gt; — Two packages ship polished coding assistant CLIs but route everything through an attacker's ngrok tunnel. Users grant full filesystem access voluntarily because they think it's a legit AI tool.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Redis + Raw Disk Read via postinstall&lt;/strong&gt; — Six fake Strapi plugins use Redis to write shell payloads, open reverse shells, and read raw disk via dd to steal SSH keys and crypto wallets.&lt;/p&gt;

&lt;h2&gt;
  
  
  Other Catches
&lt;/h2&gt;

&lt;p&gt;Dependency confusion targeting Verisign, a commercial phishing toolkit with 95 versions, credential stealers behind fake React components, and obfuscated packages impersonating ByteDance's npm scope.&lt;/p&gt;

&lt;p&gt;None were flagged by npm, Snyk, or Socket at time of discovery.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick Check
&lt;/h2&gt;

&lt;p&gt;If you use AI coding tools, check for unauthorized config files:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
bash
ls ~/.claude/commands/
ls ~/.cursor/
ls ~/.continue/config/

Full technical reports with IOCs and MITRE mappings: yuribm.dev/security
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>security</category>
      <category>npm</category>
      <category>javascript</category>
      <category>opensource</category>
    </item>
    <item>
      <title>I'm 18 and Built an Open-Source Camera That Cryptographically Proves Photos Are Real</title>
      <dc:creator>Yuri Borges</dc:creator>
      <pubDate>Wed, 01 Apr 2026 14:24:07 +0000</pubDate>
      <link>https://forem.com/yurithecoder/im-18-and-built-an-open-source-camera-that-cryptographically-proves-photos-are-real-89o</link>
      <guid>https://forem.com/yurithecoder/im-18-and-built-an-open-source-camera-that-cryptographically-proves-photos-are-real-89o</guid>
      <description>&lt;p&gt;In 2026, generating a photorealistic fake image takes seconds. The C2PA standard (Adobe, Microsoft, Google) solves this with Content Credentials — but only on Samsung S25+ and Pixel 10. The other 3 billion Android phones have nothing.&lt;/p&gt;

&lt;p&gt;I'm 18, from Brazil, and I built &lt;a href="https://github.com/YuriTheCoder/TrueShot" rel="noopener noreferrer"&gt;TrueShot&lt;/a&gt; to change that.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happens when you take a photo
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;14 physical sensors&lt;/strong&gt; are sampled at the exact instant of the shutter — accelerometer, gyroscope, magnetometer, barometer, light, proximity, gravity, rotation vectors, and more&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SHA-256 hash&lt;/strong&gt; is computed on the JPEG bytes up to the EOI marker&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ECDSA P-256&lt;/strong&gt; signs the manifest via hardware-backed Android Keystore (StrongBox preferred, TEE fallback)&lt;/li&gt;
&lt;li&gt;The signed manifest is &lt;strong&gt;appended after the JPEG EOI marker&lt;/strong&gt; — standard image viewers ignore post-EOI data, so the photo displays normally everywhere&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Change one pixel → hash breaks. Forge the signature → mathematically impossible without the device's hardware key.&lt;/p&gt;

&lt;p&gt;Anyone can verify in a browser at &lt;a href="https://true-shot.vercel.app/verify" rel="noopener noreferrer"&gt;true-shot.vercel.app/verify&lt;/a&gt;. The image never leaves your browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part I think is new
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Sensor-based screen recapture detection
&lt;/h3&gt;

&lt;p&gt;Every published method for detecting photos-of-screens uses visual analysis — moiré patterns, CNNs, Vision Transformers. The problem: modern OLED screens don't produce moiré. High-PPI displays don't cause aliasing. Visual methods are losing the arms race.&lt;/p&gt;

&lt;p&gt;TrueShot does something different: it cross-correlates physical sensor readings to detect anomalies consistent with screen photography. No image analysis at all.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scenario&lt;/th&gt;
&lt;th&gt;Score&lt;/th&gt;
&lt;th&gt;Flagged?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Normal photo (daylight)&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Normal photo (dark room)&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Screen capture (daylight)&lt;/td&gt;
&lt;td&gt;70&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Screen capture (dark room)&lt;/td&gt;
&lt;td&gt;85&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;10 signals: focus distance, light/ISO mismatch, magnetometer magnitude, gyroscope stability, color gain blue-suppression, scene flicker, proximity, ambient darkness, step counter, and compound signals.&lt;/p&gt;

&lt;p&gt;The approach works regardless of screen technology — LCD, OLED, MicroLED — because it never looks at the image content.&lt;/p&gt;

&lt;h3&gt;
  
  
  Cross-device corroboration without communication
&lt;/h3&gt;

&lt;p&gt;Three reporters photograph the same protest on three different phones. Nobody pairs devices. Nobody sets anything up.&lt;/p&gt;

&lt;p&gt;Later, an editor drops all three photos on the web verifier. JavaScript extracts the manifests and compares barometric pressure, timestamps, GPS, and ambient conditions.&lt;/p&gt;

&lt;p&gt;Consistent sensors from independent devices = same event. Zero servers. Zero cloud. Everything happens in the browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tech stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Kotlin 2.1, Jetpack Compose, CameraX 1.4&lt;/li&gt;
&lt;li&gt;Hilt for DI, Room for persistence&lt;/li&gt;
&lt;li&gt;Android Keystore (ECDSA P-256, SHA-256)&lt;/li&gt;
&lt;li&gt;Vanilla JS + WebCrypto API for the web verifier&lt;/li&gt;
&lt;li&gt;14 Gradle modules, ~5,700 lines of Kotlin&lt;/li&gt;
&lt;li&gt;Zero C++, zero ML models, zero third-party SDKs&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What it honestly does NOT do
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Does NOT detect deepfakes or AI-generated content&lt;/li&gt;
&lt;li&gt;Does NOT guarantee content truthfulness — a staged scene photographed with TrueShot is authentic as a capture&lt;/li&gt;
&lt;li&gt;Key attestation chain is included but not validated against Google Root CA yet&lt;/li&gt;
&lt;li&gt;Screen detection is heuristic, not definitive — it can produce false positives on macro photography in dark rooms&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Full threat model: &lt;a href="https://github.com/YuriTheCoder/TrueShot/blob/main/THREAT_MODEL.md" rel="noopener noreferrer"&gt;THREAT_MODEL.md&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Privacy
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Zero analytics, zero tracking, zero cloud&lt;/li&gt;
&lt;li&gt;GPS off by default, opt-in only&lt;/li&gt;
&lt;li&gt;No Firebase, no Crashlytics, no third-party SDKs&lt;/li&gt;
&lt;li&gt;Device ID is anonymous (SHA-256 of public key, not IMEI)&lt;/li&gt;
&lt;li&gt;Web verifier processes everything in-browser&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/YuriTheCoder/TrueShot" rel="noopener noreferrer"&gt;github.com/YuriTheCoder/TrueShot&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Download APK:&lt;/strong&gt; &lt;a href="https://github.com/YuriTheCoder/TrueShot/releases" rel="noopener noreferrer"&gt;Latest release&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Verify a photo:&lt;/strong&gt; &lt;a href="https://true-shot.vercel.app/verify" rel="noopener noreferrer"&gt;true-shot.vercel.app/verify&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;MIT licensed. I'm preparing a paper on the sensor correlation approach for IEEE WIFS 2026 (deadline July 15). Feedback welcome, especially if you see attack vectors I'm missing.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>security</category>
      <category>android</category>
      <category>kotlin</category>
    </item>
  </channel>
</rss>
