<?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: Supun Hewagamage</title>
    <description>The latest articles on DEV Community by Supun Hewagamage (@supunhewagamage).</description>
    <link>https://dev.to/supunhewagamage</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%2F3975168%2F259ce2b7-1b03-4ac2-b1a9-d6ad1a1c3aa8.png</url>
      <title>DEV Community: Supun Hewagamage</title>
      <link>https://dev.to/supunhewagamage</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/supunhewagamage"/>
    <language>en</language>
    <item>
      <title>Filo-Go Performance Update: Why I Replaced Binwalk with a Go-Based Forensics Engine</title>
      <dc:creator>Supun Hewagamage</dc:creator>
      <pubDate>Tue, 09 Jun 2026 06:03:46 +0000</pubDate>
      <link>https://dev.to/supunhewagamage/filo-go-performance-update-why-i-replaced-binwalk-with-a-go-based-forensics-engine-2n92</link>
      <guid>https://dev.to/supunhewagamage/filo-go-performance-update-why-i-replaced-binwalk-with-a-go-based-forensics-engine-2n92</guid>
      <description>&lt;p&gt;I recently rebuilt and benchmarked &lt;strong&gt;Filo-Go&lt;/strong&gt;, a Go-native forensic analysis toolkit designed to replace tools like Binwalk, &lt;code&gt;file&lt;/code&gt;, &lt;code&gt;strings&lt;/code&gt;, and parts of ExifTool workflows.&lt;/p&gt;

&lt;p&gt;This update is not about features.&lt;/p&gt;

&lt;p&gt;It’s about performance.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why Performance Matters in Forensics
&lt;/h2&gt;

&lt;p&gt;Digital forensics workloads are fundamentally different from general file utilities:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Large firmware images (100MB–multiple GB)&lt;/li&gt;
&lt;li&gt;Batch analysis of thousands of artifacts&lt;/li&gt;
&lt;li&gt;Repeated scanning, carving, and entropy operations&lt;/li&gt;
&lt;li&gt;Time-sensitive malware triage&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In practice, slow tooling becomes a bottleneck in investigations.&lt;/p&gt;




&lt;h2&gt;
  
  
  Benchmark Setup
&lt;/h2&gt;

&lt;p&gt;Benchmarks were run on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CPU: Intel Xeon Platinum 8488C&lt;/li&gt;
&lt;li&gt;OS: Linux AMD64&lt;/li&gt;
&lt;li&gt;Workload: Synthetic + real forensic samples&lt;/li&gt;
&lt;li&gt;Comparison tools: Binwalk, standard Unix utilities&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All tests were executed cold to avoid caching effects where possible.&lt;/p&gt;




&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Core Operations
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Operation&lt;/th&gt;
&lt;th&gt;Filo-Go&lt;/th&gt;
&lt;th&gt;Baseline Tool&lt;/th&gt;
&lt;th&gt;Speedup&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;File Analysis (1MB)&lt;/td&gt;
&lt;td&gt;1.07 ms&lt;/td&gt;
&lt;td&gt;644 ms (binwalk)&lt;/td&gt;
&lt;td&gt;~600×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Entropy Analysis (1MB)&lt;/td&gt;
&lt;td&gt;595 µs&lt;/td&gt;
&lt;td&gt;632 ms (binwalk)&lt;/td&gt;
&lt;td&gt;~1,061×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;File Carving (10MB)&lt;/td&gt;
&lt;td&gt;14.6 ms&lt;/td&gt;
&lt;td&gt;2.22 s (binwalk)&lt;/td&gt;
&lt;td&gt;~153×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hash Computation (1MB)&lt;/td&gt;
&lt;td&gt;885 µs&lt;/td&gt;
&lt;td&gt;5.47 ms (sha256sum)&lt;/td&gt;
&lt;td&gt;~6×&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;String Extraction (1MB)&lt;/td&gt;
&lt;td&gt;633 ns&lt;/td&gt;
&lt;td&gt;9.54 ms (strings)&lt;/td&gt;
&lt;td&gt;~15,000×&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h2&gt;
  
  
  What Actually Causes This Performance Gap
&lt;/h2&gt;

&lt;p&gt;These results are not magic. They come from a few structural decisions:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Single-Binary Architecture
&lt;/h3&gt;

&lt;p&gt;No Python/Perl runtime overhead, no interpreter dispatch.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Go Concurrency Model
&lt;/h3&gt;

&lt;p&gt;Parallelized scanning and analysis pipelines where applicable.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Zero External Dependencies
&lt;/h3&gt;

&lt;p&gt;No libmagic, no shelling out to system tools.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Memory-Streamed Processing
&lt;/h3&gt;

&lt;p&gt;Avoiding full file materialization where possible.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Purpose-Built Pipelines
&lt;/h3&gt;

&lt;p&gt;Each module is designed specifically for forensic workloads, not general-purpose file handling.&lt;/p&gt;




&lt;h2&gt;
  
  
  Important Caveats
&lt;/h2&gt;

&lt;p&gt;These benchmarks are not universal truth.&lt;/p&gt;

&lt;p&gt;They depend on:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;File size distribution&lt;/li&gt;
&lt;li&gt;Filesystem behavior&lt;/li&gt;
&lt;li&gt;Tool configuration&lt;/li&gt;
&lt;li&gt;Hardware characteristics&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Also:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Binwalk is feature-rich and highly mature&lt;/li&gt;
&lt;li&gt;Some features are not comparable 1:1&lt;/li&gt;
&lt;li&gt;Real-world workflows include overhead beyond raw execution time&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is a systems comparison, not a feature comparison.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why This Matters
&lt;/h2&gt;

