<?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 Sanialbhatti on Medium]]></title>
        <description><![CDATA[Stories by Sanialbhatti on Medium]]></description>
        <link>https://medium.com/@sanialbhatti?source=rss-b5f77ef22ab4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*JLIOe4Gvq0jUBk8s</url>
            <title>Stories by Sanialbhatti on Medium</title>
            <link>https://medium.com/@sanialbhatti?source=rss-b5f77ef22ab4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 19 May 2026 19:25:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sanialbhatti/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 CorpGuard & AuthLab: An Interactive Cybersecurity Learning Platform]]></title>
            <link>https://medium.com/@sanialbhatti/building-corpguard-authlab-an-interactive-cybersecurity-learning-platform-c8d38ba4d431?source=rss-b5f77ef22ab4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8d38ba4d431</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Sanialbhatti]]></dc:creator>
            <pubDate>Sat, 16 May 2026 06:38:59 GMT</pubDate>
            <atom:updated>2026-05-16T06:38:59.821Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s digital world, cybersecurity is more important than ever. As students working on our Information Security project, we wanted to build something beyond a typical academic assignment – something practical, interactive, and educational.</p><p>This idea led us to create CorpGuard &amp; AuthLab, an interactive cybersecurity simulation platform designed to help users understand common web security vulnerabilities and their solutions through hands-on experience.</p><p>Developed by M. Alyan Tariq, Shahmeer Haider, and Sanial Bhatti, this project bridges the gap between secure software development and offensive security learning.</p><p>Project Idea</p><p>Learning cybersecurity through theory can be difficult, especially when trying to understand how real attacks happen. Our goal was to build a platform where users could switch between two modes:</p><p>Vulnerable Mode – to see how security flaws can be exploited.</p><p>Secure Mode – to understand how proper security measures prevent those attacks.</p><p>This side-by-side comparison makes it easier to learn both the attacker’s mindset and the developer’s responsibility.</p><p>What CorpGuard Demonstrates</p><p>CorpGuard is a web-based employee portal simulation that showcases major web security vulnerabilities, including:</p><ul><li>SQL Injection (SQLi): Demonstrates how insecure input handling can allow unauthorized login access.</li><li>* Broken Access Control (IDOR): Shows how modifying URL parameters can lead to privilege escalation.</li><li>* Cross-Site Scripting (XSS): Highlights the dangers of malicious script injection.</li><li>* Cross-Site Request Forgery (CSRF): Simulates unauthorized actions performed without user consent.</li></ul><p>For each vulnerability, users can instantly switch to secure mode and observe how proper protections block the attack.</p><p>AuthLab: Advanced Security Features</p><p>To expand the learning experience, we developed AuthLab, an advanced module focused on authentication and modern security concepts.</p><p>Its key features include:</p><ul><li>Real-Time Password Hashing: Demonstrates how passwords are securely converted into cryptographic hashes using the Web Crypto API.</li><li>* Digital Signatures (ECDSA): Shows how message tampering can be detected through signature verification.</li><li>* 2FA Simulation: Compares vulnerable OTP validation with secure two-factor authentication.</li><li>* AI-Based Anomaly Detection: Simulates intelligent login monitoring using geo-location and behavior analysis.</li></ul><p>Technologies Used</p><p>We built the entire project using lightweight and efficient technologies, including:</p><ul><li>Vanilla JavaScript (ES6+)</li><li>* Web Crypto API</li><li>* Custom CSS3</li><li>* Font Awesome Icons</li><li>* Google Fonts</li><li>* Simulated backend responses using Promises and setTimeout</li></ul><p>Our goal was to keep the system simple, transparent, and easy to understand.</p><p>Challenges and Learning</p><p>One of the biggest challenges was simulating realistic cybersecurity attacks without a full backend environment. Implementing browser-based cryptography and designing an intuitive user experience also pushed us to think critically.</p><p>Through this project, we learned that cybersecurity is not just about preventing attacks – it is about understanding vulnerabilities, thinking like an attacker, and building systems that are secure by design.</p><p>Final Thoughts</p><p>CorpGuard &amp; AuthLab is more than just a university project. It is a practical educational tool designed to make cybersecurity learning interactive and engaging.</p><p>By allowing users to explore vulnerabilities and immediately see their solutions, the platform transforms complex security concepts into real-world understanding.</p><p>We are proud of what we built and hope to expand this project further with features like cloud security simulations, API security testing, and advanced threat detection.</p><p>Developed by:</p><p>M. Alyan Tariq</p><p>Shahmeer Haider</p><p>Sanial Bhatti</p><p>Project:</p><p>CorpGuard &amp; AuthLab – An Interactive Cybersecurity Simulation &amp; Educational Ecosystem</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*F2H3NhRmbOFRZpnLf9yc_Q@2x.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8d38ba4d431" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building the NU Information Exchange System: A TCP + UDP Multi-Campus Communication Project]]></title>
            <link>https://medium.com/@sanialbhatti/building-the-nu-information-exchange-system-a-tcp-udp-multi-campus-communication-project-f37d14810e28?source=rss-b5f77ef22ab4------2</link>
            <guid isPermaLink="false">https://medium.com/p/f37d14810e28</guid>
            <dc:creator><![CDATA[Sanialbhatti]]></dc:creator>
            <pubDate>Sun, 07 Dec 2025 18:17:35 GMT</pubDate>
            <atom:updated>2025-12-07T18:17:35.840Z</atom:updated>
            <content:encoded><![CDATA[<p>For our Computer Networks semester project, we developed the <strong>NU Information Exchange System</strong>, a hybrid TCP/UDP communication platform that simulates real-time messaging between multiple FAST-NUCES campuses. Our team designed both the <strong>application-layer communication system</strong> and the <strong>network-layer WAN topology</strong> to closely mirror how real universities and distributed organizations exchange data.</p><p>At the core of the system is a <strong>Central Server</strong>, which represents the Islamabad campus. The server manages authentication, routes messages, tracks online campuses through heartbeats, and supports admin-controlled broadcast announcements. Every other campus — Lahore, Karachi, Peshawar, CFD, and Multan — connects to the server using a dedicated <strong>Campus Client</strong> program.</p><p>We adopted a <strong>hybrid protocol design</strong>:</p><ul><li><strong>TCP</strong> handles reliable tasks such as authentication and inter-campus messaging.</li><li><strong>UDP</strong> handles lightweight tasks such as periodic heartbeats and system-wide broadcasts.</li></ul><p>This mirrors real-world networking: TCP ensures message reliability, while UDP supports fast, connectionless updates.</p><p>Concurrency was one of the most important parts of the project. The server uses <strong>std::thread</strong> to create a dedicated thread for every connected campus, enabling simultaneous messaging without blocking. Additional threads handle heartbeat monitoring and broadcast operations. On the client side, separate threads are responsible for receiving TCP messages, sending UDP heartbeats every 10 seconds, and listening for broadcast announcements. We protected shared structures like the connected campus list using mutexes to avoid race conditions.</p><p>A key challenge we faced was message routing when a campus was offline. Initially, messages were not being delivered because the recipient campus was not yet authenticated. We solved this by maintaining a map of online campuses, updated through UDP heartbeats, and displaying proper messages to users when a campus was offline. We also had issues with thread synchronization and message buffering, which we fixed by implementing structured message formats and careful locking.</p><p>Alongside the application, we built a complete WAN model in <strong>Cisco Packet Tracer</strong>, using a <strong>hub-and-spoke topology</strong> with Islamabad as the central router. Each campus had its own LAN, IP addressing scheme, and a router connected back to the hub. We used <strong>RIPv2 routing</strong> for dynamic connectivity and implemented VLANs in selected campuses for departmental segmentation. The network successfully supported full end-to-end reachability, demonstrated through ping tests and packet tracing.</p><p>This project gave us hands-on experience with multi-threaded applications, transport protocols, and network design. It helped us understand how real distributed systems function — combining both application logic and underlying network infrastructure.</p><p>Full details, code, and diagrams are available in our GitHub repository :<a href="https://github.com/sanialbhatti/NU-CN-Messaging-System">https://github.com/sanialbhatti/NU-CN-Messaging-System</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f37d14810e28" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>