<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://ind4skylivey.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://ind4skylivey.github.io/" rel="alternate" type="text/html" /><updated>2026-12-01T00:08:55+00:00</updated><id>https://ind4skylivey.github.io/feed.xml</id><title type="html">Livey | Security Researcher</title><subtitle>Security researcher, open-source builder and founder of S1B Gr0up. Offensive research, security tooling and automation from an attacker’s point of view.</subtitle><author><name>Livey (ind4skylivey)</name><email>ind4skylivey@proton.me</email></author><entry><title type="html">Ghost Shell: Memory Safety in the Terminal</title><link href="https://ind4skylivey.github.io/security/rust/terminal/ghost-shell-memory-safety/" rel="alternate" type="text/html" title="Ghost Shell: Memory Safety in the Terminal" /><published>2025-12-05T14:00:00+00:00</published><updated>2025-12-05T14:00:00+00:00</updated><id>https://ind4skylivey.github.io/security/rust/terminal/ghost-shell-memory-safety</id><content type="html" xml:base="https://ind4skylivey.github.io/security/rust/terminal/ghost-shell-memory-safety/"><![CDATA[<h1 id="ghost-shell-memory-safety-in-the-terminal">Ghost Shell: Memory Safety in the Terminal</h1>

<p>The terminal is where we live. It’s where we type passwords, API keys, and sensitive commands. Yet, many shells are surprisingly lax about memory hygiene.</p>

<h2 id="the-problem-lingering-secrets">The Problem: Lingering Secrets</h2>

<p>In standard shells, command history and variables often linger in RAM long after they are needed. If a process dumps memory, your secrets are exposed.</p>

<h2 id="the-solution-zeroization">The Solution: Zeroization</h2>

<p><strong>Ghost Shell</strong> implements aggressive zeroization. As soon as a sensitive variable goes out of scope, its memory address is overwritten with zeros.</p>

<div class="language-rust highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="k">use</span> <span class="nn">zeroize</span><span class="p">::</span><span class="n">Zeroize</span><span class="p">;</span>

<span class="k">struct</span> <span class="n">Secret</span> <span class="p">{</span>
    <span class="n">key</span><span class="p">:</span> <span class="nb">String</span><span class="p">,</span>
<span class="p">}</span>

<span class="k">impl</span> <span class="nb">Drop</span> <span class="k">for</span> <span class="n">Secret</span> <span class="p">{</span>
    <span class="k">fn</span> <span class="nf">drop</span><span class="p">(</span><span class="o">&amp;</span><span class="k">mut</span> <span class="k">self</span><span class="p">)</span> <span class="p">{</span>
        <span class="k">self</span><span class="py">.key</span><span class="nf">.zeroize</span><span class="p">();</span>
    <span class="p">}</span>
<span class="p">}</span>
</code></pre></div></div>

<h2 id="visuals--themes">Visuals &amp; Themes</h2>

<p>Security doesn’t have to be ugly. Ghost Shell comes with the <strong>Cyber-Noir</strong> theme out of the box, featuring high-contrast syntax highlighting and a minimal HUD.</p>

