<?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: Rodrigo Furlaneti</title>
    <description>The latest articles on DEV Community by Rodrigo Furlaneti (@rodrigo_furlaneti_1b337c6).</description>
    <link>https://dev.to/rodrigo_furlaneti_1b337c6</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%2F3777758%2Fdd2e0be4-7c6a-48ff-8e06-a9bac8157b4b.png</url>
      <title>DEV Community: Rodrigo Furlaneti</title>
      <link>https://dev.to/rodrigo_furlaneti_1b337c6</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rodrigo_furlaneti_1b337c6"/>
    <language>en</language>
    <item>
      <title>PointsTableAndExams — From a Coupled CRUD to a Clean Architecture &amp; CQRS Evaluation System</title>
      <dc:creator>Rodrigo Furlaneti</dc:creator>
      <pubDate>Thu, 04 Jun 2026 13:34:11 +0000</pubDate>
      <link>https://dev.to/rodrigo_furlaneti_1b337c6/pointstableandexams-from-a-coupled-crud-to-a-clean-architecture-cqrs-evaluation-system-4ebm</link>
      <guid>https://dev.to/rodrigo_furlaneti_1b337c6/pointstableandexams-from-a-coupled-crud-to-a-clean-architecture-cqrs-evaluation-system-4ebm</guid>
      <description>&lt;p&gt;tags: devchallenge, githubchallenge, dotnet, react, architecture&lt;/p&gt;

&lt;h1&gt;
  
  
  GitHub “Finish-Up-A-Thon” Challenge Submission
&lt;/h1&gt;

&lt;p&gt;&lt;strong&gt;PointsTableAndExams — From an Unfinished Prototype to a Robust, Multi-Tenant Evaluation Management System&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is a submission for the &lt;a href="https://dev.to/challenges/github"&gt;GitHub Finish-Up-A-Thon Challenge&lt;/a&gt;.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;PointsTableAndExams&lt;/strong&gt; is a comprehensive evaluation management system designed to process complex exam scoring, apply dynamic weighting, and distribute points across scalable tables. What started as a quick, tightly-coupled prototype has been completely re-engineered into a production-ready application built on a modern stack: a &lt;strong&gt;.NET 9 Web API&lt;/strong&gt; backend and a &lt;strong&gt;React + TypeScript + Vite&lt;/strong&gt; frontend, styled with &lt;strong&gt;Tailwind CSS&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The philosophy behind this revival was simple: software design matters. I didn't just want to finish the UI; I wanted to build it using enterprise-grade standards. &lt;/p&gt;

&lt;p&gt;What makes this iteration stand out:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Clean Architecture &amp;amp; DDD:&lt;/strong&gt; The core business rules (scoring logic, weight distribution) are 100% isolated in the Domain layer, completely agnostic of databases or web frameworks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CQRS Pattern:&lt;/strong&gt; I implemented Command Query Responsibility Segregation to separate read and write operations. This drastically optimized performance for complex queries generating the points tables.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Behavior-Driven Development (BDD):&lt;/strong&gt; Quality assurance is built-in. I wrote BDD specifications to guarantee the scoring algorithms behave exactly as expected under various edge cases.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;O(1) Complexity Focus:&lt;/strong&gt; Refactored critical evaluation loops that previously suffered from performance bottlenecks into highly efficient data structures.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Modern Frontend:&lt;/strong&gt; Replaced the old UI with a blazing-fast React application, utilizing Vite for bundling and Tailwind CSS for a fully responsive, modern design.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cloud-Ready:&lt;/strong&gt; The system is containerized and optimized for deployment on Azure, ensuring scalability and cost-efficiency.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;GitHub repository:&lt;/strong&gt; &lt;a href="https://github.com/rodrigofurlaneti/PointsTableAndExams" rel="noopener noreferrer"&gt;https://github.com/rodrigofurlaneti/PointsTableAndExams&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Clean Architecture Implementation (CQRS Handler):&lt;/strong&gt;&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
csharp
// The application layer is now clean, handling commands with isolated logic
public class CalculateExamScoreCommandHandler : IRequestHandler&amp;lt;CalculateExamScoreCommand, ScoreResult&amp;gt;
{
    private readonly IExamRepository _examRepository;
    private readonly IScoreCalculatorService _scoreCalculator;

    public CalculateExamScoreCommandHandler(IExamRepository examRepository, IScoreCalculatorService scoreCalculator)
    {
        _examRepository = examRepository;
        _scoreCalculator = scoreCalculator;
    }

    public async Task&amp;lt;ScoreResult&amp;gt; Handle(CalculateExamScoreCommand request, CancellationToken cancellationToken)
    {
        var exam = await _examRepository.GetByIdAsync(request.ExamId, cancellationToken);
        // Domain logic execution, isolated from infrastructure
        var finalScore = _scoreCalculator.Calculate(exam, request.StudentAnswers);

        return finalScore;
    }
}


Feature: Exam Scoring Calculation
  As a system administrator
  I want the system to calculate points accurately based on question weights
  So that student evaluations are fair and transparent

  Scenario: Correct calculation with mixed weights
    Given an exam exists with 2 questions
    And Question 1 has a weight of 2.0
    And Question 2 has a weight of 1.5
    When the student answers Question 1 correctly and Question 2 incorrectly
    Then the final calculated score should be 2.0

