<?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 Rui Fernandes on Medium]]></title>
        <description><![CDATA[Stories by Rui Fernandes on Medium]]></description>
        <link>https://medium.com/@ruipcf?source=rss-3aa383f968f1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*VRTb2BOBVmcAdGhk</url>
            <title>Stories by Rui Fernandes on Medium</title>
            <link>https://medium.com/@ruipcf?source=rss-3aa383f968f1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 04:28:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ruipcf/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[No simulator wins: benchmarking the state of AI Pentesting (the finding as headline)]]></title>
            <link>https://medium.com/@ruipcf/no-simulator-wins-benchmarking-the-state-of-ai-pentesting-the-finding-as-headline-f56a1502c6d0?source=rss-3aa383f968f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f56a1502c6d0</guid>
            <category><![CDATA[offensive-security]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <dc:creator><![CDATA[Rui Fernandes]]></dc:creator>
            <pubDate>Mon, 20 Jul 2026 08:01:04 GMT</pubDate>
            <atom:updated>2026-07-20T08:01:04.012Z</atom:updated>
            <content:encoded><![CDATA[<p>Reinforcement Learning agents are getting scary good at hacking, at least on paper. Drop one into a simulated network, and it’ll learn, all by itself, which moves lead to a foothold, which leads to a dead end, and slowly grind its way to becoming a competent attacker like a video-game character levelling up by playing the same dungeon a thousand times.</p><p>The catch? A lot of these agents are champions of a world that doesn’t quite exist. They ace the simulation and then stumble the moment you point them at a real network. That gap between what <strong>looks great in the lab</strong> and what <strong>works in the real world</strong> is exactly what we dug into in our latest paper in <em>the Internet of Things</em> (Elsevier).</p><p>I’ll keep this relaxed and skip the heavy tables and benchmark internals. The full comparison, radar charts and all, is in the paper, and the good news is it’s open access, so that you can read the whole thing for free<a href="https://www.sciencedirect.com/science/article/pii/S2542660526000624"> here</a>.</p><p>The short version: we lined up the state-of-the-art RL pentesting environments side by side, measured them honestly, and found that <strong>no single one wins</strong>.</p><h3>Why this matters</h3><p>Attacks keep getting nastier. Think SolarWinds-style supply chain compromises or deepfakes impersonating executives. Meanwhile, the classic toolbox is creaking:</p><ul><li><strong>Too many tools, no brain connecting them.</strong> There are dozens of brilliant single-purpose tools (recon, exploitation, privilege escalation), but they don’t talk to each other or decide what to run next. That’s on you.</li><li><strong>Static knowledge.</strong> Traditional and supervised-learning tools only know what they were trained on. The real world doesn’t sit still.</li><li><strong>The promise of RL.</strong> An RL agent can <em>learn</em> to chain actions based on live feedback, which is why everyone’s excited. But excitement isn’t the same as readiness.</li></ul><p>So the real question we asked wasn’t “can AI hack?” It’s “which of these environments is actually good enough to train an agent you’d trust outside the sandbox?”</p><h3>Simulator vs emulator (the distinction that changes everything)</h3><p>This one’s worth slowing down for, because it’s the crux of the whole paper.</p><ul><li>A <strong>simulator</strong> is like a flight simulator: a lightweight, abstract model of a network. Cheap to run, easy to scale to huge topologies, great for training, but it’s a cartoon of reality.</li><li>An <strong>emulator</strong> is closer to a real test flight: it spins up virtual machines with real operating systems, real vulnerabilities, and a real Kali box running the agent. Far more realistic, and far heavier and harder to scale.</li></ul><p>Here’s the kicker we found: <strong>simulation is everywhere, but real emulation is rare.</strong> Of the RL environments we looked at, only a handful actually emulate. And tellingly, <em>none</em> of them properly support the final, most damaging attack stages, Exfiltration and Impact, precisely because they’re still simulators, not battle-tested in real time.</p><h3>The benchmark: five ways to judge a hacking gym</h3><p>Instead of crowning one winner, we scored each environment across five dimensions that actually matter for real-world use:</p><ul><li><strong>Environmental fidelity</strong>: how close it feels to a real network.</li><li><strong>Attack coverage</strong>: how much of the MITRE ATT&amp;CK playbook it supports.</li><li><strong>Scalability</strong>: can it handle a big, messy enterprise network without melting your hardware?</li><li><strong>Operational complexity</strong>: how painful it is to install, configure, and babysit.</li><li><strong>Documentation &amp; maintainability</strong>: is anyone still looking after it?</li></ul><p>And the headline result is a classic trade-off: a bit like “fast, cheap, good: pick two.” Without spoiling the full radar charts (they’re in the paper, and they’re the fun part):</p><ul><li><strong>NASimEmu, Caldera, and Cyberwheel</strong> feel the most like the real thing.</li><li><strong>Caldera, Cyberwheel, and CybORG</strong> cover the widest range of attack techniques.</li><li><strong>NASim, MulVAL, and CyberBattleSim</strong> scale beautifully because they stay lightweight and abstract.</li></ul><p>Notice the tension? The ones that feel real are the ones that don’t scale, and vice versa. That’s the whole story in a sentence.</p><h3>Why you should care</h3><ol><li><strong>Picking the right gym matters.</strong> If you’re training an RL pentesting agent, there’s no “best” tool; there’s a best tool <em>for your specific goal</em>. This benchmark tells you which.</li><li><strong>It’s a reality check on hype.</strong> A 99% score in simulation can mean very little. Knowing where each environment cuts corners keeps expectations honest.</li><li><strong>It points to what’s next.</strong> The gaps we found aren’t just complaints, they’re a roadmap for building something better.</li></ol><h3>The honest caveats</h3><p>We’re the first to admit the field isn’t there yet:</p><ul><li><strong>Explainability is thin.</strong> Most environments can’t hand you a clean report of what the agent did and why, which is a problem if a security team needs to trust and validate it.</li><li><strong>Ethics is barely discussed.</strong> With the EU AI Act and NIST’s AI Risk Management Framework now in play, “we built an autonomous attacker” needs to come with some serious responsibility. The papers in this space mostly skip that conversation.</li><li><strong>Scalability and realism still clash.</strong> Until someone reconciles them, RL agents stay stuck in the lab.</li></ul><h3>Conclusion</h3><p>If there’s one thing to take away:</p><ul><li>The field is <strong>fragmented</strong>: each environment is a specialist, none is an all-rounder.</li><li>The big unsolved problem is the <strong>simulation-to-reality gap</strong>, and the missing piece is <strong>emulation that still scales</strong>.</li><li>The way forward is <strong>hybrid</strong>: scalable simulation stitched to targeted emulation, with broader attack coverage, standard reward structures, and agents that keep learning after training ends.</li></ul><p>It’s an honest snapshot of where autonomous pentesting really stands in 2026: promising, fast-moving, and not quite ready for prime time. If you want the full benchmark, the per-tool radar charts, and the complete tool-by-tool tables, it’s all free to read<a href="https://www.sciencedirect.com/science/article/pii/S2542660526000624"> here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f56a1502c6d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Meet SEPTA: the AI hacker that knows what it doesn’t know]]></title>
            <link>https://medium.com/@ruipcf/meet-septa-the-ai-hacker-that-knows-what-it-doesnt-know-1573f07419af?source=rss-3aa383f968f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/1573f07419af</guid>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[offensive-security]]></category>
            <dc:creator><![CDATA[Rui Fernandes]]></dc:creator>
            <pubDate>Mon, 06 Jul 2026 17:01:03 GMT</pubDate>
            <atom:updated>2026-07-06T17:01:03.021Z</atom:updated>
            <content:encoded><![CDATA[<p>Large Language Models have basically become the new intern on every cybersecurity team, fast, eager, surprisingly capable… and now and then, confidently wrong. Ask one to help with a penetration test, and it might hand you a perfect nmap command, or it might invent a flag that doesn’t exist and never blink.</p><p>That “confidently wrong” problem is exactly what we set out to tackle in our ARTIIS 2025 paper. I’ll keep this chill and skip the heavy machinery. If you want the full architecture and the prompt internals, you can read the paper<a href="https://link.springer.com/chapter/10.1007/978-3-032-16764-4_7"> here</a>.</p><p>The short version: we built <strong>SEPTA, the Self-Evolving PenTester Agent</strong>, an AI hacker that can <em>check its own knowledge</em> and <em>learn over time</em>, rather than just guessing and hoping.</p><h3>Why this matters</h3><p>LLMs are already all over pentesting. Tools like PenTest++ and AutoAttacker can generate and even run attack commands. But there’s a catch:</p><ul><li><strong>Hallucinations.</strong> Models sometimes answer without actually knowing, which is dangerous when the “answer” is a command pointed at a live machine.</li><li><strong>Stale knowledge.</strong> Most agents are graded against fixed datasets. Fine for a snapshot, useless against last week’s CVE.</li><li><strong>Too many humans in the loop.</strong> The usual fix is constant manual checking, which kills the productivity the AI was supposed to give back.</li></ul><p>So the real question isn’t “can an LLM hack?” It’s “can an AI hacker know <em>what it doesn’t know</em>, and go fix that?”</p><h3>How SEPTA works</h3><p>SEPTA is built as three modular pieces that talk to each other. Think of it as a brain, a notebook, and a practice range.</p><p><strong>The brain, the LLM PenTester Module.</strong> At the core sits an open-source <strong>Llama 3.2</strong> model wrapped in a <strong>ReAct agent</strong>. ReAct just means the model reasons out loud, then acts: it breaks your request into a chain of thought, decides whether to reach for a tool or answer directly, looks at what happened, and adjusts. That little “think → act → check” loop is what keeps it from blurting out nonsense.</p><p><strong>The notebook is a FAISS vector database.</strong> Instead of trusting whatever Llama memorised during training, SEPTA leans on an external knowledge base it can search. Crucially, the agent is told to trust the notebook over its own gut.</p><p><strong>The practice range, the Emulation Module.</strong> This is the fun part. SEPTA can spin up a real sandbox of virtual machines with Vagrant, drop into a Kali Linux box, and <em>actually try the command</em> to see what happens, all safely isolated. If it’s unsure whether something works, it doesn’t guess. It tests.</p><h3>The “self-evolving” bit (the part I’m most excited about)</h3><p>Here’s the idea at the heart of the whole thing: we don’t retrain the model. Retraining is expensive, slow, power-hungry, and you can genuinely end up with a <em>dumber</em> model than you started with.</p><p>Instead, SEPTA grows by updating its notebook:</p><ul><li>When it hits a topic it doesn’t know, it can <strong>search the web</strong> (think recent CVEs), judge whether the result is actually relevant, and only then <strong>store it</strong> in the vector database.</li><li>It can <strong>verify</strong> shaky knowledge in the emulation sandbox before trusting it.</li><li>You can also just <strong>hand it documents</strong> and tell it to learn from them.</li></ul><p>So the agent quietly gets smarter between sessions, without anyone fine-tuning anything. A hacker who keeps its own evolving cheat sheet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yywE0BzPA_R_eJYu2__kEg.jpeg" /></figure><h3>What a real run looks like</h3><p>To show it actually does something, we fed it three manuals: Vagrant, VirtualBox, and Metasploit, and gave it a very human request: <em>“set up a Windows machine with a simple vulnerability and guide me in attacking it.”</em></p><p>Without spoiling the whole transcript (it’s in the paper), the agent:</p><ol><li>spun up a two-VM lab: a Kali attacker and a target on the same network,</li><li>realised it didn’t know enough about the target, so it searched the web and saved what it learned,</li><li>then ran an nmap scan to find open ports, exactly the move a human tester would make next.</li></ol><p>The decision-making lined up with how an actual expert would think. For a prototype, that’s a genuinely encouraging result.</p><h3>Why you should care</h3><ol><li><strong>Fewer dangerous guesses.</strong> An agent that tests before it tells you is one you can actually trust near real systems.</li><li><strong>Knowledge that doesn’t expire.</strong> Self-updating beats a model frozen at its training cutoff.</li><li><strong>Learning by doing, safely.</strong> The sandbox doubles as a training ground for humans who want to practise ethical hacking without breaking anything real.</li></ol><h3>The honest caveats</h3><p>This is a working prototype, not a finished product, and we say so plainly:</p><ul><li><strong>It’s slow.</strong> Spinning up emulated networks consumes time and compute; the more exotic the setup, the higher the cost.</li><li><strong>Its hacking knowledge is still thin.</strong> The RAG database needs a lot more attack-focused content.</li><li><strong>It needs more testing.</strong> We’ve shown feasibility on a handful of scenarios; the hard evaluation is still ahead.</li></ul><h3>Conclusion</h3><p>If there’s one takeaway, it’s this:</p><ul><li>LLM pentesting agents are powerful, but they hallucinate.</li><li>SEPTA’s answer is a loop — <strong>reason, test in a sandbox, learn, repeat</strong> — instead of blind trust.</li><li>And it self-evolves by updating an external memory, not by costly retraining.</li></ul><p>It’s an early step toward AI hackers who are honest about the limits of what they know. If that sounds like your rabbit hole, the full paper has the architecture diagrams, the prompt design, and the complete decision-making trace. Check it<a href="https://link.springer.com/chapter/10.1007/978-3-032-16764-4_7"> here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1573f07419af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From scripts to smart agents: how AI is reinventing Penetration Testing]]></title>
            <link>https://medium.com/@ruipcf/from-scripts-to-smart-agents-how-ai-is-reinventing-penetration-testing-17d330adec4c?source=rss-3aa383f968f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/17d330adec4c</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Rui Fernandes]]></dc:creator>
            <pubDate>Thu, 02 Oct 2025 06:45:59 GMT</pubDate>
            <atom:updated>2025-10-02T06:45:59.059Z</atom:updated>
            <content:encoded><![CDATA[<p>Back when I first got into security, everything was about command lines, Nmap scans, Metasploit exploits, and way too much coffee. Fast forward to today, and we’re witnessing a massive shift: <a href="https://ieeexplore.ieee.org/document/11012027">Artificial Intelligence is stepping into the world of penetration testing</a>.</p><p>In our IWANN 2025 paper, we explored two very different approaches:</p><ul><li><strong>LLM-based agents</strong> (like PenTest++), which use large language models to generate and execute attack commands. Basically, a hacker-on-demand available 24/7.</li><li><strong>RL-based agents</strong> (like Cyberwheel), which learn how to hack by trial and error inside simulated environments.</li></ul><p>What we found was pretty interesting:</p><ul><li>LLMs shine when it comes to adapting to new threats and pulling in the latest threat intelligence.</li><li>RL agents, on the other hand, are rock solid in controlled environments, mastering specific networks through repeated training.</li></ul><p>The clash between these two approaches made one thing clear: there’s no “one-size-fits-all” solution. The future might be a hybrid, where LLMs provide adaptive, up-to-date knowledge and RL validates attacks in realistic simulations.</p><p>Of course, this raises some big questions:</p><ul><li>How much should we automate offensive security?</li><li>Who’s responsible if an AI-driven attack goes wrong?</li><li>And can we really trust an AI hacker running unsupervised?</li></ul><p>What’s certain is that pentesting is evolving. Just like the leap from manual tools to automated frameworks changed everything, we’re now seeing the rise of artificial hackers.</p><p>If you’re curious about where this might take us, check out the full paper:<br> <a href="https://link.springer.com/chapter/10.1007/978-3-032-02725-2_5">Penetration Testing with AI: Case Studies on LLM and RL-Based Attack Agents</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17d330adec4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cybersecurity Frameworks Cheat Sheet]]></title>
            <link>https://medium.com/@ruipcf/cybersecurity-frameworks-cheat-sheet-c2a22575eb45?source=rss-3aa383f968f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2a22575eb45</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cyber-security-awareness]]></category>
            <category><![CDATA[cheatsheet]]></category>
            <category><![CDATA[cyber]]></category>
            <category><![CDATA[framework]]></category>
            <dc:creator><![CDATA[Rui Fernandes]]></dc:creator>
            <pubDate>Wed, 23 Jul 2025 11:12:48 GMT</pubDate>
            <atom:updated>2025-07-23T11:13:24.396Z</atom:updated>
            <content:encoded><![CDATA[<p>In Cybersecurity, frameworks are everywhere and for good reason. But with so many available, it’s easy to get lost between overlapping models, vague terminology, and inconsistent depth.</p><p>To cut through the noise, I created this <strong>Cybersecurity Frameworks Cheat Sheet</strong>: a consolidated visual reference of the most widely adopted frameworks, focusing on the <strong>technical and detailed aspects</strong> that matter in practice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nBZsPBg9ijum-EXf0O45ZA.jpeg" /></figure><p>This cheat sheet brings together:</p><ul><li><strong>Risk and threat modeling</strong> approaches like <strong>OCTAVE</strong>, <strong>PASTA</strong>, <strong>LINDDUN</strong>, and <strong>STRIDE</strong></li><li><strong>Security standards and lifecycle models</strong> such as <strong>NIST CSF</strong> and the <strong>CIA Triad</strong></li><li><strong>Vulnerability classification and scoring systems,</strong> including <strong>CVE</strong>, <strong>CVSS</strong>, <strong>EPSS</strong>, <strong>CWE</strong>, and others</li><li>And of course, the <strong>OWASP Top 10</strong> for application-layer security</li></ul><p>Rather than reinventing the wheel, this cheatsheet consolidates what professionals use most in a quick-to-scan format that is technically grounded and immediately useful for system design, threat analysis, or incident response.</p><p>I use it regularly in my work, whether designing secure systems or reviewing architectures.</p><p>Feel free to use it, adapt it, or share it. Suggestions for improvement are always welcome! 🙂</p><p>Access this <a href="https://github.com/ruipcf/Cybersecurity-Frameworks-Cheat-Sheet">GitHub repository</a> to download the cheatsheet in high quality.</p><p>Idea and Conceptualisation: Rui Fernandes<br>Design: Eva Nizon</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2a22575eb45" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Nmap and Metasploit to AI Agents]]></title>
            <link>https://medium.com/@ruipcf/from-nmap-and-metasploit-to-ai-agents-9c7f58adfa57?source=rss-3aa383f968f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c7f58adfa57</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[offensive-security]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Rui Fernandes]]></dc:creator>
            <pubDate>Wed, 04 Jun 2025 11:01:26 GMT</pubDate>
            <atom:updated>2025-06-04T11:01:26.517Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Introduction</strong></h3><p>Ever wonder how Pentesting evolved from a grab-bag of separate utilities into integrated, AI-powered platforms? In this post, we’ll walk through a recent paper that compares:</p><ol><li><strong>Traditional hacking tools</strong> (Shodan, Metasploit, Nmap, etc.)</li><li><strong>All-in-one frameworks</strong> (MITRE Caldera)</li><li><strong>AI-driven simulators</strong> (Cyberwheel)</li></ol><p>I’ll keep it chill, skip the technical speak where I can, and if you’re more interested in any detail, you can check the paper <a href="https://ieeexplore.ieee.org/document/11012027">here</a>.</p><p>The Pentesting process consists of different phases, and in each phase, we can use different tools. The paper describes which tools can be used for each phase and how AI agents can make use of different tools simultaneously and sequentially.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RCLLlE1Gp6Zs88_XrMxOBw.png" /><figcaption>Pentesting workflow</figcaption></figure><h3>Why This Comparison Matters</h3><ul><li><strong>Complexity &amp; Variety</strong>: There are dozens of standalone tools — recon scanners, exploit frameworks, privilege-escalation scripts — each specialising in one phase of an engagement. Managing and chaining them can get confusing.</li><li><strong>Integration Gaps</strong>: Traditional tools rarely “talk” to one another or decide what to run next automatically. You, as the tester, must manually pick and chain them.</li><li><strong>Emerging AI</strong>: AI (specifically Reinforcement Learning) is starting to train agents that can make decisions — “Which tool do I run now?” — based on real-time feedback, in simulated environments.</li></ul><p>The paper argues that bundling tools into one platform (like Caldera) is helpful, but adding AI on top (like in Cyberwheel) could automate entire attack/defence chains.</p><h3>Traditional Hacking Tools (The Old School Stack)</h3><p>Most penetration testers know and love their toolkits. Fernandes et al. group them by MITRE ATT&amp;CK phases:</p><p><strong>Reconnaissance</strong></p><ul><li>Shodan: A powerful “search engine” that helps you find internet-connected devices exposed to the public.</li><li>Maltego: A visual link-analysis tool for gathering intelligence on domains, email addresses, social profiles, and more.</li></ul><p><strong>Resource Development</strong></p><ul><li>Metasploit: A flexible framework for finding and exploiting vulnerabilities, with built-in payloads and post-exploitation modules.</li><li>Cobalt Strike: A commercial red-team platform that makes it easy to craft realistic attack scenarios and simulate advanced adversaries.</li></ul><p><strong>Initial Access</strong></p><ul><li>Social-Engineer Toolkit (SET): A suite focused on phishing and other social-engineering techniques to see how attackers might gain entry.</li><li>OpenVAS: A comprehensive vulnerability scanner that identifies weaknesses in your systems, helping you understand where an attacker could get a foothold.</li></ul><p><strong>Execution &amp; Persistence</strong></p><ul><li>Empire: Automates PowerShell-based post-exploitation tasks on Windows, letting you simulate what an attacker would do after gaining access.</li><li>Covenant: A modern, .NET-based command-and-control framework for running payloads and persisting inside a target environment.</li></ul><p><strong>Persistence</strong></p><ul><li>Autoruns: The classic tool for discovering which programs are configured to run at startup (great for spotting hidden backdoors).</li><li>WinPEAS: Focuses on finding ways to maintain privileges and remain hidden on Windows systems.</li></ul><p><strong>Privilege Escalation</strong></p><ul><li>LinPEAS: Probes Linux systems for misconfigurations that could let an attacker gain higher privileges.</li><li>PrivescCheck: Scans Windows machines for common privilege-escalation weaknesses.</li></ul><p><strong>Defense Evasion</strong></p><ul><li>Veil: Generates payloads designed to evade antivirus and other detection tools.</li><li>Obfuscator.io: Obfuscates scripts and binaries to make reverse-engineering or signature-based detection much harder.</li></ul><p><strong>Credential Access</strong></p><ul><li>Mimikatz: Extracts credentials directly from memory, showing how attackers can grab passwords or hashes.</li><li>Hashcat: A high-performance password-cracking tool that helps illustrate how quickly weak passwords can be broken.</li></ul><p><strong>Discovery</strong></p><ul><li>Nmap: The go-to network scanner for mapping out live hosts, open ports, and running services.</li><li>BloodHound: Analyses Active Directory relationships to reveal hidden attack paths inside a Windows domain.</li></ul><p><strong>Lateral Movement</strong></p><ul><li>PsExec: Lets you execute commands on remote Windows machines, simulating how attackers move laterally.</li><li>Impacket: A collection of Python tools for interacting with network protocols, useful for hopping between hosts.</li></ul><p><strong>Collection</strong></p><ul><li>Wireshark: Captures and analyses network traffic so you can see exactly what an attacker might be sniffing.</li><li>FileZilla: A user-friendly FTP/SFTP client — use it to demonstrate how data can be exfiltrated stealthily.</li></ul><p><strong>Command &amp; Control</strong></p><ul><li>Metasploit (C2 modules): Create custom command-and-control channels to show how an attacker maintains contact.</li><li>Cobalt Strike (C2 features): Emulate a sophisticated C2 infrastructure to demonstrate persistent control over compromised systems.</li></ul><p><strong>Exfiltration</strong></p><ul><li>Rclone: A versatile tool for copying data to and from cloud storage, making it easy to simulate data theft to cloud services.</li><li>WinSCP: A straightforward FTP/SFTP client for moving files quietly over a network.</li></ul><p><strong>Why it Works</strong>: Each tool is battle-tested, covers a specific niche, and has active communities.<br><strong>Why it’s Painful</strong>: You need to pick, download, configure, chain outputs, handle format mismatches, and manually decide “What’s next?”</p><h3>All-in-One Platforms: MITRE Caldera</h3><p><strong>What Is It?</strong></p><ul><li>Started as a credential-reuse script (2015).</li><li>By 2017, it became MITRE Caldera v1: an “automated adversary emulation” framework.</li><li>Supported techniques map directly to MITRE ATT&amp;CK TTPs (recon, privilege escalation, lateral movement, etc.).</li></ul><p><strong>Key Features</strong></p><ul><li><strong>Built-in Agents</strong>: Profiles that simulate different attacker personas (e.g., a script kiddie vs. a nation-state actor).</li><li><strong>Automated Playbooks</strong>: Predefined “operations” that run a sequence of techniques end-to-end.</li><li><strong>Dashboard &amp; Reporting</strong>: Visualise which ATT&amp;CK techniques were executed and where defences failed.</li></ul><p><strong>Where It Falls Short</strong></p><ul><li><strong>No AI Decision Layer</strong>: You still choose which operation or agent to run. Caldera doesn’t learn from past simulations to adjust on the fly.</li><li><strong>Predefined Sequences</strong>: It runs tasks in a set order — you can’t let the platform discover “unexpected pivot routes” without manual scripting.</li></ul><h3>AI-Driven Simulator: Cyberwheel</h3><p><strong>What Is It?</strong></p><ul><li>Released by Oak Ridge National Laboratory (ORNL) in 2024.</li><li>A modular, multi-agent simulation framework that can run entire virtual networks with vulnerable hosts, defence appliances, and RL agents acting as red or blue teams.</li></ul><p><strong>How It Works</strong></p><ol><li><strong>JSON-Defined Attack/Defence Actions</strong>: Every move (scanning, exploitation, patching, isolation) is defined in structured JSON.</li><li><strong>State Observations</strong>: Agents can “see” network topology, active defences, vulnerability lists, and success/failure rates.</li><li><strong>RL Agents &amp; Rewards</strong>:</li></ol><ul><li>Attacker Agent gets rewarded for deeper network penetration, data exfiltration, or mission completion.</li><li><em>Defender Agent</em> gets rewarded for blocking attacks, closing vulnerabilities, and keeping resources stable.</li></ul><ol><li><strong>Training to Generalise</strong>: Once an agent learns in one simulated topology, you can swap in a new network config (e.g., add more subnets, change OS versions) to see if it still succeeds.</li></ol><p><strong>Why It’s Promising</strong></p><ul><li><strong>Dynamic Decision-Making</strong>: Instead of manually chaining tools, the RL agent decides which step to take next based on live feedback.</li><li><strong>Scalable &amp; Extensible</strong>: You can add new attack chains or defence mechanisms without rewriting core code.</li><li><strong>Towards Emulation</strong>: Some work (Janisch et al. 2023) has shown agents trained in Cyberwheel-style simulators can transfer to emulated (near-real) networks, though with degradation if connectivity issues arise.</li></ul><p><strong>Limitations</strong></p><ul><li>Still mostly a research prototype — few real-world deployments.</li><li>Risk of “simulator bias”: An RL agent that scores 99% in simulation may flounder on an actual network with unforeseen quirks.</li><li>Ethical/Safety Concerns: Unconstrained RL might craft “too clever” or destructive behaviours. Some researchers propose “safe RL” with manual checkpoints before launching an attack in production.</li></ul><h3>Putting It All Together: Feature Comparison</h3><ul><li><strong>Traditional tools</strong> excel in depth (each tool is best-in-class), but you pay in manual effort.</li><li><strong>Caldera</strong> gives you a unified interface and ATT&amp;CK alignment, but it’s still scripted.</li><li><strong>Cyberwheel</strong> takes the next step by letting an RL agent choose and sequence actions autonomously — close to a “self-driving hacker.”</li></ul><h3>Why You Should Care</h3><ol><li><strong>Faster Red-Team Exercises</strong>: With AI agents, you can simulate thousands of attack scenarios without constantly babysitting each tool.</li><li><strong>Improved Defender Training</strong>: Blue-teamers can face adaptive, learning attackers rather than predictable playbooks.</li><li><strong>Resource Efficiency</strong>: Instead of hiring a full red team for every exercise, a well-trained agent can cover routine tests and only alert humans for unusual cases.</li><li><strong>Research Frontier</strong>: Exploring “safe RL” in cybersecurity could lead to self-suggesting patch recommendations, automated threat hunts, and more.</li></ol><h3>Conclusion</h3><p>The paper shows us that:</p><ul><li><strong>Traditional tools</strong> are indispensable but fragmented.</li><li><strong>Caldera</strong> unifies ATT&amp;CK-aligned emulation under one roof but stops short of AI.</li><li><strong>Cyberwheel</strong> proves that RL-driven agents can learn to chain offensive/defensive actions in realistic simulations.</li></ul><p>For anyone curious about where pen-testing and red/blue-teaming are heading, this paper is a concise yet insightful guide. Check it <a href="https://ieeexplore.ieee.org/document/11012027">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c7f58adfa57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reinforcement Learning Cheat Sheet]]></title>
            <link>https://medium.com/@ruipcf/reinforcement-learning-cheat-sheet-39bdecb8b5b4?source=rss-3aa383f968f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/39bdecb8b5b4</guid>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[cheatsheet]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[phd]]></category>
            <dc:creator><![CDATA[Rui Fernandes]]></dc:creator>
            <pubDate>Mon, 30 Sep 2024 09:20:45 GMT</pubDate>
            <atom:updated>2024-09-30T09:20:45.629Z</atom:updated>
            <content:encoded><![CDATA[<p>Starting a PhD means diving into an overwhelming amount of information. One of the main areas I’ll be focusing on over the coming years is Reinforcement Learning (RL). As a PhD student, I need to be ready to explain the key concepts of RL at a moment’s notice so, keeping my knowledge organized and fresh is essential.</p><p>To help with this, I created this cheat sheet. It’s my personal quick-reference guide, something I can pin up on the wall or pull out of my notebook whenever I need to recall the core components and algorithms of RL.</p><p>There are a few RL cheat sheets available online, but none exactly met my needs for fast, structured explanations — so I made my own. Starting from left to right and top to bottom, I’ve outlined:</p><ol><li><strong>The basics of Reinforcement Learning</strong>: I include a simple system architecture, inspired by Sutton’s book and various scientific articles.</li><li><strong>Reinforcement Learning subgroups</strong>: The cheat sheet breaks RL into three main categories — Model Representation, Optimization Strategy, and Policy Type. I also provide concise explanations and figures to clarify how these subgroups function.</li><li><strong>Key RL algorithms</strong>: I highlight the primary algorithms used in RL, like Q-Learning, Deep Q-Learning, and Actor-Critic models, and summarize how they are applied.</li></ol><p>This cheat sheet isn’t perfect or comprehensive — nor is it meant to be. It’s simply a tool that helps me explain the core concepts of RL in five minutes or less. It’s a living document, and I welcome any suggestions or improvements.</p><p>Feel free to share your thoughts! 🙂</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f3axJWf_9cukDoCA9iVI5Q.png" /></figure><p>Idea and Conceptualization: Rui Fernandes</p><p>Design: Eva Nizon</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39bdecb8b5b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>