<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Lumini Munasinghe on Medium]]></title>
        <description><![CDATA[Stories by Lumini Munasinghe on Medium]]></description>
        <link>https://medium.com/@luminimunasinghe260?source=rss-c91ef187b8bf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QcLc_f3HyV-RYEc8vh6M3g.png</url>
            <title>Stories by Lumini Munasinghe on Medium</title>
            <link>https://medium.com/@luminimunasinghe260?source=rss-c91ef187b8bf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 00:21:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@luminimunasinghe260/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building a URL Shortener App]]></title>
            <link>https://medium.com/@luminimunasinghe260/building-a-url-shortener-app-f7a77a3471ca?source=rss-c91ef187b8bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7a77a3471ca</guid>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[javascript-basics]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Lumini Munasinghe]]></dc:creator>
            <pubDate>Tue, 30 Jun 2026 06:13:42 GMT</pubDate>
            <atom:updated>2026-06-30T06:13:42.350Z</atom:updated>
            <content:encoded><![CDATA[<p>Building a URL shortener app was a great learning experience that helped me understand how different parts of a backend application work together.</p><p>I started by setting up the project structure and initializing a Git repository to track my progress. At the beginning, I used a simple JSON file as a temporary database to store URLs because it was easy to work with while learning the basics. Later, I migrated the project to MongoDB to gain experience with a real database.</p><p>Next, I added the MongoDB connection string to the .env file and created a config/db.js file to establish the database connection. After that, I wrote the basic server logic in server.js and tested it on localhost to make sure everything was working correctly.</p><p>Once the server was running, I created the Url.js model inside the models folder to define how URL data should be stored in the database. Then, I added the main application logic inside controllers/urlController.js, which handled tasks such as creating short URLs and retrieving the original URLs.</p><p>After implementing the controller logic, I connected everything using routes in routes/urlRoutes.js. These routes allowed the application to receive requests from users and process them correctly.</p><p>Finally, I ran the application using npm run dev and tested all the API endpoints with Postman. This project gave me practical experience with Express.js, MongoDB, routing, controllers, models, environment variables, and API testing. It also helped me understand how to build a backend application from scratch and organize its different components in a structured way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7a77a3471ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building StrixGuard: My Final Year Project on AI-Powered DDoS Detection]]></title>
            <link>https://medium.com/@luminimunasinghe260/building-strixguard-my-final-year-project-on-ai-powered-ddos-detection-4bd2db780088?source=rss-c91ef187b8bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bd2db780088</guid>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[random-forest]]></category>
            <category><![CDATA[ddos-attack]]></category>
            <category><![CDATA[research]]></category>
            <dc:creator><![CDATA[Lumini Munasinghe]]></dc:creator>
            <pubDate>Wed, 20 May 2026 11:04:55 GMT</pubDate>
            <atom:updated>2026-05-20T11:04:55.930Z</atom:updated>
            <content:encoded><![CDATA[<p>When I started my final year project, I knew I wanted to work on something related to cybersecurity and Artificial Intelligence.</p><p>I had seen many projects that focused on building websites or business systems, but I wanted to explore a problem that felt more technical and closer to real-world security challenges.</p><p>That is how StrixGuard started.</p><p>StrixGuard is an AI-powered DDoS detection system built using Machine Learning and Reinforcement Learning.</p><p>For anyone unfamiliar with the term, a DDoS (Distributed Denial of Service) attack happens when attackers flood a server or network with huge amounts of traffic until real users can no longer access it. These attacks can disrupt websites, online services, and entire networks.</p><p>At first, I assumed building a detection system would simply mean training a model on network traffic data and measuring accuracy.</p><p>I quickly realised it was not that simple.</p><p>Most existing DDoS detection systems have a few common problems. Many depend heavily on supervised learning, meaning they need large labelled datasets and often struggle when facing traffic patterns they have not seen before. Some systems also produce high false negatives-which means real attacks are missed.</p><p>In cybersecurity, that matters a lot.</p><p><em>A false alarm is inconvenient.</em></p><p><em>A missed attack can become a security breach.</em></p><p>This became the main problem I wanted to explore with StrixGuard.</p><p>Instead of relying on a single model, I built a <strong>hybrid</strong> system that combines Random Forest and Deep Q-Network Reinforcement Learning.</p><p>The idea behind this was actually quite simple.</p><p>Random Forest is very good at making stable and precise predictions when it feels confident. But sometimes network traffic becomes unclear or difficult to classify.</p><p>That is where the Reinforcement Learning agent comes in.</p><p>StrixGuard uses a <strong>confidence-based decision process.</strong> When the Random Forest model is confident enough, its prediction is used. When confidence drops below a defined threshold, the Deep Q-Network agent takes over and makes the decision.</p><p>This means the two models are not competing against each other.</p><p>They are working together.</p><p>That became the core novelty of the project - a confidence-weighted hybrid detection approach combining supervised learning precision with Reinforcement Learning adaptability. Similar research often compares models individually or uses traditional ensembles, but adaptive routing between Random Forest confidence and RL decision-making is less commonly explored in DDoS detection research. (<a href="https://www.nature.com/articles/s41598-025-18857-3?utm_source=chatgpt.com">Nature</a>)</p><p>Building this system involved much more than model training.</p><p>I worked with the CICDDoS2019 dataset containing millions of network traffic records and spent significant time preprocessing data, removing noisy samples, handling imbalance, and selecting the most meaningful features.</p><p>The backend was developed using FastAPI, while the frontend used React and TypeScript. I also integrated <strong>Live packet capture</strong> using pyshark so the system could analyse real network traffic rather than only static datasets.</p><p>Training the Reinforcement Learning agent was another challenge.</p><p>Unlike traditional Machine Learning models, RL does not simply learn from labelled examples. It learns through interaction and rewards. I built a <strong>custom Gymnasium environment</strong> where the DQN agent could learn network traffic classification behaviour over hundreds of thousands of training steps.</p><p>After evaluation on unseen test data, the ensemble achieved strong performance while maintaining the lowest false negative rate among the tested models.</p><p>That result mattered more to me than achieving the highest accuracy number.</p><p>Because the goal of StrixGuard was never just to score well in evaluation.</p><p>It was to build a detection system that thinks more carefully about uncertainty and avoids missing attacks whenever possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*svMgM53vx5S7U9Ff1ptGnw.png" /><figcaption>interface of strixGuard dashboard</figcaption></figure><p>StrixGuard is still evolving. There are improvements I want to explore next, including Docker deployment, better cloud integration, and stronger handling of previously unseen attack types.</p><p>But this project changed how I think about AI and cybersecurity.</p><p>I started wanting to build a Machine Learning model.</p><p>I ended up learning how difficult and interesting , real-world AI systems actually are.</p><p>StrixGuard was developed as my Final Year Project at IIT Sri Lanka in collaboration with the University of Westminster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UzigckbKdxrZLB5xwR78CQ.png" /><figcaption>Scaning live network data</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bd2db780088" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>