<?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 Barbaros Emre Alagöz on Medium]]></title>
        <description><![CDATA[Stories by Barbaros Emre Alagöz on Medium]]></description>
        <link>https://medium.com/@barbarossa.alagoz?source=rss-e775ad03ac4a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*K6oYSl3cPQRL6HWS</url>
            <title>Stories by Barbaros Emre Alagöz on Medium</title>
            <link>https://medium.com/@barbarossa.alagoz?source=rss-e775ad03ac4a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 07:26:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@barbarossa.alagoz/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[Shannon and the Rise of “Proof-by-Exploitation” AI Pentesting]]></title>
            <link>https://medium.com/@barbarossa.alagoz/shannon-and-the-rise-of-proof-by-exploitation-ai-pentesting-67b0aadb2c49?source=rss-e775ad03ac4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/67b0aadb2c49</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Barbaros Emre Alagöz]]></dc:creator>
            <pubDate>Wed, 17 Dec 2025 01:06:39 GMT</pubDate>
            <atom:updated>2025-12-17T01:06:39.680Z</atom:updated>
            <content:encoded><![CDATA[<h3>An operator’s take from a .NET-to-Cybersecurity journey: why autonomous pentest agents feel inevitable, where they shine, where they can mislead, and how to use them responsibly.</h3><p>────────────────────────────────────────</p><p><em>TL;DR<br>Shannon is an AI pentesting agent that tries to confirm vulnerabilities by actually exploiting them, not just flagging “possible” issues. That’s exciting because it can cut noise and help teams catch real problems faster — before release — especially when you’re shipping frequently. But benchmarks aren’t the real world, and “not exploited” doesn’t always mean “not risky.” The big rule: run it only in safe environments (staging/sandbox), with written permission and human verification. Used responsibly, tools like this won’t replace security people — they’ll make them faster and more strategic.</em></p><p>────────────────────────────────────────</p><p>I’m Barbaros Emre Alagöz — a founder building in the “human layer” of security (awareness, phishing simulation, measurable risk) while also sharpening my technical cybersecurity skills. I come from a software background (especially .NET), and lately I’ve been living in the world of networks, policies, and lab setups (Fortinet rules, VM environments, and the daily reality of “security is never just a tool”).</p><p>That’s why a project like Shannon caught my attention.</p><p>Shannon (by Keygraph) is presented as a fully autonomous AI pentesting agent for web apps. But the interesting part isn’t the buzzwords — it’s the philosophy: instead of generating endless “potential issues,” Shannon’s goal is to produce evidence that a vulnerability is actually exploitable.</p><p>In other words: “Proof-by-exploitation.”</p><p>This article is my attempt to unpack what that really means, why it matters, and how to think about it if you’re building software, shipping fast, or learning AppSec like I am.</p><p>────────────────────────────────────────</p><p><strong>1) The problem Shannon is trying to solve: speed mismatch</strong></p><p>Modern teams ship constantly.<br>Security assessments often happen occasionally.</p><p>That mismatch creates a dangerous gap: vulnerabilities can sit in production for weeks or months simply because testing cadence can’t keep up with delivery cadence.</p><p>And if we’re honest, a lot of “security tooling” today fails in a predictable way:<br>- Too many alerts<br>- Too many false positives<br>- Too much time spent proving what is real</p><p>So when a tool claims:<br>“I will only report what I can actually exploit and reproduce”<br>…that naturally gets attention.</p><p>────────────────────────────────────────</p><p><strong>2) What Shannon is (conceptually), in plain language</strong></p><p>Shannon is not positioned as “just a scanner.”<br>The repo describes it as an autonomous pentesting agent that:<br>- Analyzes your source code (white-box)<br>- Maps likely attack paths<br>- Then uses a built-in browser + tooling to attempt real exploitation<br>- Produces pentest-style reporting with reproducible proof-of-concepts (PoCs)</p><p>The key promise: fewer “maybe” findings, more “here’s what I did, here’s the impact, here’s how to reproduce it.”</p><p>That framing matters because it’s not just automation — it’s automation that tries to end the debate.</p><p>────────────────────────────────────────</p><p><strong>3) Why “No exploit, no report” is a big deal (and also a trap)</strong></p><p>The good side:<br>- AppSec teams can waste days triaging noise.<br>- Developers lose trust in security results when false positives dominate.<br>- A tool that consistently outputs verified, reproducible findings could become a real force multiplier.</p><p>The risk side:<br>- “Not exploitable” does NOT always mean “not risky.”<br>Some issues are:<br>- Environment-dependent<br>- Exploitable only with specific privileges<br>- Multi-step chains<br>- Time-based or user-interaction based<br>- Blocked by constraints in the test setup, not blocked in reality</p><p>So I treat “proof-by-exploitation” as a strong filter, not a complete truth machine.</p><p>It’s powerful when used correctly:<br>- It reduces noise.<br>- It accelerates validation.<br>- It can turn security testing into something closer to continuous.</p><p>But it can also hide classes of risk that require deeper human reasoning or more realistic environments.</p><p>────────────────────────────────────────</p><p><strong>4) About the “96.15%” performance claim (and what it should NOT mean)</strong></p><p>You may have seen posts claiming Shannon achieved ~96% success on the XBOW benchmark.</p><p>Here’s the nuance:<br>XBOW provides a public benchmark suite designed to evaluate web offensive security tools across a set of challenges (104 benchmarks). Some teams also publish “cleaned / hint-free” versions to reduce accidental shortcutting via hints.</p><p>This is useful — benchmarks matter.<br>But it’s also not the same as “real production.”</p><p>Real environments introduce:<br>- Authentication complexity (SSO, MFA, device checks)<br>- Rate limits<br>- WAF behaviors<br>- Monitoring and response<br>- Business logic that doesn’t look like a neat challenge<br>- Permissions and data constraints that change exploitability</p><p>So benchmark success is a signal: “this approach can work.”<br>It is not a guarantee: “this will dominate every real-world pentest.”</p><p>In my view, the correct interpretation is:<br>Autonomous agents are getting good enough that ignoring them is a mistake.</p><p>────────────────────────────────────────</p><p><strong>5) The most important part: safety, ethics, and why the warnings matter</strong></p><p>Shannon’s own disclaimers emphasize something many people skip:<br>This is not a passive scanner.</p><p>An exploitation-driven agent can be mutative:<br>- It may change data<br>- Create accounts<br>- Trigger side effects<br>- Break workflows<br>- Stress systems in unexpected ways</p><p>So the only responsible posture is:<br>- Never run it on production systems<br>- Use staging/sandbox/local environments<br>- Use test accounts<br>- Use explicit written authorization<br>- Expect human oversight and verification</p><p>As a founder building a security product, I’m sensitive to this point:<br>Tools that “prove” vulnerabilities by exploiting them can create real harm if misused, even accidentally.</p><p>Ethical use is not optional. It’s the baseline.</p><p>────────────────────────────────────────</p><p><strong>6) Where I think tools like Shannon fit best (practical operator view)</strong></p><p>If I had to describe the best use-case in one sentence:<br>Pre-release security validation for teams that ship fast.</p><p>More concretely:<br>A) Staging / release candidate checks<br>Run the agent against a release candidate with test data and controlled accounts.<br>If it produces reproducible PoCs, you have immediate, actionable evidence.</p><p>B) Human time multiplier<br>Let the agent do the repetitive grind: route enumeration, flow exploration, basic hypothesis testing.<br>Then have a security engineer / pentester validate impact, scope, and remediation strategy.</p><p>C) Regression confirmation<br>After fixing a bug, re-run to confirm “actually fixed,” not just “looks fixed.”</p><p>This is how AI agents become part of DevSecOps: not replacing humans, but compressing cycles.</p><p>────────────────────────────────────────</p><p><strong>7) Does this replace pentesters?</strong></p><p>My honest take:<br>Not yet — but it does change the job.</p><p>I don’t see “pentester disappears.”<br>I see “pentester evolves.”</p><p>Humans will increasingly focus on:<br>- Scoping and constraints<br>- Modeling business logic abuse<br>- Threat modeling<br>- Chaining and creative exploitation<br>- Verification under realistic conditions<br>- Communication: turning findings into organizational change</p><p>AI agents will increasingly handle:<br>- Breadth<br>- Speed<br>- Repetition<br>- Automated evidence generation</p><p>So the role becomes:<br>Pentester as orchestrator + validator + communicator.</p><p>And that’s not a downgrade.<br>That’s a more strategic version of the job.</p><p>────────────────────────────────────────</p><p><strong>8) Why this matters to me (and to Edunexia’s mission)</strong></p><p>Edunexia focuses on the human layer of security: awareness, behavior, phishing readiness, measurable risk.</p><p>But the deeper story is the same:<br>Organizations don’t fail because they don’t have tools.<br>They fail because they can’t keep pace — pace of threats, pace of change, pace of development.</p><p>Autonomous security agents are a response to that pace problem.</p><p>The question isn’t “will AI take over pentesting?”<br>The question is:<br>Can we build security practices that move at the speed of modern software?</p><p>Shannon is one strong signal that the answer is: yes — if we do it responsibly.</p><p>────────────────────────────────────────</p><p><strong>Closing thoughts</strong></p><p>I’m excited about autonomous pentesting agents because they point toward continuous security testing that doesn’t rely on perfect timing, perfect budgets, or perfect scheduling.</p><p>But I’m also cautious.<br>Because exploitation-driven tools must be:<br>- Scoped correctly<br>- Used ethically<br>- Evaluated honestly (benchmarks are helpful, not sacred)<br>- Paired with human judgment</p><p>If we get that balance right, we don’t get “AI replacing pentesters.”<br>We get faster software, safer releases, and security teams that spend more time on real risk instead of noisy triage.</p><p>────────────────────────────────────────</p><p><strong>References / Links (copy &amp; share)</strong></p><p>Shannon (GitHub):<br><a href="https://github.com/KeygraphHQ/shannon">https://github.com/KeygraphHQ/shannon</a></p><p>XBOW validation benchmarks (GitHub):<br><a href="https://github.com/xbow-engineering/validation-benchmarks">https://github.com/xbow-engineering/validation-benchmarks</a></p><p>XBOW blog post (benchmarks overview):<br><a href="https://xbow.com/blog/benchmarks">https://xbow.com/blog/benchmarks</a></p><p>Keygraph cleaned / hint-free XBOW suite:<br><a href="https://github.com/KeygraphHQ/xbow-validation-benchmarks">https://github.com/KeygraphHQ/xbow-validation-benchmarks</a></p><p>Recent coverage (quick overview):<br><a href="https://cybersecuritynews.com/shannon-ai-pentesting-tool/">https://cybersecuritynews.com/shannon-ai-pentesting-tool/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67b0aadb2c49" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NIST’s “QPV” Mindset: Turning Post-Quantum Risk Into Measurable Readiness]]></title>
            <link>https://medium.com/@barbarossa.alagoz/nists-qpv-mindset-turning-post-quantum-risk-into-measurable-readiness-ee16f06e7013?source=rss-e775ad03ac4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee16f06e7013</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Barbaros Emre Alagöz]]></dc:creator>
            <pubDate>Fri, 12 Dec 2025 09:00:37 GMT</pubDate>
            <atom:updated>2025-12-12T09:00:37.681Z</atom:updated>
            <content:encoded><![CDATA[<p>Quantum computing is often discussed as a “future problem.” But from a security perspective, the real risk is already present today: we’re making long-term cryptographic decisions (certificates, keys, vendor choices, archive formats) that may still be in place when quantum capabilities become practical. That’s why I like to think about NIST’s posture in this area as a <strong>QPV mindset</strong>: <strong>Quantify → Prioritize → Verify</strong>. Not as hype, but as an operational approach to move from “we should be ready someday” to “we can prove our readiness.”</p><h3>QPV in one sentence: Quantify, Prioritize, Verify</h3><p><strong>Quantify:</strong> What crypto do we actually use, where, and for how long do we need it to remain secure?<br> <strong>Prioritize:</strong> Which systems are the highest risk due to long data lifetimes, exposed interfaces, or weak crypto agility?<br> <strong>Verify:</strong> Can we demonstrate progress with measurable controls, tests, and migration evidence — not just a policy slide?</p><p>This is the difference between “we follow NIST” and “we can show what that means in practice.”</p><h3>1) Quantify: Build a real cryptographic inventory (not a spreadsheet fantasy)</h3><p>Most organizations underestimate how widely cryptography is embedded across systems. It’s not just “TLS on the website.” It’s:</p><ul><li>Certificates across services, APIs, gateways, and internal mesh</li><li>Code libraries (signatures, JWT, SSO flows)</li><li>Hardware dependencies (HSMs, TPMs, smart cards)</li><li>Vendor products (VPNs, firewalls, EDR, IAM, email security)</li><li>Long-term archives (backups, legal docs, medical/financial records)</li></ul><p>A strong “Quantify” step produces a <strong>crypto inventory you can act on</strong>, including:</p><ul><li>Where public-key crypto is used</li><li>Key sizes/algorithms (where known)</li><li>Ownership (team/vendor)</li><li>Data lifetime (days vs. years)</li><li>Rotation capability (how fast can we change certs/keys?)</li></ul><h3>2) Prioritize: Post-quantum readiness is a risk management problem</h3><p>Not everything needs to migrate at once. The systems that usually rise to the top are:</p><ul><li>Anything protecting <strong>long-lived sensitive data</strong></li><li>External-facing endpoints that could be targeted at scale</li><li>Identity and trust anchors: <strong>PKI, SSO, signing pipelines</strong></li><li>Systems with hard vendor lock-in or hardware constraints</li><li>Apps that can’t rotate keys/certs quickly (low crypto agility)</li></ul><p>A practical prioritization model looks like:</p><ul><li><strong>Impact:</strong> If compromised later, what’s the damage?</li><li><strong>Exposure:</strong> How accessible is it to attackers?</li><li><strong>Lifetime:</strong> How long must confidentiality/integrity hold?</li><li><strong>Agility:</strong> How quickly can we swap algorithms or libraries?</li></ul><p>The output here should be a <strong>migration queue</strong>, not just “awareness.”</p><h3>3) Verify: Readiness must be provable, not just declared</h3><p>This is where many programs fail — because they stop at “policy” and never get to evidence.</p><p><strong>Verification examples you can measure:</strong></p><ul><li>% of critical systems with an identified crypto owner</li><li>Time to rotate certificates across the fleet</li><li>Number of apps that support crypto-agile configuration (no hard-coded algorithms)</li><li>Vendor readiness status (confirmed roadmap vs. vague promises)</li><li>Pilot results: what broke, what worked, what needs refactoring</li><li>Incident playbooks updated to include crypto migration procedures</li></ul><p><strong>A simple QPV scorecard</strong> (internal, lightweight) can be:</p><ul><li>Inventory coverage (0–100%)</li><li>Agility score (0–100%)</li><li>High-risk system readiness (count + trend)</li><li>Vendor risk (red/amber/green)</li><li>Evidence produced (tests, configs, change logs)</li></ul><h3>A 30–60–90 day plan (if you want momentum fast)</h3><p><strong>First 30 days</strong></p><ul><li>Build the initial crypto inventory (top 20 systems)</li><li>Identify “long-lived data” owners and retention requirements</li><li>Define what “crypto agility” means for your org (minimum standards)</li></ul><p><strong>Days 31–60</strong></p><ul><li>Create the migration prioritization queue</li><li>Start vendor conversations with a written questionnaire</li><li>Run a small pilot in a non-critical environment (to expose breakpoints)</li></ul><p><strong>Days 61–90</strong></p><ul><li>Implement agility improvements (configuration, rotation automation, library upgrades)</li><li>Establish a recurring dashboard review (monthly)</li><li>Document evidence: what changed, what improved, what’s next</li></ul><h3>Why this matters for Awareness &amp; Training too</h3><p>Post-quantum readiness is not only a cryptography story — it’s also a <strong>human and organizational capability story</strong>: decision-making, procurement, engineering practices, and operational discipline. The best technical plan still fails if teams don’t understand why the change is necessary, what “agility” means, and how to avoid future lock-in.</p><p>That’s also why I’m building Edunexia around the idea that <strong>security awareness should be threat-aligned and measurable</strong> — not checkbox training.</p><h3>Closing</h3><p>If your organization wants to be “NIST-aligned” for the quantum era, treat readiness as a <strong>QPV loop</strong>:<br> <strong>Quantify what you have → Prioritize what matters → Verify progress with evidence.</strong></p><p>If you want, share what you mean by “QPV” (a link or the exact NIST reference you saw). I can instantly tailor this article to the <strong>exact NIST definition</strong> and add the right terminology and structure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee16f06e7013" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Diagrams to Packets: Building My First FortiGate Lab as a New Defender]]></title>
            <link>https://medium.com/@barbarossa.alagoz/from-diagrams-to-packets-building-my-first-fortigate-lab-as-a-new-defender-8bb5d6c880ed?source=rss-e775ad03ac4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8bb5d6c880ed</guid>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Barbaros Emre Alagöz]]></dc:creator>
            <pubDate>Mon, 08 Dec 2025 00:14:15 GMT</pubDate>
            <atom:updated>2025-12-08T00:14:15.443Z</atom:updated>
            <content:encoded><![CDATA[<p>In my previous article, <strong>“From Code to Defense: My First Steps into Cybersecurity as a .NET/Java Developer,”</strong> I wrote about concepts: risk, the CIA triad, OWASP, secure coding habits, and how a developer’s mindset changes when you start thinking like a defender.</p><p>This week, in my Cybersecurity Bootcamp, that theory finally turned into <strong>actual packets</strong>.</p><p>For the first time, I sat in front of a <strong>FortiGate firewall</strong>, created rules, watched them get <strong>“hit”</strong> by real traffic, and saw a Windows machine either reach the internet… or get silently blocked because of something I configured (or misconfigured 😄).</p><p>This article is a reflection of that lab: what we built, what I learned, and how it connects back to the security foundations I wrote about earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1eoadbWSbJ4ImJJ4XoI_cA.png" /><figcaption>A Scheme of what I worked on in my last lab study.</figcaption></figure><h3>1. Turning a Laptop into a Mini Corporate Network</h3><p>The teacher asked us to simulate a very small company network:</p><ul><li>A <strong>FortiGate VM</strong> acting as the firewall/router</li><li>Two <strong>Windows machines</strong> behind it (our “LAN clients”)</li><li>An <strong>Internet/WAN side</strong> that would give us external connectivity</li></ul><p>We used <strong>VMware</strong> to host all of this on a single physical laptop. That alone was a mindset shift:</p><blockquote><em>Instead of “I have a laptop”, I now think “I have a tiny data center living inside my laptop.”</em></blockquote><p>We wired the virtual topology like this (simplified):</p><ul><li>FortiGate <strong>port1</strong> → WAN / Internet</li><li>FortiGate <strong>port2</strong> → internal LAN (192.168.x.x)</li><li>Windows VM #1 and VM #2 plugged into this LAN</li></ul><p>Just by doing this, several concepts from the previous article became more concrete:</p><ul><li><strong>Assets</strong>: now I can literally point and say “these Windows machines and their traffic are assets”.</li><li><strong>Threats</strong>: anything coming from the WAN side or even from another compromised machine in the LAN.</li><li><strong>Controls</strong>: FortiGate policies are not just buttons — they are concrete implementations of risk management.</li></ul><h3>2. Making the LAN Talk: Basic Policy and NAT</h3><p>The first practical goal was simple:</p><blockquote><em>“Clients in the LAN should be able to reach the internet.”</em></blockquote><p>To do that, we had to:</p><ol><li>Give the LAN interface (e.g. port2) an IP and subnet</li><li>Enable <strong>DHCP</strong> on that interface so Windows clients get an address</li><li>Create a <strong>firewall policy</strong>:</li></ol><ul><li><strong>Source</strong>: LAN subnet</li><li><strong>Destination</strong>: all (or internet)</li><li><strong>Action</strong>: Accept</li><li><strong>NAT</strong>: Enabled (so traffic is translated to the FortiGate’s WAN IP)</li></ul><p>The moment I saw my Windows VM get an IP like 192.168.10.x, then successfully ping 8.8.8.8 and open a website, something clicked:</p><p>All the abstract talk about “north-south traffic”, “edge security” and “controlled egress” turned into a very visual path:</p><blockquote><em>Windows VM → LAN interface → policy → NAT → WAN → internet.</em></blockquote><p>I wasn’t just coding anymore. I was <strong>shaping how packets are allowed to exist</strong>.</p><h3>3. Rule Hits: Watching Policies Come Alive</h3><p>The concept of <strong>“hit counts”</strong> was a big part of today’s lesson.</p><p>Every policy in FortiGate shows:</p><ul><li>How many times it was matched</li><li>Whether traffic was allowed or denied</li><li>Sometimes even which source/destination pairs are most active</li></ul><p>We intentionally played with this:</p><ul><li>Created a general “LAN to Internet” rule</li><li>Added a more specific rule above it (for example, allowing or denying a particular host or subnet)</li><li>Generated traffic from our Windows machines</li><li>Then inspected which rule got the hits</li></ul><p>This is where I really understood:</p><ol><li><strong>Rule order matters.</strong><br> FortiGate evaluates from top to bottom; the <strong>first matching rule wins</strong>.</li><li><strong>Visibility matters.</strong><br> Without hit counts and logs, the firewall feels like “magic” or “random blocking”. With them, you can reason about behavior: <em>“Oh, this traffic is matching policy #3, not policy #5.”</em></li></ol><p>From a QA / test-automation perspective, this felt very natural:</p><ul><li>A firewall rule is like an <strong>if/else chain for packets</strong>.</li><li>Hit counts and logs are like <strong>test coverage and assertions</strong>.</li></ul><h3>4. Creating Users and Thinking Beyond IPs</h3><p>Once basic connectivity was working, we moved on to <strong>users</strong>.</p><p>We created new <strong>FortiGate user accounts</strong> and explored how policies can be written not only around <strong>IP addresses</strong>, but also around <strong>identity</strong>.</p><p>This connects directly to the concepts from my previous article:</p><ul><li><strong>Authentication (AuthN)</strong> — Who are you?</li><li><strong>Authorization (AuthZ)</strong> — What are you allowed to do?</li></ul><p>In code, I usually think:</p><pre>[Authorize(Roles = &quot;Admin&quot;)]<br>public IActionResult DeleteUser(int id) { ... }</pre><p>On FortiGate, the same thinking can become:</p><ul><li>Users in group <strong>“Finance”</strong> may reach certain destinations (e.g., bank sites, ERP).</li><li>Guests may only reach HTTP/HTTPS and maybe nothing internal.</li></ul><p>The firewall becomes an <strong>enforcer of business rules</strong>, not just a packet filter.</p><h3>5. Connecting This Lab Back to Security Principles</h3><p>What I liked about today’s lab is how strongly it tied back to the foundations I wrote about before.</p><h3>5.1 CIA Triad in the Lab</h3><ul><li><strong>Confidentiality</strong><br> By restricting which machines and users can reach which destinations, we protect sensitive internal systems from being exposed.</li><li><strong>Integrity</strong><br> Being able to control and log traffic gives us a way to detect or prevent unauthorized modifications (e.g., blocking strange outbound connections to suspicious IPs).</li><li><strong>Availability</strong><br> If we misconfigure rules, we can easily cause self-inflicted denial of service. Seeing <strong>“no internet”</strong> in the Windows VM because of a wrong rule is a small but memorable lesson in availability.</li></ul><h3>5.2 Least Privilege and Segmentation</h3><p>Previously I thought about least privilege mostly in terms of:</p><ul><li>DB users (only needed permissions)</li><li>Application roles and claims</li></ul><p>Now I can see it in <strong>network form</strong>:</p><ul><li>Only certain subnets should reach the admin interface.</li><li>Only specific hosts should be allowed through certain ports.</li><li>Rules should be as tight as possible: right <strong>source</strong>, right <strong>destination</strong>, right <strong>service</strong>.</li></ul><p>Segmentation suddenly feels less like an architecture diagram and more like something I can touch: VLANs, interfaces, and policies.</p><h3>6. Developer Eyes on a Firewall</h3><p>Coming from .NET and testing, I naturally looked at FortiGate with some “developer lenses”:</p><h3>6.1 Policies as Code Paths</h3><ul><li>Each policy is essentially an <strong>if-condition</strong> for traffic.</li><li>The order of policies is similar to how we structure <strong>pattern matching</strong> or <strong>middleware pipelines</strong>.</li><li>Logs + hit counts act as “runtime traces” to debug behavior.</li></ul><p>This makes me think about the possibility of:</p><ul><li><strong>Automated tests for firewall configs</strong><br> — e.g., “Given source X and destination Y over port Z, the expected policy is ABC and the action is DENY.”</li><li><strong>Version controlling firewall configuration</strong><br> — treating it similarly to application config: changes are reviewed, tested, and rolled out carefully.</li></ul><h3>6.2 Error Cases Are as Important as Happy Paths</h3><p>When a Windows VM couldn’t reach the internet, we had to investigate:</p><ul><li>Does it have a correct IP from DHCP?</li><li>Which policy, if any, is matching the traffic?</li><li>Is NAT enabled?</li><li>Is DNS working?</li></ul><p>This mirrors how we troubleshoot broken APIs:</p><ul><li>Is routing correct?</li><li>Is authentication failing?</li><li>Are we sending the wrong headers?</li></ul><p>The key lesson: <strong>good defenders debug networks the way good developers debug code.</strong></p><h3>7. Where This Fits on My Cybersecurity Roadmap</h3><p>In my roadmap from the previous article, I had three phases:</p><ol><li><strong>Foundations</strong> — networking, Linux, OWASP, crypto basics</li><li><strong>Developer security</strong> — secure coding in .NET/Java, auth, input validation</li><li><strong>Practical labs &amp; specialization</strong></li></ol><p>Today’s FortiGate + VMware lab clearly belongs to Phase 3, but it feeds back into the first two:</p><ul><li>Networking concepts (ports, subnets, NAT) are no longer just diagrams; I see them working.</li><li>Risk and least privilege are no longer slogans; I implement them in policies.</li><li>My existing developer and testing skills give me a structured way to reason about firewall behavior.</li></ul><h3>8. What I Want to Explore Next</h3><p>After this lab, a few “next steps” are already on my mind:</p><ul><li><strong>Automating tests for firewall rules</strong><br> Writing small scripts or tools that send controlled traffic and verify which policy is hit.</li><li><strong>Combining AppSec and NetSec</strong><br> For example, putting a deliberately vulnerable web app behind the FortiGate and observing:</li></ul><ol><li>What the app’s own defenses catch</li><li>What the firewall sees and logs</li></ol><ul><li><strong>Logging and Monitoring</strong><br> Sending FortiGate logs to a SIEM or log management tool and practicing incident investigation from both application and network perspectives.</li></ul><p>Ultimately, I don’t see this as “changing careers from developer to security person.”<br> I see it as <strong>expanding my definition of software quality</strong>:</p><blockquote><em>A system that works functionally but is misconfigured at the network edge isn’t really “done”.</em></blockquote><h3>Closing Thoughts</h3><p>This FortiGate lab was a small step technically, but a big one mentally.</p><ul><li>I moved from <strong>drawn topologies</strong> to a <strong>living network</strong> running on my own machine.</li><li>I wrote real firewall policies and watched them get <strong>hit</strong> by traffic.</li><li>I saw how foundational ideas — risk, CIA, least privilege — translate into concrete buttons and fields in a firewall UI.</li></ul><p>For anyone with a developer or QA background stepping into cybersecurity, I highly recommend doing something similar:</p><blockquote><em>Spin up a virtual firewall, put a couple of VMs behind it, and </em><strong><em>watch every ping and HTTP request pass through rules you designed</em></strong><em>.</em></blockquote><p>It’s one of the fastest ways to realize that security is not just theory or compliance — it’s a very practical, very hands-on discipline where <strong>every packet tells a story</strong>, and you get to decide which stories are allowed to exist.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8bb5d6c880ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Code to Defense: My First Steps into Cybersecurity as a .NET/Java Developer]]></title>
            <link>https://medium.com/@barbarossa.alagoz/from-code-to-defense-my-first-steps-into-cybersecurity-as-a-net-java-developer-52dc796973ac?source=rss-e775ad03ac4a------2</link>
            <guid isPermaLink="false">https://medium.com/p/52dc796973ac</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[test-automation]]></category>
            <dc:creator><![CDATA[Barbaros Emre Alagöz]]></dc:creator>
            <pubDate>Fri, 05 Dec 2025 03:40:04 GMT</pubDate>
            <atom:updated>2025-12-05T03:40:04.326Z</atom:updated>
            <content:encoded><![CDATA[<h3>From Code to Defense: My First Steps into Cybersecurity as a .NET/Java Developer</h3><p>Over the last weeks I’ve been moving from “just writing code” into <strong>thinking like a defender</strong>.</p><p>I’m coming from a developer background (.NET, a bit of Java, and now moving toward automated testing and security). As I started my cybersecurity learning path, I realized that many things I already knew — HTTP, databases, classes, APIs — look very different once you put a security lens on them.</p><p>This article is a structured summary of my early notes: not “hacking tricks”, but the <strong>foundational concepts</strong> every modern developer and future test automation engineer should internalize.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vHd01LcBJgqE0o15WxpneQ.png" /></figure><h3>1. The Security Mindset: More Than Just “Don’t Get Hacked”</h3><p>The first mental shift is this:</p><blockquote><strong><em>Security is about managing risk, not achieving perfection.</em></strong></blockquote><p>A few core definitions I keep reminding myself:</p><ul><li><strong>Asset</strong> — Something we care about: data, systems, reputation, money.</li><li><strong>Threat</strong> — Someone or something that <em>could</em> cause harm (attacker, malware, insider).</li><li><strong>Vulnerability</strong> — A weakness that a threat can exploit (SQL injection, misconfigurations, weak passwords).</li><li><strong>Risk</strong> — The probability of a threat exploiting a vulnerability × the impact if it happens.</li></ul><p>And of course, the classic <strong>CIA triad</strong>:</p><ul><li><strong>Confidentiality</strong> — Only authorized parties can read the data.</li><li><strong>Integrity</strong> — Data can’t be modified without detection.</li><li><strong>Availability</strong> — Systems and data are accessible when needed.</li></ul><p>Every time I look at a system now, I ask:</p><ul><li>What are the <strong>assets</strong>?</li><li>Who are the possible <strong>threats</strong>?</li><li>Where are the <strong>vulnerabilities</strong>?</li><li>What is the <strong>impact</strong> if something goes wrong (C, I, or A)?</li></ul><p>This mindset turns abstract “security” into concrete design decisions.</p><h3>2. Networking Basics for Security: Packets, Ports and Protocols</h3><p>You can’t secure what you don’t understand. At minimum, I needed a mental model of how data actually moves.</p><h3>2.1 TCP/IP in 30 seconds</h3><p>Very simplified, the stack looks like this:</p><ul><li><strong>Application layer:</strong> HTTP, HTTPS, DNS, SMTP, etc.</li><li><strong>Transport layer:</strong> TCP, UDP (ports live here).</li><li><strong>Internet layer:</strong> IP (routing).</li><li><strong>Link layer:</strong> Ethernet, Wi-Fi, etc.</li></ul><p>Security relevance:</p><ul><li>Knowing that <strong>ports</strong> (80, 443, 22, 3389, …) correspond to services helps interpret scans and firewall rules.</li><li>Understanding that TCP is <strong>stateful</strong> (three-way handshake) matters when analyzing logs or anomalies.</li><li>Recognizing common protocols helps you spot something suspicious: SSH on a weird port, a database exposed directly to the internet, and so on.</li></ul><h3>2.2 TLS &amp; HTTPS (very short version)</h3><p>When we say <strong>HTTPS</strong>, we’re basically saying “HTTP over TLS”:</p><ul><li>The server presents a <strong>certificate</strong> (public key + identity).</li><li>The client verifies the certificate (via trusted Certificate Authorities).</li><li>They agree on symmetric keys for performance.</li><li>From then on, data in transit is <strong>encrypted</strong> and <strong>integrity-protected</strong>.</li></ul><p>For a backend or API developer, the takeaway is simple:</p><ul><li>Always use <strong>HTTPS</strong> in production.</li><li>Don’t accept <strong>invalid certificates</strong> in code “just to make it work”.</li><li>Offload TLS termination to a gateway or load balancer when possible, but understand what it does.</li></ul><h3>3. Authentication, Authorization and Sessions</h3><p>These three are easy to mix up, but security depends on getting them right.</p><ul><li><strong>Authentication (AuthN)</strong> — <em>Who are you?</em><br> Passwords, MFA, OAuth, SSO.</li><li><strong>Authorization (AuthZ)</strong> — <em>What are you allowed to do?</em><br> Roles, permissions, access control lists.</li><li><strong>Session management</strong> — <em>How do we maintain your state between requests?</em><br> Cookies, tokens, server-side session stores.</li></ul><p>Key security lessons:</p><ul><li><strong>Never store raw passwords</strong> — always hash + salt using a strong algorithm (e.g., bcrypt, Argon2, PBKDF2).</li><li>Use proper <strong>session expiration</strong> and <strong>token revocation</strong>.</li><li>Avoid home-grown token formats when solid standards (JWT, opaque tokens + session store) exist.</li><li>Apply <strong>least privilege</strong>: users and services should have only the access they actually need.</li></ul><h3>4. Cryptography Foundations (For People Who Don’t Want to Be Cryptographers)</h3><p>As a developer, I don’t have to invent new ciphers. I just need to <strong>use cryptography correctly</strong>.</p><h3>4.1 Symmetric vs asymmetric</h3><ul><li><strong>Symmetric crypto</strong><br> Same key for encryption and decryption. Fast, used for bulk data (AES).</li><li><strong>Asymmetric crypto</strong><br> Public/private key pair (RSA, ECC). Used for key exchange and signatures.</li></ul><p>The combo pattern used in practice:</p><ol><li>Use asymmetric crypto to <strong>exchange a symmetric key</strong>.</li><li>Use symmetric crypto to encrypt large amounts of data efficiently.</li></ol><h3>4.2 Hashing and salting</h3><ul><li>A <strong>hash function</strong> maps input to fixed-length output.</li><li>It’s one-way (hard to invert) and sensitive to small changes.</li></ul><p>For passwords, plain hashing is not enough:</p><ul><li>You must <strong>salt</strong> (add random value per password).</li><li>You must use <strong>slow, adaptive</strong> algorithms (bcrypt, Argon2, etc.).</li></ul><p>Rule I wrote for myself:</p><blockquote><em>If I ever see </em><em>SHA256(password) or </em><em>MD5(password) used directly for password storage, that’s a red flag.</em></blockquote><h3>5. Web Application Attack Surface: Seeing Your App Like an Attacker</h3><p>Here are the main vulnerability categories I keep encountering in materials and exercises (heavily inspired by OWASP Top 10).</p><h3>5.1 Injection (SQL, command, etc.)</h3><p><strong>Idea:</strong> Untrusted input is concatenated into a command or query.</p><p>Bad pattern:</p><pre>// ❌ Vulnerable to SQL injection<br>var sql = $&quot;SELECT * FROM Users WHERE Name = &#39;{userInput}&#39;&quot;;</pre><p>Safer pattern:</p><pre>// ✅ Parameterized query<br>var sql = &quot;SELECT * FROM Users WHERE Name = @name&quot;;<br>command.Parameters.AddWithValue(&quot;@name&quot;, userInput);</pre><p>Key idea: always use <strong>parameterized queries / prepared statements</strong> and never trust input to be “sanitized enough”.</p><h3>5.2 Cross-Site Scripting (XSS)</h3><p><strong>Idea:</strong> Attacker injects malicious JavaScript into content that gets reflected or stored, and the browser executes it in the context of the victim’s session.</p><p>Mitigations:</p><ul><li><strong>Output encoding</strong> based on context (HTML, attribute, JavaScript, URL).</li><li>Avoid dangerously rendering raw HTML from user input.</li><li>Use security headers (Content-Security-Policy, etc.).</li></ul><h3>5.3 Cross-Site Request Forgery (CSRF)</h3><p><strong>Idea:</strong><br> The victim is authenticated to a site; the attacker tricks their browser into sending a state-changing request (e.g., POST /transfer) without the victim realizing.</p><p>Mitigations:</p><ul><li>Anti-CSRF tokens (synchronizer token pattern).</li><li>Use SameSite cookies where possible.</li><li>Prefer token-based APIs that are not automatically attached by the browser.</li></ul><h3>5.4 Broken Access Control / IDOR</h3><p><strong>Idea:</strong><br> “Horizontal” or “vertical” privilege escalation caused by missing access checks.</p><p>Example:</p><pre>GET /api/orders/123   # Bob’s order<br>GET /api/orders/124   # Alice’s order, but Bob can access it</pre><p>Mitigation:</p><ul><li>Never rely only on <strong>client-side</strong> checks.</li><li>Always enforce authorization <strong>server-side</strong>, based on authenticated user identity and permissions.</li></ul><h3>6. Secure Coding Habits for .NET and Java Developers</h3><p>This is where my development background and new security perspective meet.</p><h3>6.1 Principle of least privilege</h3><ul><li>Database users: give them only the permissions they need (SELECT/INSERT/UPDATE on specific tables, not dbo everything).</li><li>Application config: only mount/inject the secrets that particular service needs.</li><li>File system: don’t run apps as root / local admin unless absolutely necessary.</li></ul><h3>6.2 Don’t roll your own crypto or auth</h3><ul><li>Use well-maintained frameworks:</li></ul><ol><li>In .NET: ASP.NET Core Identity, Data Protection APIs, built-in token handling.</li><li>In Java: Spring Security and standard crypto APIs.</li></ol><ul><li>Avoid custom token formats, custom password hashing, custom session mechanisms unless you <em>really</em> know what you’re doing (and even then, think twice).</li></ul><h3>6.3 Input validation and output encoding</h3><p>Two sides of the same coin:</p><ul><li><strong>Validation:</strong> Check the input early — type, length, range, format.</li><li><strong>Encoding/Escaping:</strong> Encode data as you output it to HTML, JSON, SQL, shell, etc.</li></ul><p>I like to think of it as:</p><blockquote><strong><em>Validate going in, encode going out.</em></strong></blockquote><h3>6.4 Logging and monitoring</h3><p>Security incidents often start with <strong>weird behavior</strong>:</p><ul><li>Many failed logins.</li><li>Sudden spikes in 500 errors.</li><li>Requests from unusual countries or IP ranges.</li></ul><p>As a developer, I can:</p><ul><li>Log <strong>enough context</strong> (not passwords, not secrets) to make incidents diagnosable.</li><li>Use consistent log levels (Info, Warning, Error, Critical).</li><li>Make sure logs are centralized (not just in local files).</li></ul><h3>7. Where Automated Testing Meets Security</h3><p>Since I’m also moving into <strong>test automation</strong>, security naturally connects with testing:</p><ul><li>Unit tests can check that dangerous inputs are handled safely.</li><li>Integration tests can verify:</li></ul><ol><li>Unauthorized users cannot access a resource.</li><li>Valid and invalid tokens behave as expected.</li><li>Rate limiting and error messages work correctly.</li></ol><ul><li>UI/API automated tests can include negative security scenarios:</li></ul><ol><li>Too-long input,</li><li>Incorrect formats,</li><li>Behavior when the session expires.</li></ol><p>In other words:</p><blockquote><strong><em>Security is not just a separate pentest phase — it can (and should) be part of our automated regression suite.</em></strong></blockquote><p>As a future QA automation engineer, I see security as an extension of quality: a feature that works but can be easily abused is <em>not really</em> done.</p><h3>8. A Simple Roadmap I’m Using</h3><p>To keep myself sane and focused, I structured my cyber learning roughly like this.</p><h3>Phase 1 — Foundations</h3><ul><li>Networking (TCP/IP, ports, HTTP, HTTPS).</li><li>Linux basics, terminals, processes.</li><li>CIA triad, threat modeling, basic cryptography.</li><li>OWASP Top 10 overview.</li></ul><h3>Phase 2 — Developer security</h3><ul><li>Secure coding in <strong>C# and Java</strong>.</li><li>Input validation &amp; output encoding in web frameworks.</li><li>Authentication &amp; authorization patterns (session vs token).</li><li>Writing unit/integration tests with security in mind.</li></ul><h3>Phase 3 — Practical labs &amp; specialization</h3><ul><li>Hands-on labs in safe environments (vulnerable web apps, capture-the-flag platforms).</li><li>Focusing on one path:</li></ul><ol><li>Web app security / AppSec,</li><li>Test automation with a security focus,</li><li>Or eventually SOC / blue team / detection engineering.</li></ol><h3>Closing Thoughts</h3><p>Starting in cybersecurity as a developer feels like suddenly seeing the <strong>“dark matter”</strong> of software: all the invisible forces and assumptions that can either keep your system safe or bring it down.</p><p>For me, the most important early lessons weren’t specific tools or exploits. They were:</p><ul><li>Think in terms of <strong>risk</strong> and <strong>impact</strong>.</li><li>Understand the <strong>basics</strong>: networking, auth, crypto, HTTP.</li><li>Recognize common web vulnerabilities and how to <strong>avoid introducing them</strong>.</li><li>Use my existing skills in .NET/Java and automated testing to <strong>shift security left</strong>.</li></ul><p>If you’re also a developer or test automation engineer thinking about cybersecurity, I hope these notes give you a structured starting point. And if you’re ahead of me on this path, I’m always open to feedback and better ways to think about defense.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52dc796973ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>