<?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 Mor David on Medium]]></title>
        <description><![CDATA[Stories by Mor David on Medium]]></description>
        <link>https://medium.com/@mordavid?source=rss-b15a92f68464------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*GYuM_PoUf8waGVVCB1EuEw.jpeg</url>
            <title>Stories by Mor David on Medium</title>
            <link>https://medium.com/@mordavid?source=rss-b15a92f68464------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 02:11:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mordavid/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[BruteForceAI: When Artificial Intelligence Meets Web Security Testing]]></title>
            <link>https://medium.com/@mordavid/bruteforceai-when-artificial-intelligence-meets-web-security-testing-2cf807221f3f?source=rss-b15a92f68464------2</link>
            <guid isPermaLink="false">https://medium.com/p/2cf807221f3f</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[offensive-security]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Mor David]]></dc:creator>
            <pubDate>Mon, 21 Jul 2025 22:21:29 GMT</pubDate>
            <atom:updated>2025-07-21T22:21:29.718Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How I built an intelligent brute-force tool that automatically analyzes login forms using Large Language Models</em></p><h3>The Challenge</h3><p>As web applications become more sophisticated, so must the tools we use to test their security. Traditional brute-force tools often fail because they:</p><ul><li>Can’t adapt to different login forms — Each website has unique selectors, structures, and behaviors</li><li>Require manual configuration — Security testers spend hours analyzing HTML and crafting selectors</li><li>Mix analysis with attacks — Every attack requires re-analyzing the same forms repeatedly</li><li>Produce false positives — Difficulty distinguishing between successful and failed login attempts</li><li>Scale poorly — Most tools are single-threaded or poorly optimized for modern hardware</li></ul><p>This is where BruteForceAI comes in — a next-generation security testing tool that leverages artificial intelligence to solve these age-old problems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PRPLMwyFZEenNM51AzMq5A.png" /></figure><h3>The Innovation: 2 Stage AI-Powered Approach</h3><p>BruteForceAI revolutionizes security testing through a sophisticated two-stage process that eliminates manual configuration and maximizes accuracy. This separation allows the time-consuming AI analysis to be performed once, while the actual attacks can be run multiple times with different credentials and configurations.</p><h3>Stage 1: Analysis AI-Powered Form Recognition</h3><p>The first stage focuses entirely on understanding the target. BruteForceAI:</p><ol><li>Automatically navigates to target URLs using Playwright</li><li>Extracts relevant HTML content focusing on forms and input elements</li><li>Sends the content to a Large Language Model (supports both Ollama and Groq)</li><li>Receives precise CSS selectors for username, password, and submit elements</li><li>Validates selectors on the actual page to ensure accuracy</li><li>Profiles failed attempts by testing with fake credentials to establish baseline behavior</li><li>Stores analysis results in database for reuse across attacks</li></ol><p>The AI analyzes HTML and returns structured data containing precise CSS selectors for the email field, password field, and submit button — everything needed to automate the login process. This stage also establishes how to detect successful vs failed login attempts through intelligent DOM analysis.</p><h3>Stage 2: Attack Multi-Threaded Credential Testing</h3><p>Once the analysis is complete, the second stage executes the actual attack:</p><ul><li>Loads stored selectors from the analysis phase</li><li>Launches multi-threaded attack with sophisticated synchronization</li><li>Tests credentials systematically using either brute force or password spray modes</li><li>Detects success automatically using the baseline established in Stage 1</li><li>Sends real-time notifications when valid credentials are discovered</li><li>Maintains detailed logs of all attempts for analysis and reporting</li></ul><h3>Multi-Threading with Smart Synchronization</h3><p>The system uses sophisticated thread-safe mechanisms to ensure proper delay synchronization between password attempts for the same username, preventing simultaneous attacks on a single user account.</p><ul><li>Per-username locks — Prevents multiple threads from attacking the same user simultaneously</li><li>Jitter support — Adds randomness to avoid detection</li><li>Success exit — Automatically stops when valid credentials are found</li></ul><h3>Two Attack Modes</h3><p>Brute Force Mode: Tests all password combinations against each username — more aggressive but potentially faster for weak passwords.</p><p>Password Spray Mode: Tests each password against all usernames — stealthier approach with lower detection risk, ideal for avoiding account lockouts.</p><h3>Real-Time Notifications</h3><p>When valid credentials are discovered, BruteForceAI instantly notifies you via multiple channels including Discord webhooks, Slack integration, Microsoft Teams, and Telegram bots — ensuring you never miss a successful discovery even during long-running attacks.</p><h3>Anti-Detection Capabilities</h3><ul><li>Random User-Agent rotation from customizable lists</li><li>Proxy support for IP rotation</li><li>Configurable delays and jitter for human-like behavior</li><li>Browser fingerprint randomization</li></ul><h3>Comprehensive Logging</h3><ul><li>SQLite database stores all attempts and results</li><li>Detailed timing information for performance analysis</li><li>Success/failure tracking with DOM analysis data</li><li>Resume capability — Skip previously attempted combinations</li></ul><h3>Flexible Configuration</h3><ul><li>Multiple LLM providers — Ollama (local) or Groq (cloud)</li><li>Custom model selection — From lightweight to high-performance models</li><li>Configurable retry logic — Handle network failures gracefully</li><li>Debug mode — Detailed logging for troubleshooting</li></ul><h3>Installation and Getting Started</h3><p>Getting BruteForceAI up and running is straightforward. The process involves cloning the repository, installing Python dependencies, setting up Playwright browsers, and configuring your preferred LLM provider.</p><p>For local processing, you can use Ollama with models like Llama 3.2. For cloud-based processing, Groq offers high-performance inference with the latest models.</p><h3>Two-Stage Workflow</h3><p>The workflow follows the two-stage approach:</p><p><strong>Stage 1 — Analysis: </strong>Run the analysis command against your target URLs. BruteForceAI will automatically identify form elements, validate selectors, and establish success detection baselines. This stage only needs to be run once per target.</p><p><strong>Stage 2 — Attack: </strong>Execute your chosen attack mode (brute force or password spray) using the pre-analyzed data. The system loads the stored selectors and baseline information to conduct efficient, accurate attacks with real-time success detection. Attacks can be stopped and resumed, or run with different parameters, without repeating the analysis phase.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*AQHDnuf3u06GoCxpktbjgw.png" /></figure><h3>Community and Open Source</h3><p>BruteForceAI is open source and welcomes contributions from the security community. The project includes comprehensive documentation, operates under a non-commercial license for educational and authorized testing purposes, and maintains an active community of users and contributors.</p><h3>Conclusion: The Future of Security Testing</h3><p>BruteForceAI represents a significant step forward in automated security testing. By combining artificial intelligence with battle-tested security techniques, we’ve created a tool that’s:</p><ul><li>Faster — AI eliminates manual configuration</li><li>More accurate — Intelligent success detection</li><li>Scalable — Multi-threading with smart synchronization</li><li>Adaptable — Works across different web technologies</li><li>User-friendly — Simple command-line interface</li></ul><p>But perhaps most importantly, it demonstrates how AI can augment human security professionals rather than replace them. The tool handles the repetitive, time-consuming analysis work, freeing security experts to focus on higher-level strategy and interpretation of results.</p><p>As web applications continue evolving, so will BruteForceAI. We’re excited to see how the security community adopts and contributes to this project.</p><p>Ready to get started? Check out the project on GitHub and join our community of security professionals pushing the boundaries of what’s possible with AI-powered testing.</p><p><em>Remember: Always test responsibly and only on systems you’re authorized to test.</em></p><p>Tags: #CyberSecurity #AI #MachineLearning #PenetrationTesting #WebSecurity #Python #Playwright #LLM #SecurityTools #BugBounty</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2cf807221f3f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[BloodHound Meets AI: Revolutionizing Active Directory Security Analysis]]></title>
            <link>https://medium.com/@mordavid/bloodhound-meets-ai-revolutionizing-active-directory-security-analysis-db3223c3005c?source=rss-b15a92f68464------2</link>
            <guid isPermaLink="false">https://medium.com/p/db3223c3005c</guid>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[bloodhound]]></category>
            <dc:creator><![CDATA[Mor David]]></dc:creator>
            <pubDate>Fri, 04 Apr 2025 09:31:46 GMT</pubDate>
            <atom:updated>2025-04-04T09:31:46.398Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PUbjuSRgagIR3tz1.png" /></figure><p>Active Directory (AD) remains the backbone of enterprise identity management, but its complex web of permissions, group memberships, and trust relationships creates a vast attack surface. Security professionals have long relied on BloodHound to visualize and analyze these relationships, but mastering its Cypher query language presents a steep learning curve.</p><p>Today, I’m excited to introduce <strong>BloodHound-MCP-AI </strong>— the first-ever integration connecting BloodHound with AI through the Model Context Protocol (MCP).</p><h4>The Problem with Traditional AD Security Analysis</h4><p>For years, security teams have faced a dilemma when working with Active Directory:</p><ol><li><strong>Complexity </strong>— AD environments contain thousands of objects with intricate trust relationships</li><li><strong>Specialized Knowledge Required</strong> — Analyzing attack paths demands Cypher query expertise</li><li><strong>Time-Consuming</strong> — Manual queries and visualization interpretation slow down security assessments</li><li><strong>Communication Barriers</strong> — Technical findings are difficult to translate for management</li></ol><p>As organizations grow, these challenges only intensify. A large enterprise might have millions of AD relationships to analyze.</p><h4>Enter BloodHound-MCP: Natural Language for Attack Path Analysis</h4><p>BloodHound-MCP bridges the gap between powerful AD analysis and accessibility by allowing security professionals to query BloodHound data using natural language. This integration combines:</p><ul><li><strong>BloodHound</strong>: The industry-standard tool for visualizing AD attack paths</li><li><strong>Model Context Protocol (MCP)</strong>: An open protocol for creating custom AI tools, compatible with various AI models</li><li><strong>Neo4j</strong>: The graph database used by BloodHound to store AD relationship data</li></ul><p>With over 75 specialized tools based on original BloodHound CE Cypher queries, security teams can now:</p><pre>&quot;Show me all paths from kerberoastable users to Domain Admins&quot;</pre><p>Instead of writing:</p><pre>MATCH p=shortestPath((s:User)-[r1..]-&gt;(t:Group))<br>WHERE s.hasspn=true<br>AND s.enabled = true<br>AND NOT s.objectid ENDS WITH &#39;-502&#39;<br>AND NOT s.gmsa = true<br>AND NOT s.msa = true<br>AND t.objectid ENDS WITH &#39;-512&#39;<br>RETURN p<br>LIMIT 1000</pre><h3>Key Features That Transform Security Workflows</h3><p>BloodHound-MCP dramatically changes how teams interact with AD security data:</p><h4>1. Comprehensive Analysis Categories</h4><ul><li>Domain Structure Mapping — Understand your AD environment topology</li><li>Privilege Escalation Paths — Discover potential lateral movement routes</li><li>Kerberos Security — Identify Kerberoasting and AS-REP Roasting opportunities</li><li>Certificate Services Vulnerabilities — Find ESC1–8 vulnerabilities</li><li>AD Hygiene Assessment — Locate stale accounts and risky configurations</li><li>NTLM Relay Vectors — Pinpoint NTLM relay attack opportunities</li><li>Delegation Abuse — Discover constrained and unconstrained delegation risks</li></ul><h4>2. Natural Language Interface</h4><p>The ability to query in plain English democratizes access to AD security insights:</p><ul><li>Security Analysts can quickly find answers without Cypher expertise</li><li>Incident Responders can rapidly evaluate potential attack paths during incidents</li><li>Security Managers can directly query for high-level security metrics</li><li>Auditors can verify compliance controls without specialized training</li></ul><h4>3. Efficient Reporting</h4><p>Generate comprehensive security reports that translate technical findings into actionable insights for stakeholders at all levels.</p><h3>Real-World Applications</h3><h4>Scenario 1: Incident Response</h4><p>During an incident involving compromised credentials, a security analyst needs to quickly determine potential impact:</p><pre>&quot;Show me all attack paths from the compromised user &#39;jsmith&#39; to Domain Admin accounts&quot;</pre><p>BloodHound-MCP instantly reveals all potential privilege escalation paths, allowing the team to prioritize containment efforts.</p><h4>Scenario 2: Proactive Security Assessment</h4><p>A security team wants to identify kerberoastable service accounts with high privileges:</p><pre>&quot;Find kerberoastable accounts with the most administrative access&quot;</pre><p>The system returns a prioritized list of service accounts that could be targeted for kerberoasting, ranked by their administrative reach.</p><h4>Scenario 3: Compliance Verification</h4><p>An auditor needs to verify that inactive privileged accounts are properly managed:</p><pre>&quot;Show me tier zero accounts that haven&#39;t logged in for over 90 days&quot;</pre><p>BloodHound-MCP identifies dormant privileged accounts that violate security policies, providing clear evidence for compliance reporting.</p><h3>The Future of AI-Enhanced Security Tools</h3><p>BloodHound-MCP represents the beginning of a new era where AI augments and enhances specialized security tools. This approach:</p><ol><li>Lowers barriers to entry for sophisticated security analysis</li><li>Accelerates security workflows through natural language interaction</li><li>Improves communication between technical and non-technical stakeholders</li><li>Enables more proactive security by making AD analysis more accessible</li></ol><p>As AI capabilities continue to advance, we can expect even more powerful integrations that further transform how security professionals protect critical infrastructure.</p><h3>Conclusion</h3><p>BloodHound-MCP demonstrates the transformative potential of combining specialized security tools with AI capabilities. By making complex AD attack path analysis accessible through natural language, it empowers security teams to work more efficiently and effectively.</p><p>Whether you’re conducting security assessments, responding to incidents, or ensuring compliance, BloodHound-MCP provides a powerful new approach to understanding and securing your Active Directory environment.</p><p>Join our community on Telegram (<a href="https://t.me/root_sec">https://t.me/root_sec</a>) for updates, tips, and discussions about this exciting new tool.</p><p>—-</p><p>Note: BloodHound-MCP is a community-driven integration between BloodHound and the Model Context Protocol.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db3223c3005c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Uncovering a Message Thread Between Hackers Targeting Israeli Citizens]]></title>
            <link>https://medium.com/cyesec/uncovering-a-message-thread-between-hackers-targeting-israeli-citizens-ba8b922ed1a5?source=rss-b15a92f68464------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba8b922ed1a5</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[hacker]]></category>
            <category><![CDATA[scam]]></category>
            <category><![CDATA[phishing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Mor David]]></dc:creator>
            <pubDate>Tue, 06 Jun 2023 11:50:28 GMT</pubDate>
            <atom:updated>2023-06-09T15:28:35.286Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*dO2TWQFvY1CjzVq1j8A5aw.png" /></figure><p>It is a known fact that civilians often fall prey to SMS phishing scams. Hackers try to take advantage of unsuspecting people, especially during the busy holiday season when message volumes grow significantly.</p><p>My investigation got underway when someone posted a fake text message from an anonymous sender on a Facebook cybersecurity group. I knew I had the proper training to uncover malicious actors, so I decided to follow this lead and see where it took me.</p><p>The Facebook post revealed a screenshot of the phishing attack, which directed the recipient to a payment request for a supposed DHL shipment from Israel. I decided to investigate further, in hopes of shutting this campaign down before recipients who were less security savvy than the one who posted this warning would fall for it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*8DSIgJwq6lwtwCrnEigeTQ.png" /></figure><h3>The Investigation</h3><p>After taking a moment to check the link to the Hacker’s website, I exposed a directory listing that led me to a Webshell file. A Webshell file is a malicious script that allows the user to perform remote code execution, read files, etc. Hackers often use them as an entry point to compromise web servers and launch additional attacks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UEXaIZMaj8ZEbRb36ThAQA.png" /></figure><p>By using the Webshell, I was able to reveal the source code of the campaign and figure out where the sensitive information was about to be sent. I also found that the attacker was storing IDs, full names, and credit card information in a telegram bot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gvYonsqw0EzfcYmh4dpSdw.png" /></figure><p>By using <em>bot token</em>, I could read what people had sent to the Telegram bot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*duOIAO2-B7kytstVtk1vOQ.png" /></figure><p>But this was not all I found. After digging a little deeper I discovered that JSON data contained a message thread between the actors responsible for this phishing attack (pictured above). Each message contained the First name, Last name, Username, Language and Epoch time of a specific user. The word “kanka,” which appears throughout the communication chain, actually refers to “best friend” in Turkish.</p><p>After looking at the final messages in the thread, I was able to discern that the attackers were not done and that they may be planning more phishing attacks in both Dubai and Israel.</p><p>Offensive security specialists can learn a lot from internal communication between malicious actors. Some examples include phone numbers that appear owned, and credit card details — such as the ones pictured below which were found in this specific chain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rCrjABArnxFUcF6D0Kz34g.png" /></figure><h3>The Findings</h3><p>Attackers usually run multiple phishing campaigns simultaneously. Unaware that offensive teams can read their communication, they message each other revealing useful information to offensive security specialists.</p><p>In order to continue tracking the attackers’ communication automatically, I wrote a mini-script using Python that continuously checks for updates from the Telegram Bot. It retrieves updates by making a GET request to the API endpoint and stores the response in a JSON format. Here it is:</p><pre>import time<br>import json<br>import requests <br>telegram_domain=&quot;https://api.telegram.org/&quot;<br>telegram_bot=&quot;botXXXXXXXXXXXXXXXXXX&quot;<br>count=0<br>outfilename=&quot;XXXXX.txt&quot;<br>while 1==1:<br>    r = requests.get(telegram_domain + telegram_bot + &quot;/getUpdates&quot;)<br>    logs = json.loads(r.text)<br><br>    for line in logs[&quot;result&quot;]: <br>        line = str(line)<br>    <br>        f = open(outfilename,  &quot;r&quot;)<br><br>        if line not in f.read():<br>            z = open(outfilename, &quot;a&quot;)<br>            print(line)<br><br>            try: <br>                 z.write(line+&quot;\n&quot;)<br>            except :<br>                print(line) <br>            z.close()<br><br>    f.close()<br>time.sleep(60*60)</pre><p>A couple of days after the message was posted to Facebook, I noticed that the attackers sent a list of Australian phone numbers and a phishing kit from DHL Australia. I was surprised to see that this kit included a new telegram bot and email address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FjbE58R7vVyUr7RaoI3acA.png" /></figure><p>It wasn’t long before the attackers sent a new HTML file which looked like it was a phishing campaign targeting Norwegian citizens and email addresses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*Qvs9Ku08JLOQJp32hgqz5g.png" /></figure><h3>Conclusion</h3><p>To combat SMS and email phishing, I collected as much information as possible about the attack. I then forwarded this information to relevant organizations, including law enforcement agencies to help them combat future attacks of this kind.</p><p>By collecting and sharing information about phishing attempts, offensive security specialists and organizations can work together to reduce attacks and minimize their impact.</p><h3>Preventative Measures</h3><p>As a general rule, be vigilant and always double-check the authenticity of text messages before taking any action.</p><p>Start by exercising caution if the source of the SMS is suspicious. Keep in mind that messages are not always from the entities they claim to be from. If you are unsure of the source, do not to click on any links in the message. Rather, open the application or official website of the organization and search the information — such as the shipping number, access code etc. that you were given upon purchase — if there are any outstanding payments it will show up there! This way, you can be sure that you’re interacting with a real entity and not being scammed.</p><p>Also keep in mind that if the message you received is valid and not a phishing attempt, it will likely appear as a notification or pop-up on your screen when you enter the official website or application. This is another way to assess the credibility of the SMS you received.</p><h3>Disclaimer</h3><p>All the events and investigations described in this piece date back to 2021. The suggestions, methodology, and tactics presented here, however, are up-to-date.</p><p><em>Mor David joined </em><a href="https://cyesec.com/"><em>CYE</em></a><em> as a Cyber Security Expert and Red Teamer. With more than 4 years of experience, Mor specializes in internal and external assessments, writing code and is an experienced Bug Bounty Hunter.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba8b922ed1a5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cyesec/uncovering-a-message-thread-between-hackers-targeting-israeli-citizens-ba8b922ed1a5">Uncovering a Message Thread Between Hackers Targeting Israeli Citizens</a> was originally published in <a href="https://medium.com/cyesec">CYESEC</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>