&lt;p&gt;The goal of Filo-Go is not to “replace everything faster”.&lt;/p&gt;

&lt;p&gt;It is to reduce friction in forensic workflows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;fewer tool switches&lt;/li&gt;
&lt;li&gt;faster triage cycles&lt;/li&gt;
&lt;li&gt;consistent output formats&lt;/li&gt;
&lt;li&gt;single CLI surface&lt;/li&gt;
&lt;li&gt;scriptable analysis pipelines&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Performance is only one part of that equation.&lt;/p&gt;




&lt;h2&gt;
  
  
  What’s Next
&lt;/h2&gt;

&lt;p&gt;Current focus areas:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;expanding firmware coverage&lt;/li&gt;
&lt;li&gt;improving analysis accuracy for executables&lt;/li&gt;
&lt;li&gt;refining plugin execution model&lt;/li&gt;
&lt;li&gt;adding richer structured outputs&lt;/li&gt;
&lt;li&gt;further optimizing carving and entropy pipelines&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Future benchmarks will include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;real malware datasets&lt;/li&gt;
&lt;li&gt;multi-gigabyte firmware images&lt;/li&gt;
&lt;li&gt;concurrent batch workloads&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Closing
&lt;/h2&gt;

&lt;p&gt;Filo-Go is still early, but the current results validate the design direction.&lt;/p&gt;

&lt;p&gt;Not because it is “faster than everything” — but because it shows that consolidating forensic tooling into a single Go-native system is viable without sacrificing performance.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Repository&lt;/em&gt;: &lt;a href="https://github.com/supunhg/filo-go" rel="noopener noreferrer"&gt;filo-go&lt;/a&gt;&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>go</category>
      <category>opensource</category>
      <category>forensics</category>
    </item>
    <item>
      <title>Building filo-go: Reimagining Digital Forensics in Go</title>
      <dc:creator>Supun Hewagamage</dc:creator>
      <pubDate>Tue, 09 Jun 2026 04:48:30 +0000</pubDate>
      <link>https://dev.to/supunhewagamage/building-filo-go-reimagining-digital-forensics-in-go-9oi</link>
      <guid>https://dev.to/supunhewagamage/building-filo-go-reimagining-digital-forensics-in-go-9oi</guid>
      <description>&lt;p&gt;As a cybersecurity student, I spend a lot of time working with tools like Binwalk, ExifTool, &lt;code&gt;file&lt;/code&gt;, &lt;code&gt;strings&lt;/code&gt;, and YARA.&lt;/p&gt;

&lt;p&gt;They're powerful, but the workflow is fragmented.&lt;/p&gt;

&lt;p&gt;Analyzing a suspicious file often means bouncing between multiple tools, different output formats, and various dependencies.&lt;/p&gt;

&lt;p&gt;So I started building &lt;strong&gt;Filo-Go&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Filo-Go?
&lt;/h2&gt;

&lt;p&gt;Filo-Go (Forensic Intelligence &amp;amp; Learning Operator) is a Go-based digital forensics and file intelligence toolkit.&lt;/p&gt;

&lt;p&gt;The goal is simple:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Provide a single, fast, cross-platform binary for common forensic analysis tasks.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Current capabilities include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;File identification and analysis&lt;/li&gt;
&lt;li&gt;Entropy visualization&lt;/li&gt;
&lt;li&gt;Metadata extraction&lt;/li&gt;
&lt;li&gt;String extraction&lt;/li&gt;
&lt;li&gt;Firmware analysis&lt;/li&gt;
&lt;li&gt;Executable analysis (PE, ELF, Mach-O)&lt;/li&gt;
&lt;li&gt;YARA scanning&lt;/li&gt;
&lt;li&gt;PCAP analysis&lt;/li&gt;
&lt;li&gt;SQLite inspection&lt;/li&gt;
&lt;li&gt;Plugin support&lt;/li&gt;
&lt;li&gt;MCP integration for AI-assisted workflows&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why Go?
&lt;/h2&gt;

&lt;p&gt;I wanted something that is:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fast&lt;/li&gt;
&lt;li&gt;Easy to distribute&lt;/li&gt;
&lt;li&gt;Cross-platform&lt;/li&gt;
&lt;li&gt;Dependency-light&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Go checked every box.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Am I Building It?
&lt;/h2&gt;

&lt;p&gt;Partly because I need it.&lt;/p&gt;

&lt;p&gt;Partly because I want to better understand how forensic tools work internally.&lt;/p&gt;

&lt;p&gt;And partly because building systems like this is one of the best ways to learn software engineering, cybersecurity, reverse engineering, and digital forensics.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next?
&lt;/h2&gt;

&lt;p&gt;I'll be sharing architecture decisions, implementation details, performance benchmarks, and lessons learned as the project evolves.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Repository&lt;/strong&gt;: &lt;a href="https://github.com/supunhg/filo-go" rel="noopener noreferrer"&gt;filo-go&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Feedback, ideas, and contributions are welcome.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>cybersecurity</category>
      <category>go</category>
      <category>opensource</category>
      <category>forensics</category>
    </item>
  </channel>
</rss>