(Author's note: Insert a screenshot of your React/Tailwind frontend dashboard here)

The Comeback Story
This project started from a frustrating reality: building a quick prototype often leads to technical debt that paralyzes future development.

The first version was a monolithic application. It got the job done for a single use case, but the UI logic, Entity Framework queries, and business rules were tangled together in massive controller methods. It sat unfinished for a long time because adding new features meant risking breaking the fragile scoring calculations. The Finish-Up-A-Thon was the exact push I needed to tear it down and rebuild it correctly.

Before — what the project looked like when I picked it back up:

A monolithic structure with massive controllers.

Hardcoded business rules mixed directly with SQL data access code.

No automated tests (making refactoring terrifying).

Basic, unresponsive UI built with outdated frontend practices.

Poor performance on large datasets due to nested loops and N+1 query issues.

What I finished to get to this final release:

Total Architectural Overhaul: Migrated the entire backend to .NET 9, implementing Clean Architecture. The domain is now pure.

CQRS Implementation: Segregated commands and queries, making the API endpoints clean, testable, and scalable.

Algorithm Optimization: Eliminated N+1 queries in Entity Framework and refactored the scoring loop to achieve O(1) time complexity where possible, drastically improving the calculation speed for large tables.

BDD &amp;amp; Unit Testing: I rigorously documented and fixed the BDD scenarios, ensuring that all specifications for the AccessAuthentication and scoring modules were correctly written and tested.

Frontend Rewrite: Threw away the old views and built a fresh, decoupled SPA using React, TypeScript, and Vite. The UI is now fully responsive thanks to Tailwind CSS.

The transformation from a "fragile script" to a scalable, beautifully architected software solution took late nights and deep focus. The Finish-Up-A-Thon was the deadline I needed to actually ship it.

My Experience with GitHub Copilot
GitHub Copilot was deeply involved in every phase of this rewrite—not as a tool that just wrote code for me, but as a brilliant pair programmer that accelerated my architectural decisions.

Transitioning a legacy codebase to Clean Architecture requires a lot of structural setup. Here is where Copilot changed the game:

Accelerating Boilerplate: When setting up MediatR for the CQRS pattern, Copilot perfectly anticipated the structure. I would define the Command record, and it instantly generated the corresponding CommandHandler, complete with the correct constructor injections for my repositories.

Refactoring to O(1) Complexity: I had an old, nested loop used for cross-referencing student answers with the answer key. I wrote a comment: // Refactor to use a Dictionary for O(1) lookups. Copilot immediately provided the optimized implementation, cutting down lines of code and improving performance.

Drafting BDD Tests: Writing Gherkin syntax and mapping it to step definitions can be tedious. Copilot understood the context of my PointsTable entities and suggested highly relevant edge cases for the scoring logic that I hadn't initially considered. It helped me ensure the BDD documentation was flawlessly written.

React &amp;amp; Tailwind Velocity: On the frontend, building the data tables to display the points was incredibly fast. I typed a comment describing a responsive grid for the exam results, and Copilot generated the full React component with all the necessary Tailwind utility classes for dark mode and mobile responsiveness.

What Copilot didn’t do: it didn’t design the domain boundaries or decide how to segregate the micro-services. Those architectural decisions were mine. But it removed the friction between "knowing what pattern to use" and "typing out the implementation."

Without Copilot, this level of structural refactoring would have taken weeks of tedious typing. With it, I shipped a tested, documented, and architecturally sound framework. That's the difference.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>devchallenge</category>
      <category>githubchallenge</category>
    </item>
    <item>
      <title>Code Property Graph: Visualizing Clean Architecture as an Interactive Knowledge Graph</title>
      <dc:creator>Rodrigo Furlaneti</dc:creator>
      <pubDate>Tue, 26 May 2026 12:10:16 +0000</pubDate>
      <link>https://dev.to/rodrigo_furlaneti_1b337c6/code-property-graph-visualizing-clean-architecture-as-an-interactive-knowledge-graph-1j9d</link>
      <guid>https://dev.to/rodrigo_furlaneti_1b337c6/code-property-graph-visualizing-clean-architecture-as-an-interactive-knowledge-graph-1j9d</guid>
      <description>&lt;p&gt;This is a submission for the GitHub Finish-Up-A-Thon Challenge&lt;/p&gt;

&lt;p&gt;What I Built&lt;br&gt;
Code Property Graph is a full-stack system designed to map any software project into a relational graph model. It allows you to visualize and navigate through your code's architecture—such as layers, projects, namespaces, and elements (classes, interfaces, records)—in a fully interactive way.&lt;/p&gt;

&lt;p&gt;The project's biggest innovation is combining the Relational Paradigm (SQL Server + EF Core) with a Graph Vision (Knowledge Graph). There is no need to migrate to a native graph database; the backend models nodes and edges using classic tables and foreign keys, while the frontend translates all of this into a real-time mind map.&lt;/p&gt;

&lt;p&gt;Beyond visually documenting the architecture, it features a Clean Architecture violation detection engine, immediately alerting you if a dependency rule is broken (for example, a Domain element depending on Infrastructure). All of this was built using the latest ecosystem versions: .NET 9.0 on the backend (using CQRS, MediatR, and Rich Entities) and React 18 + TypeScript + React Flow on the frontend.&lt;/p&gt;

&lt;p&gt;Demo&lt;br&gt;
The complete source code is available on my GitHub:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/rodrigofurlaneti/CodePropertyGraph" rel="noopener noreferrer"&gt;Code Property Graph Repository&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is a glimpse of the interface mapping a system's dependencies:&lt;/p&gt;

&lt;p&gt;The Comeback Story&lt;br&gt;
The original idea for the Code Property Graph was born from a real pain point I've faced over years of dealing with complex systems. Designing solutions using Domain-Driven Design (DDD), patterns like CQRS, and Clean Architecture requires strict team discipline. I always felt the lack of a visual and pragmatic tool to validate these dependencies in real time, without the bureaucracy of parsing hundreds of .csproj files.&lt;/p&gt;

&lt;p&gt;The project was sitting "in the drawer" as a conceptual proof of concept. For this Finish-Up-A-Thon, I finally decided to dust it off and finish the solution, elevating the technical level of the stack. The main changes to revive and complete the project included:&lt;/p&gt;

&lt;p&gt;Backend Update: I refactored the core to use .NET 9.0, ensuring the entities were extremely rich (Rich Entities without Data Annotations) and implementing the Result Pattern to avoid exceptions in flow control.&lt;/p&gt;

&lt;p&gt;React Flow Adoption: The old frontend didn't properly support rendering directional nodes. Integrating React Flow (@xyflow/react) with strict TypeScript typing completely changed the usability, allowing real-time filters and dependency highlighting (IMPLEMENTS and DEPENDS_ON).&lt;/p&gt;

&lt;p&gt;Violation Engine: I completed the most important feature: the complex SQL queries via EF Core (AsSplitQuery) that automatically detect components bypassing Clean Architecture rules.&lt;/p&gt;

&lt;p&gt;My Experience with GitHub Copilot&lt;br&gt;
GitHub Copilot acted as a true senior pair programmer throughout the entire journey of finishing the project, accelerating the development cycle on essential fronts.&lt;/p&gt;

&lt;p&gt;On the backend (.NET), it was brilliant at inferring the structure of my Fluent API in Entity Framework Core. When I needed to map composite keys for edges (like ElementImplementation and ElementDependency), Copilot auto-completed the relationship configurations and IEntityTypeConfiguration, respecting the AsNoTracking rule I had established. It also accelerated the creation of MediatR Handlers and validations via FluentValidation.&lt;/p&gt;

&lt;p&gt;On the frontend, the biggest challenge was state management and the complex rendering of nodes. Copilot saved me hours of reading documentation by helping type custom React Flow nodes and writing Zustand selectors to manage filter options (layers, directories, and selected elements). Having this AI by my side eliminated repetitive boilerplate work and allowed me to focus entirely on the architecture and engineering of the data model.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>githubchallenge</category>
    </item>
    <item>
      <title>Code Property Graph: Visualizando a Clean Architecture como um Knowledge Graph Interativo</title>
      <dc:creator>Rodrigo Furlaneti</dc:creator>
      <pubDate>Tue, 26 May 2026 12:07:43 +0000</pubDate>
      <link>https://dev.to/rodrigo_furlaneti_1b337c6/code-property-graph-visualizando-a-clean-architecture-como-um-knowledge-graph-interativo-20f9</link>
      <guid>https://dev.to/rodrigo_furlaneti_1b337c6/code-property-graph-visualizando-a-clean-architecture-como-um-knowledge-graph-interativo-20f9</guid>
      <description>&lt;p&gt;This is a submission for the GitHub Finish-Up-A-Thon Challenge&lt;/p&gt;

&lt;p&gt;What I Built&lt;br&gt;
O Code Property Graph é um sistema full-stack desenhado para mapear qualquer projeto de software em um modelo de grafo relacional. Ele permite que você visualize e navegue pela arquitetura do seu código — como camadas, projetos, namespaces e elementos (classes, interfaces, records) — de forma totalmente interativa.&lt;/p&gt;

&lt;p&gt;A maior inovação do projeto é combinar o Paradigma Relacional (SQL Server + EF Core) com uma Visão de Grafo (Knowledge Graph). Não há necessidade de migrar para um banco de dados de grafos nativo; o backend modela nós e arestas usando tabelas e chaves estrangeiras clássicas, enquanto o frontend traduz tudo isso em um mapa mental em tempo real.&lt;/p&gt;

&lt;p&gt;Além de documentar a arquitetura visualmente, ele possui uma engine de detecção de violações da Clean Architecture, alertando imediatamente caso uma regra de dependência seja quebrada (por exemplo, um elemento do Domain dependendo da Infrastructure). Tudo isso foi construído com as versões mais recentes do ecossistema: .NET 9.0 no backend (utilizando CQRS, MediatR e Rich Entities) e React 18 + TypeScript + React Flow no frontend.&lt;/p&gt;

&lt;p&gt;Demo&lt;br&gt;
O código-fonte completo está disponível no meu GitHub:&lt;br&gt;
&lt;a href="https://github.com/rodrigofurlaneti/CodePropertyGraph" rel="noopener noreferrer"&gt;Repositório do Code Property Graph&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Aqui está um vislumbre da interface mapeando as dependências de um sistema:&lt;/p&gt;

&lt;p&gt;The Comeback Story&lt;br&gt;
A ideia original do Code Property Graph nasceu de uma dor real que enfrentei ao longo de anos lidando com sistemas complexos. Projetar soluções utilizando Domain-Driven Design (DDD), padrões como CQRS e Clean Architecture exige disciplina rígida da equipe. Sempre senti falta de uma ferramenta visual e pragmática para validar essas dependências em tempo real, sem a burocracia de analisar centenas de arquivos .csproj.&lt;/p&gt;

&lt;p&gt;O projeto estava "na gaveta" como uma prova de conceito conceitual. Para este Finish-Up-A-Thon, decidi finalmente tirar a poeira e finalizar a solução, elevando o nível técnico da stack. As principais mudanças para reviver e concluir o projeto incluíram:&lt;/p&gt;

&lt;p&gt;Atualização do Backend: Refatorei o core para utilizar o .NET 9.0, garantindo que as entidades fossem extremamente ricas (Rich Entities sem Data Annotations) e implementando o Result Pattern para evitar exceções no controle de fluxo.&lt;/p&gt;

&lt;p&gt;Adoção do React Flow: O frontend antigo não suportava bem a renderização de nós direcionais. Integrar o React Flow (@xyflow/react) com tipagem estrita em TypeScript mudou completamente a usabilidade, permitindo filtros em tempo real e destaque de dependências (IMPLEMENTS e DEPENDS_ON).&lt;/p&gt;

&lt;p&gt;Engine de Violações: Concluí a feature mais importante: as queries SQL complexas via EF Core (AsSplitQuery) que detectam automaticamente componentes que furam o bloqueio da Clean Architecture.&lt;/p&gt;

&lt;p&gt;My Experience with GitHub Copilot&lt;br&gt;
O GitHub Copilot funcionou como um verdadeiro pair programmer sênior durante toda a jornada de finalização do projeto, acelerando o ciclo de desenvolvimento em frentes essenciais.&lt;/p&gt;

&lt;p&gt;No backend (.NET), ele foi brilhante ao inferir a estrutura da minha Fluent API no Entity Framework Core. Quando eu precisava mapear as chaves compostas para as arestas (como ElementImplementation e ElementDependency), o Copilot autocompletava a configuração de relacionamentos e IEntityTypeConfiguration respeitando a regra de AsNoTracking que eu havia estabelecido. Ele também acelerou a criação dos Handlers do MediatR e as validações via FluentValidation.&lt;/p&gt;

&lt;p&gt;No frontend, o maior desafio era o gerenciamento de estado e a renderização complexa de nós. O Copilot me poupou horas de documentação ajudando a tipar os nós customizados do React Flow e a escrever os seletores do Zustand para gerenciar as opções de filtros (camadas, diretórios e elementos selecionados). Ter essa IA do lado eliminou o trabalho repetitivo de boilerplate e me permitiu focar totalmente na arquitetura e na engenharia do modelo de dados.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>githubchallenge</category>
    </item>
    <item>
      <title>Resolvendo a Alucinação da IA na Arquitetura de Software com Code Property Graphs e .NET 9</title>
      <dc:creator>Rodrigo Furlaneti</dc:creator>
      <pubDate>Sat, 23 May 2026 10:31:50 +0000</pubDate>
      <link>https://dev.to/rodrigo_furlaneti_1b337c6/resolvendo-a-alucinacao-da-ia-na-arquitetura-de-software-com-code-property-graphs-e-net-9-1mbn</link>
      <guid>https://dev.to/rodrigo_furlaneti_1b337c6/resolvendo-a-alucinacao-da-ia-na-arquitetura-de-software-com-code-property-graphs-e-net-9-1mbn</guid>
      <description>&lt;p&gt;A ascensão das ferramentas de Inteligência Artificial Generativa transformou radicalmente a produtividade na engenharia de software. Hoje, assistentes de código conseguem gerar classes inteiras, refatorar algoritmos complexos e propor padrões de projeto em segundos.&lt;/p&gt;

&lt;p&gt;No entanto, como Engenheiro de Software trabalhando em ambientes corporativos de alta complexidade, esbarrei repetidamente no maior gargalo dessas ferramentas: a alucinação contextual e a quebra de fronteiras arquiteturais.&lt;/p&gt;

&lt;p&gt;Quem nunca viu uma IA sugerir a criação de um arquivo no diretório errado? Ou pior, fazer a camada de Domain depender diretamente de um componente de Infrastructure, violando frontalmente os princípios da Clean Architecture?&lt;/p&gt;

&lt;p&gt;Para resolver esse problema de forma determinística, decidi criar o Code Property Graph (CPG): um ecossistema que mapeia toda a estrutura estática do código (camadas, namespaces, classes e dependências) e atua como uma "guarda de fronteira" contra as alucinações da IA.&lt;/p&gt;

&lt;p&gt;🏗️ O Conceito: Mapeando Código como Conhecimento&lt;br&gt;
O projeto, que disponibilizei de forma open-source no meu GitHub (CodePropertyGraph), foi desenhado em três grandes módulos, abraçando uma abordagem que chamo de Paradigma Híbrido (Relacional + Grafo).&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;O Motor Híbrido: SQL com Alma de Grafo (1-Sql)
Mapear dependências em bancos puramente relacionais costuma gerar tabelas associativas complexas. Por outro lado, forçar uma equipe a adotar um banco de grafos nativo (como Neo4j) apenas para essa análise pode gerar fricção operacional.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Minha solução foi criar um banco relacional otimizado para travessias. Uma tabela central CodeElement (o nó do grafo) armazena Classes, Interfaces e Records. Tabelas associativas como ElementDependency atuam como as arestas.&lt;/p&gt;

&lt;p&gt;Com isso, antes de a IA gerar um código, o sistema pode rodar uma validação determinística:&lt;/p&gt;

&lt;p&gt;SQL&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- Identificando violação clássica: Domain dependendo de Infrastructure&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; 
    &lt;span class="n"&gt;SourceElem&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Name&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;ArquivoIncorreto&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;TargetElem&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Name&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;DependenciaProibida&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;ElementDependency&lt;/span&gt; &lt;span class="n"&gt;Dep&lt;/span&gt;
&lt;span class="k"&gt;INNER&lt;/span&gt; &lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="n"&gt;CodeElement&lt;/span&gt; &lt;span class="n"&gt;SourceElem&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;Dep&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;SourceElementId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;SourceElem&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Id&lt;/span&gt;
&lt;span class="k"&gt;INNER&lt;/span&gt; &lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="n"&gt;Layer&lt;/span&gt; &lt;span class="n"&gt;SourceLayer&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;SourceElem&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;LayerId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;SourceLayer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Id&lt;/span&gt;
&lt;span class="k"&gt;INNER&lt;/span&gt; &lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="n"&gt;CodeElement&lt;/span&gt; &lt;span class="n"&gt;TargetElem&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;Dep&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;TargetElementId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;TargetElem&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Id&lt;/span&gt;
&lt;span class="k"&gt;INNER&lt;/span&gt; &lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="n"&gt;Layer&lt;/span&gt; &lt;span class="n"&gt;TargetLayer&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;TargetElem&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;LayerId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;TargetLayer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Id&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;SourceLayer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Domain'&lt;/span&gt; &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;TargetLayer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Infrastructure'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Se a query retornar dados, a IA é bloqueada de prosseguir com a sugestão. Simples e infalível.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;O Cérebro: Backend em .NET 9.0 (2-BackEnd)
Para orquestrar essa lógica, criei uma API robusta em .NET 9.0. Seguindo estritamente os princípios SOLID, implementei o padrão CQRS utilizando o MediatR.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Commands: Lidam com a ingestão pesada de metadados de código extraídos via analisadores estáticos (como o Roslyn).&lt;/p&gt;

&lt;p&gt;Queries: Executam as validações arquiteturais em tempo real.&lt;/p&gt;

&lt;p&gt;Tudo é abstraído pelo Repository Pattern, garantindo que as regras de negócio de validação arquitetural fiquem isoladas de como os dados estão persistidos.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A Visão: Interactive Knowledge Graph com React (3-FrontEnd)
Dados puros não fornecem intuição arquitetural. O módulo front-end, construído em React, consome a API do .NET 9 e renderiza a arquitetura inteira como um Knowledge Graph interativo (semelhante a um mapa mental complexo).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;O desenvolvedor pode clicar em um módulo específico e ver imediatamente a árvore de dependências. Mais importante: ele pode "desenhar" uma intenção de nova feature, e o front-end validará em tempo real se essa nova estrutura fere o design do sistema, antes mesmo de uma única linha de código ser escrita.&lt;/p&gt;

&lt;p&gt;🚀 Conclusão&lt;br&gt;
A IA Generativa é um co-piloto extraordinário, mas nós ainda somos os arquitetos. Ao criar um Code Property Graph, damos à IA os "olhos" necessários para entender os limites de domínio e infraestrutura de nossas aplicações. Projetos estruturados com .NET 9, bancos de dados otimizados e interfaces interativas em React são a ponte para um desenvolvimento assistido por IA verdadeiramente seguro.&lt;/p&gt;

&lt;p&gt;Sinta-se à vontade para explorar o código, enviar PRs ou discutir ideias no repositório do projeto!&lt;/p&gt;

&lt;p&gt;English Version 🇬🇧 / 🇺🇸&lt;br&gt;
This is a submission for the Google I/O Writing Challenge&lt;/p&gt;

&lt;p&gt;Solving AI Hallucination in Software Architecture with Code Property Graphs and .NET 9&lt;br&gt;
The rise of Generative AI tools has radically transformed software engineering productivity. Today, coding assistants can generate entire classes, refactor complex algorithms, and propose design patterns in seconds.&lt;/p&gt;

&lt;p&gt;However, as a Software Engineer working in highly complex enterprise environments, I repeatedly hit the biggest bottleneck of these tools: contextual hallucination and the breaking of architectural boundaries.&lt;/p&gt;

&lt;p&gt;Who hasn't seen an AI suggest creating a file in completely the wrong directory? Or worse, make the Domain layer directly depend on an Infrastructure component, blatantly violating the principles of Clean Architecture?&lt;/p&gt;

&lt;p&gt;To solve this problem deterministically, I decided to build the Code Property Graph (CPG): an ecosystem that maps the entire static structure of the code (layers, namespaces, classes, and dependencies) and acts as a "border guard" against AI hallucinations.&lt;/p&gt;

&lt;p&gt;🏗️ The Concept: Mapping Code as Knowledge&lt;br&gt;
The project, which I open-sourced on my GitHub (CodePropertyGraph), was designed in three major modules, embracing an approach I call the Hybrid Paradigm (Relational + Graph).&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The Hybrid Engine: SQL with a Graph Soul (1-Sql)
Mapping dependencies in purely relational databases usually generates complex associative tables. On the other hand, forcing a team to adopt a native graph database (like Neo4j) just for this analysis can cause operational friction.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;My solution was to create a relational database optimized for traversals. A central CodeElement table (the graph node) stores Classes, Interfaces, and Records. Associative tables like ElementDependency act as the edges.&lt;/p&gt;

&lt;p&gt;With this setup, before the AI generates code, the system can run a deterministic validation:&lt;/p&gt;

&lt;p&gt;SQL&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="c1"&gt;-- Identifying a classic violation: Domain depending on Infrastructure&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; 
    &lt;span class="n"&gt;SourceElem&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Name&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;IncorrectFile&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;TargetElem&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Name&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;ForbiddenDependency&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;ElementDependency&lt;/span&gt; &lt;span class="n"&gt;Dep&lt;/span&gt;
&lt;span class="k"&gt;INNER&lt;/span&gt; &lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="n"&gt;CodeElement&lt;/span&gt; &lt;span class="n"&gt;SourceElem&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;Dep&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;SourceElementId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;SourceElem&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Id&lt;/span&gt;
&lt;span class="k"&gt;INNER&lt;/span&gt; &lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="n"&gt;Layer&lt;/span&gt; &lt;span class="n"&gt;SourceLayer&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;SourceElem&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;LayerId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;SourceLayer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Id&lt;/span&gt;
&lt;span class="k"&gt;INNER&lt;/span&gt; &lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="n"&gt;CodeElement&lt;/span&gt; &lt;span class="n"&gt;TargetElem&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;Dep&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;TargetElementId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;TargetElem&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Id&lt;/span&gt;
&lt;span class="k"&gt;INNER&lt;/span&gt; &lt;span class="k"&gt;JOIN&lt;/span&gt; &lt;span class="n"&gt;Layer&lt;/span&gt; &lt;span class="n"&gt;TargetLayer&lt;/span&gt; &lt;span class="k"&gt;ON&lt;/span&gt; &lt;span class="n"&gt;TargetElem&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;LayerId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;TargetLayer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Id&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;SourceLayer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Domain'&lt;/span&gt; &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="n"&gt;TargetLayer&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Infrastructure'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the query returns any data, the AI is blocked from proceeding with the suggestion. Simple and bulletproof.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The Brain: .NET 9.0 Backend (2-BackEnd)
To orchestrate this logic, I built a robust API in .NET 9.0. Strictly following SOLID principles, I implemented the CQRS pattern using MediatR.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Commands: Handle the heavy ingestion of code metadata extracted via static analyzers (like Roslyn).&lt;/p&gt;

&lt;p&gt;Queries: Execute real-time architectural validations.&lt;/p&gt;

&lt;p&gt;Everything is abstracted by the Repository Pattern, ensuring that the architectural validation business rules remain isolated from how the data is persisted.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The Vision: Interactive Knowledge Graph with React (3-FrontEnd)
Raw data doesn't provide architectural intuition. The front-end module, built in React, consumes the .NET 9 API and renders the entire architecture as an interactive Knowledge Graph (similar to a complex mind map).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Developers can click on a specific module and immediately see its dependency tree. More importantly, they can "draw" the intent for a new feature, and the front-end will validate in real-time if this new structure violates the system's design—before a single line of code is written.&lt;/p&gt;

&lt;p&gt;🚀 Conclusion&lt;br&gt;
Generative AI is an extraordinary co-pilot, but we are still the architects. By creating a Code Property Graph, we give AI the "eyes" it needs to understand the domain and infrastructure boundaries of our applications. Projects structured with .NET 9, optimized databases, and interactive React interfaces are the bridge to truly safe AI-assisted development.&lt;/p&gt;

&lt;p&gt;Feel free to explore the code, submit PRs, or discuss ideas over at the project repository!&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>githubchallenge</category>
    </item>
    <item>
      <title>Solving AI Hallucination in Software Architecture with Code Property Graphs and .NET 9</title>
      <dc:creator>Rodrigo Furlaneti</dc:creator>
      <pubDate>Sat, 23 May 2026 10:30:13 +0000</pubDate>
      <link>https://dev.to/rodrigo_furlaneti_1b337c6/solving-ai-hallucination-in-software-architecture-with-code-property-graphs-and-net-9-p20</link>
      <guid>https://dev.to/rodrigo_furlaneti_1b337c6/solving-ai-hallucination-in-software-architecture-with-code-property-graphs-and-net-9-p20</guid>
      <description>&lt;p&gt;The rise of Generative AI tools has radically transformed software engineering productivity. Today, coding assistants can generate entire classes, refactor complex algorithms, and propose design patterns in seconds.&lt;/p&gt;

&lt;p&gt;However, as a Software Engineer working in highly complex enterprise environments, I repeatedly hit the biggest bottleneck of these tools: contextual hallucination and the breaking of architectural boundaries.&lt;/p&gt;

&lt;p&gt;Who hasn't seen an AI suggest creating a file in completely the wrong directory? Or worse, make the Domain layer directly depend on an Infrastructure component, blatantly violating the principles of Clean Architecture?&lt;/p&gt;

&lt;p&gt;To solve this problem deterministically, I decided to build the Code Property Graph (CPG): an ecosystem that maps the entire static structure of the code (layers, namespaces, classes, and dependencies) and acts as a "border guard" against AI hallucinations.&lt;/p&gt;

&lt;p&gt;The Concept: Mapping Code as Knowledge&lt;br&gt;
The project, which I open-sourced on my GitHub (CodePropertyGraph), was designed in three major modules, embracing an approach I call the Hybrid Paradigm (Relational + Graph).&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The Hybrid Engine: SQL with a Graph Soul (1-Sql)
Mapping dependencies in purely relational databases usually generates complex associative tables. On the other hand, forcing a team to adopt a native graph database (like Neo4j) just for this analysis can cause operational friction.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;My solution was to create a relational database optimized for traversals. A central CodeElement table (the graph node) stores Classes, Interfaces, and Records. Associative tables like ElementDependency act as the edges.&lt;/p&gt;

&lt;p&gt;With this setup, before the AI generates code, the system can run a deterministic validation:&lt;/p&gt;

&lt;p&gt;SQL&lt;br&gt;
&lt;code&gt;-- Identifying a classic violation: Domain depending on Infrastructure&lt;br&gt;
SELECT &lt;br&gt;
    SourceElem.Name AS IncorrectFile,&lt;br&gt;
    TargetElem.Name AS ForbiddenDependency&lt;br&gt;
FROM ElementDependency Dep&lt;br&gt;
INNER JOIN CodeElement SourceElem ON Dep.SourceElementId = SourceElem.Id&lt;br&gt;
INNER JOIN Layer SourceLayer ON SourceElem.LayerId = SourceLayer.Id&lt;br&gt;
INNER JOIN CodeElement TargetElem ON Dep.TargetElementId = TargetElem.Id&lt;br&gt;
INNER JOIN Layer TargetLayer ON TargetElem.LayerId = TargetLayer.Id&lt;br&gt;
WHERE SourceLayer.Name = 'Domain' AND TargetLayer.Name = 'Infrastructure';&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;If the query returns any data, the AI is blocked from proceeding with the suggestion. Simple and bulletproof.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The Brain: .NET 9.0 Backend (2-BackEnd)
To orchestrate this logic, I built a robust API in .NET 9.0. Strictly following SOLID principles, I implemented the CQRS pattern using MediatR.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Commands: Handle the heavy ingestion of code metadata extracted via static analyzers (like Roslyn).&lt;/p&gt;

&lt;p&gt;Queries: Execute real-time architectural validations.&lt;/p&gt;

&lt;p&gt;Everything is abstracted by the Repository Pattern, ensuring that the architectural validation business rules remain isolated from how the data is persisted.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The Vision: Interactive Knowledge Graph with React (3-FrontEnd)
Raw data doesn't provide architectural intuition. The front-end module, built in React, consumes the .NET 9 API and renders the entire architecture as an interactive Knowledge Graph (similar to a complex mind map).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Developers can click on a specific module and immediately see its dependency tree. More importantly, they can "draw" the intent for a new feature, and the front-end will validate in real-time if this new structure violates the system's design—before a single line of code is written.&lt;/p&gt;

&lt;p&gt;Conclusion&lt;br&gt;
Generative AI is an extraordinary co-pilot, but we are still the architects. By creating a Code Property Graph, we give AI the "eyes" it needs to understand the domain and infrastructure boundaries of our applications. Projects structured with .NET 9, optimized databases, and interactive React interfaces are the bridge to truly safe AI-assisted development.&lt;/p&gt;

&lt;p&gt;Feel free to explore the code, submit PRs, or discuss ideas over at the project repository!&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>googleiochallenge</category>
    </item>
    <item>
      <title>GhostScan v3.0 — From Scattered Scripts to an Elite Open-Source Pentest Framework</title>
      <dc:creator>Rodrigo Furlaneti</dc:creator>
      <pubDate>Fri, 22 May 2026 11:43:38 +0000</pubDate>
      <link>https://dev.to/rodrigo_furlaneti_1b337c6/ghostscan-v30-from-scattered-scripts-to-an-elite-open-source-pentest-framework-19e6</link>
      <guid>https://dev.to/rodrigo_furlaneti_1b337c6/ghostscan-v30-from-scattered-scripts-to-an-elite-open-source-pentest-framework-19e6</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/github-2026-05-21"&gt;GitHub Finish-Up-A-Thon Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;




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

&lt;p&gt;&lt;strong&gt;GhostScan v3.0&lt;/strong&gt; is an elite, modular penetration testing framework for Kali Linux that brings together 53 security tools under a single, intelligent CLI — with correlation-aware scoring, WAF bypass profiles, adaptive workflows, and professional report generation.&lt;/p&gt;

&lt;p&gt;The philosophy behind GhostScan is simple but powerful: &lt;strong&gt;signal over noise&lt;/strong&gt;. Most security scanners dump 300+ raw findings and leave the tester to figure out what matters. GhostScan gives you &lt;strong&gt;10 findings you can act on today&lt;/strong&gt;, each ranked by a scoring formula that accounts for real-world impact, exploitability confidence, and business context:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;score = (impact × 0.6) + (confidence × 0.4)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What makes it different from a typical scanner wrapper:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Correlation engine&lt;/strong&gt; — automatically detects compound risks. A login panel + SQL injection isn't two MEDIUM findings. It's one CRITICAL: &lt;code&gt;SQLi on Auth Endpoint = Auth Bypass + Full DB Dump&lt;/code&gt;, scored at 9.8.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context multipliers&lt;/strong&gt; — payment paths, exposed databases, and authenticated endpoints automatically elevate severity based on business impact.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WAF bypass profiles&lt;/strong&gt; — auto-detects CloudFlare, Akamai, AWS WAF, F5, Imperva, ModSecurity, Wordfence, and Sucuri, then applies the right sqlmap tamper chain and timing delays.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Plugin system&lt;/strong&gt; — drop a &lt;code&gt;.py&lt;/code&gt; file into &lt;code&gt;plugins/&lt;/code&gt; and it loads automatically on the next scan. Plugins run sandboxed with timeout kill-switches so a broken plugin never stops the chain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Adaptive workflow engine&lt;/strong&gt; — after each scan, GhostScan generates exact next commands based on what was actually found, not a static checklist.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scan profiles&lt;/strong&gt; — &lt;code&gt;stealth&lt;/code&gt; (passive only, 2s rate, no probing), &lt;code&gt;standard&lt;/code&gt; (balanced), and &lt;code&gt;aggressive&lt;/code&gt; (all modules, 50 threads, large wordlists, full injection suite).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Report generation&lt;/strong&gt; — PDF, HTML, Markdown, and JSON out of the box.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CI/CD from day one&lt;/strong&gt; — GitHub Actions runs syntax checks and unit tests across Python 3.10, 3.11, and 3.12 on every push.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;⚠️ For authorized security testing only. Always obtain written permission before testing any system.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;GitHub repository:&lt;/strong&gt; &lt;a href="https://github.com/rodrigofurlaneti/scanghost" rel="noopener noreferrer"&gt;https://github.com/rodrigofurlaneti/scanghost&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Example scan output (correlation engine):&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;✓ Login panel at /wp-login.php (HTTP 200)
✓ SQL injection in ?search= (boolean-based)
✓ Content-Security-Policy missing
= 🔴 CRITICAL [9.8] SQLi on Auth Endpoint = Auth Bypass + DB Dump
  Attack: admin'-- → bypass auth → dump wp_users → crack hashes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;✓ Redis on port 6379 (open to internet)
✓ No authentication (default config)
= 🔴 CRITICAL [9.6] Database Exposed Externally
  Attack: redis-cli → CONFIG SET → cron RCE
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Full scan, PDF report:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ghostscan &lt;span class="nt"&gt;-t&lt;/span&gt; your-authorized-target.com &lt;span class="nt"&gt;--all&lt;/span&gt; &lt;span class="nt"&gt;--report&lt;/span&gt; pdf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Stealth recon only:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ghostscan &lt;span class="nt"&gt;-t&lt;/span&gt; target.com &lt;span class="nt"&gt;--mode&lt;/span&gt; stealth &lt;span class="nt"&gt;--recon&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;WAF bypass + browser DOM XSS:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ghostscan &lt;span class="nt"&gt;-t&lt;/span&gt; target.com &lt;span class="nt"&gt;--web&lt;/span&gt; &lt;span class="nt"&gt;--waf-bypass&lt;/span&gt; &lt;span class="nt"&gt;--browser&lt;/span&gt; &lt;span class="nt"&gt;--screenshots&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  The Comeback Story
&lt;/h2&gt;

&lt;p&gt;This project started from a frustrating reality: penetration testing workflows are fragmented. You run nmap, then manually feed results into nikto, then into sqlmap, then into gobuster — each tool in its own terminal window, each output in its own format, and you're left manually correlating 300 raw findings to figure out what actually matters.&lt;/p&gt;

&lt;p&gt;I started GhostScan as a personal tool to fix that for myself. The first version was a single Python script that called tools sequentially and printed output to the terminal. It worked, but barely — one missing tool would crash the whole run, there was no scoring, no scope enforcement, and the "report" was a text dump.&lt;/p&gt;

&lt;p&gt;It sat unfinished for months. The core idea was solid, but it needed a lot more work before I'd share it with anyone. The Finish-Up-A-Thon was the push I needed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Before — what the project looked like when I picked it back up:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A single Python script that called tools sequentially&lt;/li&gt;
&lt;li&gt;No scoring or severity weighting — everything was "found" or "not found"&lt;/li&gt;
&lt;li&gt;No scope enforcement — it could happily scan out-of-scope hosts&lt;/li&gt;
&lt;li&gt;No WAF awareness — most active scans got blocked immediately&lt;/li&gt;
&lt;li&gt;Reports were raw terminal output dumped to a text file&lt;/li&gt;
&lt;li&gt;No plugin system, no extensibility&lt;/li&gt;
&lt;li&gt;No CI, no tests&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What I finished to get to v3:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Hard scope enforcement&lt;/strong&gt; — &lt;code&gt;ScopeEnforcer&lt;/code&gt; blocks out-of-scope requests and SSRF-prone IPs (&lt;code&gt;169.254.x.x&lt;/code&gt;, &lt;code&gt;10.x.x.x&lt;/code&gt; by default) before any tool even runs. This was the most important safety addition.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Safe parallel executor&lt;/strong&gt; — &lt;code&gt;SafeExecutor&lt;/code&gt; runs tools concurrently with per-tool timeouts, retry logic, and failure isolation. One broken tool (e.g. a segfaulting nuclei template) never stops the scan.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Intelligence &amp;amp; correlation engine&lt;/strong&gt; — &lt;code&gt;IntelligenceEngine&lt;/code&gt; cross-references all findings from all modules to detect compound attack paths. This was the hardest module to finish. The raw data comes in from recon, web, and vuln modules in different shapes; the engine normalises it, deduplicates it, applies context multipliers, ranks attack surface targets, and surfaces correlations.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;WAF bypass engine&lt;/strong&gt; — &lt;code&gt;WafBypass&lt;/code&gt; maps detected WAF vendors to specific sqlmap tamper scripts, encoding techniques, and rate delays. Previously the framework just got blocked and returned zero findings against WAF-protected targets.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Adaptive workflow engine&lt;/strong&gt; — &lt;code&gt;WorkflowEngine&lt;/code&gt; generates contextual next steps. If SQLi was found, it tells you exactly which sqlmap flags to run. If Redis is open, it gives you the specific redis-cli commands. Not generic advice — exact commands.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Headless browser module&lt;/strong&gt; — &lt;code&gt;HeadlessBrowser&lt;/code&gt; (Playwright) scans for DOM XSS, hidden endpoints, and client-side secrets. Catches things that static HTTP requests miss entirely.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Plugin system&lt;/strong&gt; — completely new. &lt;code&gt;plugins/base.py&lt;/code&gt; defines the &lt;code&gt;GhostScanPlugin&lt;/code&gt; base class with sandboxed loading, per-plugin timeouts, confidence thresholds, and finding caps. Three built-in plugins ship with the framework: &lt;code&gt;admin_finder.py&lt;/code&gt;, &lt;code&gt;xss_custom.py&lt;/code&gt;, and &lt;code&gt;sensitive_files.py&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Report generation&lt;/strong&gt; — &lt;code&gt;ReportingModule&lt;/code&gt; now produces proper PDF reports (via ReportLab), dark-theme HTML, structured JSON, and Markdown — all from the same normalised finding schema.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Web frontend + API&lt;/strong&gt; — the framework was wrapped in an API layer and a web interface to make it accessible beyond the command line. The deployment config (&lt;code&gt;staticwebapp.config.json&lt;/code&gt;) includes hardened security headers out of the box — it would be embarrassing for a security tool to ship without CSP, HSTS, and X-Frame-Options.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;CI/CD&lt;/strong&gt; — GitHub Actions runs syntax checks and integration tests across Python 3.10/3.11/3.12 on every push. The test suite validates scope enforcement (SSRF protection), WAF bypass profiles, and the intelligence correlation engine.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The transformation from "one guy's unfinished script" to a tested, documented, CI-backed open-source framework took months of evenings and weekends. The Finish-Up-A-Thon was the deadline I needed to actually ship it.&lt;/p&gt;




&lt;h2&gt;
  
  
  My Experience with GitHub Copilot
&lt;/h2&gt;

&lt;p&gt;GitHub Copilot was deeply involved in every phase of this project — not as a code generator I blindly accepted, but as a fast, context-aware collaborator that dramatically reduced the time between "I know what this should do" and "this actually works."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where Copilot helped the most:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Building the intelligence engine.&lt;/strong&gt; The correlation logic is the most complex part of GhostScan. Given a Redis port open on the internet, a login panel, a missing CSP header, and a JS secret — how do you automatically detect which combinations create compound CRITICAL risks? I described the desired behaviour in a comment and Copilot drafted the scoring matrix and multiplier logic. It wasn't perfect on the first attempt, but it gave me a structure I could reason about and refine, instead of staring at a blank file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The WAF bypass profiles.&lt;/strong&gt; Mapping 8 different WAF vendors to their known sqlmap tamper chains, encoding specifics, and appropriate timing delays is tedious research work. Copilot accelerated this significantly — I'd write the CloudFlare profile, and Copilot would suggest accurate completions for Akamai, F5, and Imperva based on the pattern it saw. I still validated every tamper chain against actual test environments, but the scaffolding was generated in minutes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Writing the plugin sandbox.&lt;/strong&gt; Building a plugin loader that isolates crashes, enforces timeouts, caps findings, and suppresses low-confidence results requires a lot of boilerplate threading and error-handling code. Copilot handled most of that correctly on the first pass, which meant I could focus on the plugin API design rather than &lt;code&gt;concurrent.futures&lt;/code&gt; plumbing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The reporting module.&lt;/strong&gt; Generating PDF reports with ReportLab is notoriously verbose. Copilot wrote most of the table formatting, colour mapping, and page layout code from a short description and the finding schema. I estimated that would have taken me two full evenings to write from scratch; with Copilot it took a few hours.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Test cases.&lt;/strong&gt; The CI integration tests — scope enforcement, WAF bypass validation, intelligence engine assertions — were mostly Copilot-generated from the function signatures and docstrings. It understood what the functions were supposed to do and wrote meaningful assertions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What Copilot didn't replace:&lt;/strong&gt; architectural decisions, security correctness, and tool integration logic. Every suggestion got reviewed, and anything touching security behaviour (scope enforcement, SSRF protection, WAF detection) was written and tested manually.&lt;/p&gt;

&lt;p&gt;The honest summary: without Copilot, GhostScan v3 would still be unfinished. With it, I shipped a tested, documented, CI-backed framework. That's the difference.&lt;/p&gt;




</description>
      <category>devchallenge</category>
      <category>opensource</category>
      <category>security</category>
      <category>showdev</category>
    </item>
    <item>
      <title>GhostScan v3.0 — From Closed-Source EXE to Open-Source Pentest Framework</title>
      <dc:creator>Rodrigo Furlaneti</dc:creator>
      <pubDate>Fri, 22 May 2026 11:40:50 +0000</pubDate>
      <link>https://dev.to/rodrigo_furlaneti_1b337c6/ghostscan-v30-from-closed-source-exe-to-open-source-pentest-framework-ljn</link>
      <guid>https://dev.to/rodrigo_furlaneti_1b337c6/ghostscan-v30-from-closed-source-exe-to-open-source-pentest-framework-ljn</guid>
      <description>&lt;h1&gt;
  
  
  GhostScan v3.0 — From Scattered Scripts to an Elite Open-Source Pentest Framework
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/github-2026-05-21"&gt;GitHub Finish-Up-A-Thon Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;




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

&lt;p&gt;&lt;strong&gt;GhostScan v3.0&lt;/strong&gt; is an elite, modular penetration testing framework for Kali Linux that brings together 53 security tools under a single, intelligent CLI — with correlation-aware scoring, WAF bypass profiles, adaptive workflows, and professional report generation.&lt;/p&gt;

&lt;p&gt;The philosophy behind GhostScan is simple but powerful: &lt;strong&gt;signal over noise&lt;/strong&gt;. Most security scanners dump 300+ raw findings and leave the tester to figure out what matters. GhostScan gives you &lt;strong&gt;10 findings you can act on today&lt;/strong&gt;, each ranked by a scoring formula that accounts for real-world impact, exploitability confidence, and business context:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;score = (impact × 0.6) + (confidence × 0.4)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What makes it different from a typical scanner wrapper:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Correlation engine&lt;/strong&gt; — automatically detects compound risks. A login panel + SQL injection isn't two MEDIUM findings. It's one CRITICAL: &lt;code&gt;SQLi on Auth Endpoint = Auth Bypass + Full DB Dump&lt;/code&gt;, scored at 9.8.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context multipliers&lt;/strong&gt; — payment paths, exposed databases, and authenticated endpoints automatically elevate severity based on business impact.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WAF bypass profiles&lt;/strong&gt; — auto-detects CloudFlare, Akamai, AWS WAF, F5, Imperva, ModSecurity, Wordfence, and Sucuri, then applies the right sqlmap tamper chain and timing delays.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Plugin system&lt;/strong&gt; — drop a &lt;code&gt;.py&lt;/code&gt; file into &lt;code&gt;plugins/&lt;/code&gt; and it loads automatically on the next scan. Plugins run sandboxed with timeout kill-switches so a broken plugin never stops the chain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Adaptive workflow engine&lt;/strong&gt; — after each scan, GhostScan generates exact next commands based on what was actually found, not a static checklist.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scan profiles&lt;/strong&gt; — &lt;code&gt;stealth&lt;/code&gt; (passive only, 2s rate, no probing), &lt;code&gt;standard&lt;/code&gt; (balanced), and &lt;code&gt;aggressive&lt;/code&gt; (all modules, 50 threads, large wordlists, full injection suite).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Report generation&lt;/strong&gt; — PDF, HTML, Markdown, and JSON out of the box.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CI/CD from day one&lt;/strong&gt; — GitHub Actions runs syntax checks and unit tests across Python 3.10, 3.11, and 3.12 on every push.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;⚠️ For authorized security testing only. Always obtain written permission before testing any system.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;GitHub repository:&lt;/strong&gt; &lt;a href="https://github.com/rodrigofurlaneti/scanghost" rel="noopener noreferrer"&gt;https://github.com/rodrigofurlaneti/scanghost&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Example scan output (correlation engine):&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;✓ Login panel at /wp-login.php (HTTP 200)
✓ SQL injection in ?search= (boolean-based)
✓ Content-Security-Policy missing
= 🔴 CRITICAL [9.8] SQLi on Auth Endpoint = Auth Bypass + DB Dump
  Attack: admin'-- → bypass auth → dump wp_users → crack hashes
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;✓ Redis on port 6379 (open to internet)
✓ No authentication (default config)
= 🔴 CRITICAL [9.6] Database Exposed Externally
  Attack: redis-cli → CONFIG SET → cron RCE
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Full scan, PDF report:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ghostscan &lt;span class="nt"&gt;-t&lt;/span&gt; your-authorized-target.com &lt;span class="nt"&gt;--all&lt;/span&gt; &lt;span class="nt"&gt;--report&lt;/span&gt; pdf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Stealth recon only:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ghostscan &lt;span class="nt"&gt;-t&lt;/span&gt; target.com &lt;span class="nt"&gt;--mode&lt;/span&gt; stealth &lt;span class="nt"&gt;--recon&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;WAF bypass + browser DOM XSS:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ghostscan &lt;span class="nt"&gt;-t&lt;/span&gt; target.com &lt;span class="nt"&gt;--web&lt;/span&gt; &lt;span class="nt"&gt;--waf-bypass&lt;/span&gt; &lt;span class="nt"&gt;--browser&lt;/span&gt; &lt;span class="nt"&gt;--screenshots&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  The Comeback Story
&lt;/h2&gt;

&lt;p&gt;This project started from a frustrating reality: penetration testing workflows are fragmented. You run nmap, then manually feed results into nikto, then into sqlmap, then into gobuster — each tool in its own terminal window, each output in its own format, and you're left manually correlating 300 raw findings to figure out what actually matters.&lt;/p&gt;

&lt;p&gt;I started GhostScan as a personal tool to fix that for myself. The first version was a single Python script that called tools sequentially and printed output to the terminal. It worked, but barely — one missing tool would crash the whole run, there was no scoring, no scope enforcement, and the "report" was a text dump.&lt;/p&gt;

&lt;p&gt;It sat unfinished for months. The core idea was solid, but it needed a lot more work before I'd share it with anyone. The Finish-Up-A-Thon was the push I needed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Before — what the project looked like when I picked it back up:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A single Python script that called tools sequentially&lt;/li&gt;
&lt;li&gt;No scoring or severity weighting — everything was "found" or "not found"&lt;/li&gt;
&lt;li&gt;No scope enforcement — it could happily scan out-of-scope hosts&lt;/li&gt;
&lt;li&gt;No WAF awareness — most active scans got blocked immediately&lt;/li&gt;
&lt;li&gt;Reports were raw terminal output dumped to a text file&lt;/li&gt;
&lt;li&gt;No plugin system, no extensibility&lt;/li&gt;
&lt;li&gt;No CI, no tests&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What I finished to get to v3:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Hard scope enforcement&lt;/strong&gt; — &lt;code&gt;ScopeEnforcer&lt;/code&gt; blocks out-of-scope requests and SSRF-prone IPs (&lt;code&gt;169.254.x.x&lt;/code&gt;, &lt;code&gt;10.x.x.x&lt;/code&gt; by default) before any tool even runs. This was the most important safety addition.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Safe parallel executor&lt;/strong&gt; — &lt;code&gt;SafeExecutor&lt;/code&gt; runs tools concurrently with per-tool timeouts, retry logic, and failure isolation. One broken tool (e.g. a segfaulting nuclei template) never stops the scan.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Intelligence &amp;amp; correlation engine&lt;/strong&gt; — &lt;code&gt;IntelligenceEngine&lt;/code&gt; cross-references all findings from all modules to detect compound attack paths. This was the hardest module to finish. The raw data comes in from recon, web, and vuln modules in different shapes; the engine normalises it, deduplicates it, applies context multipliers, ranks attack surface targets, and surfaces correlations.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;WAF bypass engine&lt;/strong&gt; — &lt;code&gt;WafBypass&lt;/code&gt; maps detected WAF vendors to specific sqlmap tamper scripts, encoding techniques, and rate delays. Previously the framework just got blocked and returned zero findings against WAF-protected targets.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Adaptive workflow engine&lt;/strong&gt; — &lt;code&gt;WorkflowEngine&lt;/code&gt; generates contextual next steps. If SQLi was found, it tells you exactly which sqlmap flags to run. If Redis is open, it gives you the specific redis-cli commands. Not generic advice — exact commands.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Headless browser module&lt;/strong&gt; — &lt;code&gt;HeadlessBrowser&lt;/code&gt; (Playwright) scans for DOM XSS, hidden endpoints, and client-side secrets. Catches things that static HTTP requests miss entirely.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Plugin system&lt;/strong&gt; — completely new. &lt;code&gt;plugins/base.py&lt;/code&gt; defines the &lt;code&gt;GhostScanPlugin&lt;/code&gt; base class with sandboxed loading, per-plugin timeouts, confidence thresholds, and finding caps. Three built-in plugins ship with the framework: &lt;code&gt;admin_finder.py&lt;/code&gt;, &lt;code&gt;xss_custom.py&lt;/code&gt;, and &lt;code&gt;sensitive_files.py&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Report generation&lt;/strong&gt; — &lt;code&gt;ReportingModule&lt;/code&gt; now produces proper PDF reports (via ReportLab), dark-theme HTML, structured JSON, and Markdown — all from the same normalised finding schema.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Web frontend + API&lt;/strong&gt; — the framework was wrapped in an API layer and a web interface to make it accessible beyond the command line. The deployment config (&lt;code&gt;staticwebapp.config.json&lt;/code&gt;) includes hardened security headers out of the box — it would be embarrassing for a security tool to ship without CSP, HSTS, and X-Frame-Options.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;CI/CD&lt;/strong&gt; — GitHub Actions runs syntax checks and integration tests across Python 3.10/3.11/3.12 on every push. The test suite validates scope enforcement (SSRF protection), WAF bypass profiles, and the intelligence correlation engine.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The transformation from "one guy's unfinished script" to a tested, documented, CI-backed open-source framework took months of evenings and weekends. The Finish-Up-A-Thon was the deadline I needed to actually ship it.&lt;/p&gt;




&lt;h2&gt;
  
  
  My Experience with GitHub Copilot
&lt;/h2&gt;

&lt;p&gt;GitHub Copilot was deeply involved in every phase of this project — not as a code generator I blindly accepted, but as a fast, context-aware collaborator that dramatically reduced the time between "I know what this should do" and "this actually works."&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where Copilot helped the most:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Building the intelligence engine.&lt;/strong&gt; The correlation logic is the most complex part of GhostScan. Given a Redis port open on the internet, a login panel, a missing CSP header, and a JS secret — how do you automatically detect which combinations create compound CRITICAL risks? I described the desired behaviour in a comment and Copilot drafted the scoring matrix and multiplier logic. It wasn't perfect on the first attempt, but it gave me a structure I could reason about and refine, instead of staring at a blank file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The WAF bypass profiles.&lt;/strong&gt; Mapping 8 different WAF vendors to their known sqlmap tamper chains, encoding specifics, and appropriate timing delays is tedious research work. Copilot accelerated this significantly — I'd write the CloudFlare profile, and Copilot would suggest accurate completions for Akamai, F5, and Imperva based on the pattern it saw. I still validated every tamper chain against actual test environments, but the scaffolding was generated in minutes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Writing the plugin sandbox.&lt;/strong&gt; Building a plugin loader that isolates crashes, enforces timeouts, caps findings, and suppresses low-confidence results requires a lot of boilerplate threading and error-handling code. Copilot handled most of that correctly on the first pass, which meant I could focus on the plugin API design rather than &lt;code&gt;concurrent.futures&lt;/code&gt; plumbing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The reporting module.&lt;/strong&gt; Generating PDF reports with ReportLab is notoriously verbose. Copilot wrote most of the table formatting, colour mapping, and page layout code from a short description and the finding schema. I estimated that would have taken me two full evenings to write from scratch; with Copilot it took a few hours.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Test cases.&lt;/strong&gt; The CI integration tests — scope enforcement, WAF bypass validation, intelligence engine assertions — were mostly Copilot-generated from the function signatures and docstrings. It understood what the functions were supposed to do and wrote meaningful assertions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What Copilot didn't replace:&lt;/strong&gt; architectural decisions, security correctness, and tool integration logic. Every suggestion got reviewed, and anything touching security behaviour (scope enforcement, SSRF protection, WAF detection) was written and tested manually.&lt;/p&gt;

&lt;p&gt;The honest summary: without Copilot, GhostScan v3 would still be unfinished. With it, I shipped a tested, documented, CI-backed framework. That's the difference.&lt;/p&gt;




</description>
      <category>devchallenge</category>
      <category>githubchallenge</category>
    </item>
  </channel>
</rss>