<p>Check out the <a href="/projects/ghost-intheshell/">project page</a> for installation instructions.</p>]]></content><author><name>Livey (ind4skylivey)</name><email>ind4skylivey@proton.me</email></author><category term="Security" /><category term="Rust" /><category term="Terminal" /><summary type="html"><![CDATA[Ghost Shell: Memory Safety in the Terminal]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://ind4skylivey.github.io/assets/media/og-card.jpg" /><media:content medium="image" url="https://ind4skylivey.github.io/assets/media/og-card.jpg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Building Int3rceptor: High-Performance CI/CD in Rust</title><link href="https://ind4skylivey.github.io/rust/devops/performance/building-int3rceptor-rust/" rel="alternate" type="text/html" title="Building Int3rceptor: High-Performance CI/CD in Rust" /><published>2025-12-01T12:00:00+00:00</published><updated>2025-12-01T12:00:00+00:00</updated><id>https://ind4skylivey.github.io/rust/devops/performance/building-int3rceptor-rust</id><content type="html" xml:base="https://ind4skylivey.github.io/rust/devops/performance/building-int3rceptor-rust/"><![CDATA[<h1 id="building-int3rceptor">Building Int3rceptor</h1>

<p>When we set out to build <strong>Int3rceptor</strong>, the goal was clear: create a CI/CD toolchain that doesn’t just “run” tasks, but <em>intercepts</em> and optimizes them.</p>

<h2 id="why-rust">Why Rust?</h2>

<p>We chose Rust for three main reasons:</p>

<ol>
  <li><strong>Memory Safety</strong>: No segfaults in the build pipeline.</li>
  <li><strong>Zero-Cost Abstractions</strong>: High-level ergonomics with low-level control.</li>
  <li><strong>Concurrency</strong>: The <code class="language-plaintext highlighter-rouge">tokio</code> runtime allows us to handle massive parallel task execution without breaking a sweat.</li>
</ol>

<h2 id="the-architecture">The Architecture</h2>

<p>Int3rceptor operates on a “hook-and-forward” model. It listens for git events, intercepts the payload, and determines the optimal build path based on the changed files.</p>

<div class="language-rust highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="c1">// Simplified logic of the interception engine</span>
<span class="k">async</span> <span class="k">fn</span> <span class="nf">intercept</span><span class="p">(</span><span class="n">payload</span><span class="p">:</span> <span class="n">Payload</span><span class="p">)</span> <span class="k">-&gt;</span> <span class="nb">Result</span><span class="o">&lt;</span><span class="n">Action</span><span class="o">&gt;</span> <span class="p">{</span>
    <span class="k">let</span> <span class="n">changes</span> <span class="o">=</span> <span class="nf">analyze_diff</span><span class="p">(</span><span class="n">payload</span><span class="p">)</span><span class="k">.await</span><span class="o">?</span><span class="p">;</span>
    <span class="k">if</span> <span class="n">changes</span><span class="nf">.is_critical</span><span class="p">()</span> <span class="p">{</span>
        <span class="k">return</span> <span class="nf">Ok</span><span class="p">(</span><span class="nn">Action</span><span class="p">::</span><span class="n">FullBuild</span><span class="p">);</span>
    <span class="p">}</span>
    <span class="nf">Ok</span><span class="p">(</span><span class="nn">Action</span><span class="p">::</span><span class="nf">Incremental</span><span class="p">(</span><span class="n">changes</span><span class="p">))</span>
<span class="p">}</span>
</code></pre></div></div>

<h2 id="results">Results</h2>

<p>Since deploying Int3rceptor, we’ve seen a <strong>40% reduction</strong> in average pipeline duration.</p>

<p><em>Stay tuned for Part 2 where we discuss the caching strategy.</em></p>]]></content><author><name>Livey (ind4skylivey)</name><email>ind4skylivey@proton.me</email></author><category term="Rust" /><category term="DevOps" /><category term="Performance" /><summary type="html"><![CDATA[Building Int3rceptor]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://ind4skylivey.github.io/assets/media/og-card.jpg" /><media:content medium="image" url="https://ind4skylivey.github.io/assets/media/og-card.jpg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">The Singularity of SecOps: Local AI as a Force Multiplier</title><link href="https://ind4skylivey.github.io/ai/security/automation/research/security-automation-local-ai/" rel="alternate" type="text/html" title="The Singularity of SecOps: Local AI as a Force Multiplier" /><published>2025-11-15T09:00:00+00:00</published><updated>2025-11-15T09:00:00+00:00</updated><id>https://ind4skylivey.github.io/ai/security/automation/research/security-automation-local-ai</id><content type="html" xml:base="https://ind4skylivey.github.io/ai/security/automation/research/security-automation-local-ai/"><![CDATA[<div class="reveal">
  <img src="/assets/media/ai-security-hero.webp" width="1024" height="1024" alt="AI Security Visualization" style="width: 100%; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 0 30px rgba(0, 242, 195, 0.15); margin-bottom: 32px;" />
</div>

<h1 id="the-singularity-of-secops">The Singularity of SecOps</h1>

<p>We are witnessing a paradigm shift. The traditional “Cat and Mouse” game of cybersecurity—where defenders react to attackers—is becoming obsolete. The future belongs to <strong>predictive, self-healing systems</strong>.</p>

<p>By integrating <strong>Local Large Language Models (LLMs)</strong> directly into our CI/CD pipelines, we don’t just “scan” code; we <em>understand</em> it.</p>

<h2 id="why-local-the-privacy-imperative">Why Local? The Privacy Imperative</h2>

<p>Sending proprietary code to a cloud API (like OpenAI or Anthropic) is a non-starter for serious red teams or enterprise security.</p>

<p><strong>Local AI (e.g., Llama 3, Mistral, CodeQwen)</strong> running on-premise offers:</p>

<ol>
  <li><strong>Zero Data Leakage</strong>: Your exploits and vulnerabilities stay on your metal.</li>
  <li><strong>Uncensored Analysis</strong>: No “safety rails” preventing the model from explaining <em>how</em> an exploit works.</li>
  <li><strong>Latency</strong>: Millisecond inference times without network round-trips.</li>
</ol>

<h2 id="the-architecture-the-sentinel">The Architecture: “The Sentinel”</h2>

<p>Here is how I architected a local AI sentinel for the <strong>S1b Gr0up</strong> internal pipeline:</p>

<div class="glass-panel reveal" style="padding: 24px; margin: 32px 0;">
  <pre class="mermaid">
  graph TD
      A[Developer Commit] --&gt;|Git Hook| B(Int3rceptor Engine)
      B --&gt; C{Static Analysis}
      C --&gt;|Pass| D[Build Artifact]
      C --&gt;|Fail| E[AI Context Engine]
      E --&gt;|Raw Code + Error| F[Local LLM / Ollama]
      F --&gt;|Analysis &amp; Fix| G[Automated PR Comment]
      G --&gt; H[Developer Review]
  </pre>
</div>

<h2 id="implementation-the-hook">Implementation: The Hook</h2>

<p>The core of this system is a simple Python wrapper that interfaces with a local inference engine (like Ollama).</p>

<div class="language-python highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="kn">import</span> <span class="nn">requests</span>
<span class="kn">import</span> <span class="nn">json</span>

<span class="k">def</span> <span class="nf">analyze_vulnerability</span><span class="p">(</span><span class="n">code_snippet</span><span class="p">,</span> <span class="n">error_log</span><span class="p">):</span>
    <span class="s">"""
    Sends the vulnerable code to a local LLM for analysis.
    """</span>
    <span class="n">prompt</span> <span class="o">=</span> <span class="sa">f</span><span class="s">"""
    ROLE: Elite Security Researcher.
    TASK: Analyze this code snippet and the associated error.

    CODE:
    </span><span class="si">{</span><span class="n">code_snippet</span><span class="si">}</span><span class="s">

    ERROR:
    </span><span class="si">{</span><span class="n">error_log</span><span class="si">}</span><span class="s">

    OUTPUT:
    1. The specific CWE (Common Weakness Enumeration).
    2. A secure patch in diff format.
    3. Explanation of the attack vector.
    """</span>

    <span class="n">response</span> <span class="o">=</span> <span class="n">requests</span><span class="p">.</span><span class="n">post</span><span class="p">(</span><span class="s">'http://localhost:11434/api/generate'</span><span class="p">,</span> <span class="n">json</span><span class="o">=</span><span class="p">{</span>
        <span class="s">"model"</span><span class="p">:</span> <span class="s">"mistral:instruct"</span><span class="p">,</span>
        <span class="s">"prompt"</span><span class="p">:</span> <span class="n">prompt</span><span class="p">,</span>
        <span class="s">"stream"</span><span class="p">:</span> <span class="bp">False</span>
    <span class="p">})</span>

    <span class="k">return</span> <span class="n">response</span><span class="p">.</span><span class="n">json</span><span class="p">()[</span><span class="s">'response'</span><span class="p">]</span>
</code></pre></div></div>

<h2 id="the-force-multiplier-effect">The “Force Multiplier” Effect</h2>

<p>When you automate the <em>understanding</em> of vulnerabilities, you change the economics of development.</p>

<div class="grid reveal">
  <div class="card" style="border-color: var(--red-team);">
    <h3 style="color: var(--red-team);">Manual Audit</h3>
    <p><strong>Speed:</strong> Hours/Days</p>
    <p><strong>Depth:</strong> High (but inconsistent)</p>
    <p><strong>Cost:</strong> Expensive (Human Capital)</p>
  </div>
  <div class="card" style="border-color: var(--accent-2);">
    <h3 style="color: var(--accent-2);">AI Sentinel</h3>
    <p><strong>Speed:</strong> Seconds</p>
    <p><strong>Depth:</strong> Consistent Pattern Matching</p>
    <p><strong>Cost:</strong> Near Zero (Compute)</p>
  </div>
</div>

<h2 id="conclusion">Conclusion</h2>

<p>We are not replacing the security engineer. We are giving them an exoskeleton. The AI handles the pattern matching, the boilerplate, and the initial triage. The human engineer handles the <strong>novelty</strong> and the <strong>strategy</strong>.</p>

<p>This is how we scale security. This is how we win.</p>]]></content><author><name>Livey (ind4skylivey)</name><email>ind4skylivey@proton.me</email></author><category term="AI" /><category term="Security" /><category term="Automation" /><category term="Research" /><summary type="html"><![CDATA[]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://ind4skylivey.github.io/assets/media/ai-security-hero.jpg" /><media:content medium="image" url="https://ind4skylivey.github.io/assets/media/ai-security-hero.jpg" xmlns:media="http://search.yahoo.com/mrss/" /></entry></feed>