<?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: Gabriel Maheu</title>
    <description>The latest articles on DEV Community by Gabriel Maheu (@cyphernet).</description>
    <link>https://dev.to/cyphernet</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%2F3906455%2Ff7bdb857-ad73-45cb-a02a-11dff347517b.png</url>
      <title>DEV Community: Gabriel Maheu</title>
      <link>https://dev.to/cyphernet</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cyphernet"/>
    <language>en</language>
    <item>
      <title>Files pass validation… then break in production</title>
      <dc:creator>Gabriel Maheu</dc:creator>
      <pubDate>Thu, 30 Apr 2026 16:48:35 +0000</pubDate>
      <link>https://dev.to/cyphernet/files-pass-validation-then-break-in-production-54m1</link>
      <guid>https://dev.to/cyphernet/files-pass-validation-then-break-in-production-54m1</guid>
      <description>&lt;p&gt;Most upload pipelines check file type and size — and assume the file is safe.&lt;/p&gt;

&lt;p&gt;But that’s exactly where things go wrong.&lt;/p&gt;

&lt;p&gt;Real issues often show up later — when files are actually used.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;malware hidden in uploads&lt;/li&gt;
&lt;li&gt;exposed API keys in config files&lt;/li&gt;
&lt;li&gt;payloads that look valid but break at runtime&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The problem isn’t validation.&lt;/p&gt;

&lt;p&gt;It’s &lt;strong&gt;when&lt;/strong&gt; validation happens.&lt;/p&gt;




&lt;h2&gt;
  
  
  The gap
&lt;/h2&gt;

&lt;p&gt;Files are trusted too early.&lt;/p&gt;

&lt;p&gt;By the time something breaks, it’s already in production.&lt;/p&gt;




&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;I built a Strapi plugin that scans files &lt;strong&gt;right after upload&lt;/strong&gt;, before they’re ever used.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Upload → Scan → Verdict
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Right after upload — before anything touches production.&lt;/p&gt;

&lt;p&gt;Instead of trusting files based on format, it checks what’s actually inside.&lt;/p&gt;




&lt;h2&gt;
  
  
  What it catches
&lt;/h2&gt;

&lt;p&gt;It catches malware, exposed secrets, and unsafe payloads — including issues that pass validation but fail later at runtime.&lt;/p&gt;




&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/cyphernetsecurity/cypherscan-strapi" rel="noopener noreferrer"&gt;https://github.com/cyphernetsecurity/cypherscan-strapi&lt;/a&gt;&lt;br&gt;&lt;br&gt;
npm: &lt;a href="https://www.npmjs.com/package/strapi-plugin-cypherscan" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/strapi-plugin-cypherscan&lt;/a&gt;&lt;br&gt;&lt;br&gt;
Demo: &lt;a href="https://youtu.be/zRk-9Es7mwA" rel="noopener noreferrer"&gt;https://youtu.be/zRk-9Es7mwA&lt;/a&gt;  &lt;/p&gt;




&lt;p&gt;How are you handling file validation today?&lt;/p&gt;

&lt;p&gt;At upload — or only when things break?&lt;/p&gt;

</description>
      <category>security</category>
      <category>webdev</category>
      <category>node</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
