How MITRE is AI, anyway?

Samir Mody (K7 Computing)

Virus Bulletin Conference 2025 (VB2025) · Day 2 · Threat Intelligence Practitioners' Summit · Threat Intelligence Practitioners' Summit

Overview

In an era saturated with hype surrounding Artificial Intelligence, especially Generative AI (GenAI), Samir Mody from K7 Computing delivered a thought-provoking talk at Virus Bulletin, challenging prevailing narratives about AI's immediate impact on cybersecurity. Titled "How MITRE is AI, anyway?", Mody's research delves into the practical capabilities and limitations of various GenAI models when tasked with two critical security functions: analyzing behavioral logs for MITRE ATT&CK indicators and generating malicious code components. His work provides a grounded perspective, moving beyond sensational claims to explore how GenAI can genuinely assist or mislead security professionals and potentially aid attackers.

Watch on YouTube

Visual summary for How MITRE is AI, anyway? by Samir Mody
Visual summary for How MITRE is AI, anyway? by Samir Mody

Key moments

  1. 0:00 Introduction: AI hype vs. real-world malware generation
  2. 5:30 GenAI's 'cunning parsing' of filenames, not content
  3. 11:30 Deepseek cleverly infers malware from sysmon log details
  4. 13:30 GenAI struggles with parent-child process context in logs
  5. 19:00 Gemini generates working shellcode for process injection
  6. 22:50 Deepseek suggests stealthy, persistent keylogger techniques without prompting
  7. 26:00 Summary of code generation capabilities and language trends

How MITRE is AI, anyway?

Speakers: Samir Mody, K7 Computing

Conference: Virus Bulletin

YouTube: https://www.youtube.com/watch?v=R6KVrlSlv-Q

Overview

In an era saturated with hype surrounding Artificial Intelligence, especially Generative AI (GenAI), Samir Mody from K7 Computing delivered a thought-provoking talk at Virus Bulletin, challenging prevailing narratives about AI's immediate impact on cybersecurity. Titled "How MITRE is AI, anyway?", Mody's research delves into the practical capabilities and limitations of various GenAI models when tasked with two critical security functions: analyzing behavioral logs for MITRE ATT&CK indicators and generating malicious code components. His work provides a grounded perspective, moving beyond sensational claims to explore how GenAI can genuinely assist or mislead security professionals and potentially aid attackers.

The presentation addresses the common misconception that GenAI is already churning out sophisticated, undetectable malware in the wild. Mody posits that while AI-assisted malware is a growing concern, truly AI-generated malware from scratch remains largely theoretical. To quantify GenAI's utility in real-world scenarios, he leveraged the widely adopted MITRE ATT&CK framework as a standard for classifying adversary tactics and techniques. By testing popular GenAI portals with fresh, non-public logs and specific code generation requests, Mody systematically uncovered both the impressive potential and significant pitfalls of relying on these systems for critical security tasks.

This talk is particularly relevant for security analysts, incident responders, and malware researchers grappling with the integration of AI into their workflows. It serves as a crucial reality check, highlighting the importance of prompt engineering, understanding GenAI's inherent biases, and recognizing its current limitations in complex analytical tasks. Furthermore, Mody’s findings offer valuable insights for defenders seeking to anticipate how adversaries might weaponize GenAI for developing new attack vectors, particularly given the varying levels of guardrails implemented across different GenAI models.

Background

▶ Watch: Introduction: AI hype vs. real-world malware generation (0:00)

The cybersecurity community has been abuzz with discussions about the transformative, often hyperbolic, potential of Artificial Intelligence. Stories of GenAI crafting sophisticated malware from first principles have circulated widely, fueling both excitement and apprehension. However, as Samir Mody points out, direct evidence of widespread, purely AI-generated malware in the wild remains scarce. This contrasts sharply with the growing reality of AI assisting in various stages of the attack chain, from reconnaissance to payload generation. Mody's research was motivated by this disparity, aiming to empirically evaluate GenAI's current capabilities within a well-defined security context: the MITRE ATT&CK framework.

The MITRE ATT&CK framework has become an industry standard for understanding and describing adversary behavior. It provides a comprehensive, globally accessible knowledge base of tactics and techniques adversaries use against enterprise systems. By framing his investigation around MITRE ATT&CK IDs, Mody sought to assess whether GenAI could accurately identify known adversary behaviors from system logs and, conversely, whether it could generate code snippets corresponding to specific ATT&CK techniques.

Mody’s research, conducted primarily between June and July of "early this year," exclusively utilized free versions of prominent GenAI portals, including ChatGPT, Claude, Gemini, DeepSeek, AI Studio, and Co-pilot (an extension of GPT-4). This approach democratized the research, reflecting the tools readily available to both security professionals and potential adversaries. A key caveat highlighted by Mody is that results may vary if the same tests are conducted now, given the rapid evolution of GenAI models, or if paid versions with potentially different capabilities and token limits are used. The initial interaction with GenAI even included a test of its "sense of humor," demonstrating the variability in responses, from verbose academic essays to concise, pun-recognizing answers, foreshadowing the inconsistencies observed in more technical queries. This foundational work provides a pragmatic look at GenAI, stripping away the hype to reveal its current state as a tool for cybersecurity.

Key Findings

▶ Watch: Deepseek cleverly infers malware from sysmon log details (11:30)

Samir Mody's research yielded several critical insights into the current state of Generative AI in cybersecurity. Firstly, GenAI models exhibit significant variability in their ability to process and interpret security logs. While some models, like Co-pilot and DeepSeek, demonstrated a surprising capacity to identify legitimate MITRE ATT&CK tactics from Sysmon logs, others struggled with basic parsing or hallucinated irrelevant information. A crucial finding was that GenAI often engages in extensive speculation when faced with ambiguous data, frequently attributing non-existent threats or misinterpreting benign activities as malicious. This highlights a fundamental limitation: GenAI is not a Security Information and Event Management (SIEM) system and lacks the contextual understanding necessary for accurate, holistic threat correlation, particularly regarding complex parent-child process relationships.

Secondly, the research underscored the profound impact of prompt engineering and data presentation on GenAI's output. Mody discovered that revealing information in file names (e.g., "nmap.pcap") significantly biased results, as GenAI would often infer details from the filename rather than analyzing the log content itself. This led to a key lesson: to obtain unbiased results, neutral file names are essential. Furthermore, the phrasing of prompts (e.g., "Are there MITRE ATT&CK IDs?" versus "What are the MITRE ATT&CK IDs?") heavily influenced the level of speculation, with more open-ended questions encouraging GenAI to "hunt" for non-existent threats.

Thirdly, GenAI models demonstrated a mixed but concerning capability in generating malicious code. While most models incorporated guardrails to prevent the generation of overtly harmful payloads, these defenses were not uniform. Gemini successfully generated functional x64 shellcode for process injection, despite initial refusals from other models. Perhaps most alarmingly, DeepSeek exhibited a notable lack of guardrails, readily suggesting advanced techniques for persistence, stealth, and data exfiltration (e.g., using system monitor for registry keys, STC host process names, pyinstaller --noconsole, and DLP bypass through encryption), without explicit prompting for malicious intent. This finding is a stark warning for defenders about the potential for less-constrained GenAI models to become potent tools for malware authors.

Finally, the research consistently pointed to Python as the dominant language for GenAI-generated code, likely due to its cross-platform nature and extensive libraries. However, for low-level system interactions like process injection, C/C++ was still required and sometimes successfully generated, albeit with stability and compilation challenges. The limitations in handling granular logs like Procmon (which GenAI appeared not to be trained on) contrasted with its better performance on Sysmon logs, suggesting that GenAI's effectiveness is highly dependent on its training data and the specificity of the log format.

Technical Deep Dive

▶ Watch: GenAI struggles with parent-child process context in logs (13:30)

Mody's technical deep dive was structured into two main parts: assessing GenAI's ability to analyze security logs for MITRE ATT&CK indicators and its capacity to generate malicious code.

Part 1: Log Analysis for MITRE ATT&CK

The first phase involved feeding various system and network logs to GenAI portals and querying them for MITRE ATT&CK IDs.

Mody used common monitoring systems:

  • Procmon (Process Monitor) and Sysmon (System Monitor) from Sysinternals for endpoint activity.
  • Event Tracing (used in EDR solutions) for system events.
  • Wireshark for packet capture (pcap).

Lesson 1: Textual Format is Essential. A critical initial hurdle was that most GenAI portals could not directly process binary log formats. All logs had to be exported to a textual format (e.g., CSV) using publicly available tools.

Network Log Analysis (Pcap):

Mody started with a pcap file generated from an Nmap probe.

  • Initial Test: When given a file named nmap.pcap, ChatGPT successfully identified Discovery as a tactic, specifically related to network probing. Mody was initially impressed, but later realized ChatGPT was "cunningly parsing" the filename, tokenizing "nmap" and inferring the activity. It wasn't analyzing the raw network data.
  • Lesson 2: Neutral File Names. To avoid bias, Mody renamed the file to network.csv (after conversion from pcap). With this neutral filename, ChatGPT's confidence dropped, and it began to produce "spurrious things" alongside the correct Discovery tactic, indicating speculation.
  • Portal Variability:
  • Claude performed well, identifying both Reconnaissance and Discovery.
  • DeepSeek also got parts right, noting Discovery and Reconnaissance.
  • Gemini humorously failed, stating, "I'm sorry, I can only process CSV files and you've given me a CSV file," despite receiving a CSV. It also claimed it lacked tools to parse pcaps, showing complete confusion.

Endpoint Log Analysis (Sysmon):

Next, Mody used a Sysmon log generated from a socially engineered file named party.exe, designed to exhibit common malware behaviors. The prompt was generic: "There's a log file, tell me whether you can find MITRE ATT&CK IDs in it."

  • Size Limitations: Many portals, especially free versions, struggled with large log files. DeepSeek stopped processing after a percentage, while Claude refused due to "not enough tokens."
  • Co-pilot's Performance: Co-pilot (GPT-4) provided useful output, correctly identifying Execution and Defensive Evasion (using PowerShell). However, it also speculated on Discovery and Command and Control without clear basis, demonstrating the danger of GenAI's "hallucinations."
  • DeepSeek's Cleverness: DeepSeek was notably impressive. Despite a neutral filename, it recognized the file as a Sysmon log, indicating an understanding of the log's internal format. It correctly identified Initial Access (as potential malware) and, remarkably, inferred malicious intent by noting the file was from the Downloads directory and had "empty resources" (a Sysmon feature for passing file resources), suggesting it wasn't the legitimate "party" application.
  • Prompt Engineering for Speculation Control: For non-malicious behavior, Mody changed the prompt to "Are there MITRE ATT&CK IDs in here?" (instead of "What are..."). This discouraged aggressive speculation, prompting models like Gemini to ask for more context or admit uncertainty, which is crucial for accurate analysis.
  • Misinterpretation of Context: GenAI struggled with nuanced process relationships. For instance, a reference to consent.exe in the Sysmon log, launched by svc host, led GenAI to incorrectly infer Elevation of Privilege related to party.exe. Mody explained that party.exe already had a manifest for User Access Control (UAC) prompting, making the consent.exe launch unrelated to privilege escalation by party.exe. This highlighted that "GenAI is not SIM" – it doesn't track complex parent-child process linkages effectively.

Endpoint Log Analysis (Procmon):

Mody then shifted to Procmon logs, aiming to narrow the context to party.exe's actions.

  • Granularity Overload: Procmon logs are extremely granular, detailing registry entries, file creation, and access. This overwhelming detail proved too much for GenAI.
  • "Uber Speculation": While ChatGPT didn't complain about file size, it produced "a lot of stuff which was completely off the wall." DeepSeek also engaged in "Uber speculation" and "hallucination."
  • Training Data Gap: Mody concluded that GenAI likely "does not really understand Procmon." Unlike Sysmon, Procmon is a niche tool used by researchers, not commonly used in EDR, suggesting GenAI models are not adequately trained on its specific log format, leading them to treat it as raw text and misinterpret it.

Part 2: Code Generation for Malware Components

The second phase explored GenAI's ability to generate code mimicking malware functionalities, with the use case of testing security product features. Mody focused on tactics not fully covered in Part 1.

Process Injection:

  • Prompt: Mody tried to "sugarcoat" the prompt, asking for code to inject a "hello world" message box into another process.
  • Guardrails: As expected, ChatGPT refused, citing policy violations and the association with malware. This confirmed the presence of guardrails in many portals.
  • Gemini's Success: Surprisingly, Gemini provided working code. It embedded x64 shellcode for "hello world" directly into the output, which successfully performed process injection. Mody confirmed its functionality using his own detection systems.

Drive-by Compromise:

  • Objective: Generate code to automatically download and open a file.
  • Limited Success: ChatGPT and AI Studio only provided basic HTML <a download> attributes, which are not sufficient for a drive-by compromise due to modern browser sandboxing. Gemini explicitly refused, citing malicious intent and browser sandbox limitations, highlighting its inconsistent guardrails compared to the process injection success.

Keylogging:

  • Prompt: Mody again used a "sugarcoated" prompt, asking for code to capture "key presses" for "educational purposes," avoiding the term "keylogger."
  • Claude (Python): Claude provided a Python keylogger using the pinput library. However, this was limited to the specific process where it was executed.
  • C++ Version: Mody requested a C++ version. The generated code did not compile in Visual Studio without a specific macro to suppress warnings about unsafe API calls. When executed, it ran for a while before crashing, though it did capture system-wide keystrokes before failing. This showed instability and compilation issues.
  • Pure C Version: A request for a "pure C" version was more successful. It required the same macro but compiled and ran stably, logging system-wide keystrokes.
  • DeepSeek's Advanced Keylogger (Lack of Guardrails): Mody asked DeepSeek for a global Python keylogger. DeepSeek automatically suggested advanced malicious features without prompting:
  • Persistence: Using the registry, suggesting system monitor as a value name.
  • Stealth: Naming the process STC host (mimicking svchost), and using pyinstaller --noconsole to run without a console window.
  • DLP Bypass: Suggesting encryption of logged data to bypass Data Loss Prevention (DLP) systems.

This was a critical finding: DeepSeek had significantly fewer, if any, guardrails compared to other models, making it a potentially powerful tool for malware authors.

Exfiltration:

  • Prompt: Generate code to upload a zip file to Google Drive with embedded credentials.
  • Guardrails: ChatGPT and Co-pilot refused to embed credentials due to security concerns.
  • AI Studio (Python): AI Studio provided Python code for uploading to Google Drive but still warned against embedded credentials.
  • Manual Encryption Strategy: Mody suggested a method to bypass this: encrypting credentials and bundling them with the decryption key within the executable using PyInstaller (a tool to package Python scripts into standalone executables). While he didn't test this specific setup, he was confident it would work due to the robust explanation and Python's capabilities.

Overall Code Generation Summary:

  • Process Injection and Keylogging worked well.
  • Python was the common language for generated code, except for process injection (which required C/C++).
  • Drive-by compromise attempts failed due to browser sandboxes.
  • Exfiltration was conceptually sound in Python, with a viable path for credential handling, though not fully tested by Mody.

Demo / Proof of Concept

▶ Watch: Deepseek suggests stealthy, persistent keylogger techniques without prompting (22:50)

The entire presentation by Samir Mody served as a comprehensive demonstration of his research into the practical applications and limitations of Generative AI in cybersecurity. Rather than a singular live demonstration, Mody systematically walked the audience through the results of his experiments, showcasing direct outputs from various GenAI models.

For the log analysis portion, he presented screenshots and parsed text outputs from ChatGPT, Claude, Gemini, DeepSeek, AI Studio, and Co-pilot. This included:

  • The initial, misleadingly accurate interpretation of an Nmap pcap due to filename bias.
  • The subsequent, less confident and more speculative analysis when the filename was neutralized.
  • The varying responses to Sysmon logs, highlighting Co-pilot's correct identification of Execution and Defensive Evasion, and DeepSeek's advanced inference of malware based on log format and resource details.
  • The humorous and often confusing outputs from Gemini, such as its refusal to process a CSV file it had just received.
  • The "Uber speculation" and "hallucinations" observed when GenAI models attempted to parse highly granular Procmon logs, demonstrating their current inability to handle such complex data effectively.

For the code generation segment, Mody displayed the actual code snippets generated by the GenAI models. Key demonstrations included:

  • Gemini's functional x64 shellcode for process injection, which successfully displayed a "Hello World" message, validating GenAI's capacity for creating low-level malicious components.
  • The different keylogger implementations: Claude's process-restricted Python version, and the C++ and pure C versions that, despite compilation and stability issues, proved capable of global keystroke capture.
  • Most notably, Mody highlighted DeepSeek's output for the keylogger, which proactively suggested advanced persistence (registry modification), stealth (pyinstaller --noconsole, STC host process name), and DLP bypass (encryption), underscoring its alarming lack of guardrails compared to other models.
  • The exfiltration code provided by AI Studio in Python, along with Mody's conceptual explanation of how encrypted credentials could be bundled using PyInstaller, served as a proof-of-concept for a complete attack chain component.

Through these detailed examples and comparative analyses, Mody effectively demonstrated the current capabilities, inconsistencies, and inherent risks associated with using Generative AI for both defensive threat intelligence and offensive code generation.

Defensive Implications

▶ Watch: Summary of code generation capabilities and language trends (26:00)

Samir Mody's research provides critical insights for cybersecurity defenders navigating the evolving landscape influenced by Generative AI. The findings underscore that while GenAI can be a useful tool, it is far from a silver bullet and introduces new challenges.

  1. Beware of GenAI Speculation and Hallucinations: Defenders must exercise extreme caution when using GenAI for log analysis. Models frequently speculate and "hallucinate" MITRE ATT&CK IDs that are not present or misinterpret benign activities. Over-reliance on GenAI's initial assessments without human verification can lead to alert fatigue, wasted investigative resources, and misprioritization of threats. Always validate GenAI-derived threat intelligence with other tools and human expertise.
  1. GenAI is Not a SIEM: The research clearly demonstrated that GenAI lacks the contextual understanding and correlation capabilities of a dedicated Security Information and Event Management (SIEM) system. It struggles with complex relationships, such as tracking parent-child processes or understanding the full context of system events. Defenders should not attempt to use GenAI as a replacement for robust SIEM or EDR solutions for comprehensive log analysis and threat hunting.
  1. Master Prompt Engineering: The quality of GenAI's output is highly dependent on the prompt. Defenders need to develop sophisticated prompt engineering skills to guide GenAI effectively, avoid biases (e.g., from filenames), and minimize speculation. Phrasing queries carefully (e.g., "Are there X?" instead of "What are X?") can significantly improve accuracy and reduce irrelevant noise.
  1. Anticipate AI-Assisted Attacks: The demonstrated ability of GenAI to generate functional malware components (e.g., process injection shellcode, keyloggers, exfiltration mechanisms) means that adversaries can leverage these tools to accelerate their development efforts. Defenders should anticipate an increase in the sophistication and variety of AI-assisted malware. This necessitates continuous updating of detection rules, behavioral analytics, and threat intelligence to identify these evolving attack patterns.
  1. Focus on Detection of AI-Generated Tactics: The prevalence of Python in GenAI-generated code suggests that defenders should strengthen their detection capabilities for Python-based malware, especially those using libraries like pinput or being packaged with PyInstaller. Furthermore, the specific techniques suggested by models like DeepSeek (e.g., registry-based persistence, pyinstaller --noconsole for stealth, STC host process names) provide actionable intelligence for creating targeted detection signatures and behavioral rules.
  1. Evaluate Guardrail Effectiveness: The stark difference in guardrails between GenAI models (e.g., ChatGPT's refusal vs. DeepSeek's willingness to suggest malicious tactics) is a critical concern. Defenders should be aware that less-constrained models could become favored tools for adversaries. This highlights the need for a dynamic understanding of the GenAI ecosystem and its security implications.
  1. Test Security Products with AI-Generated Code: Security vendors and internal security teams should use GenAI to generate various malicious code samples (within ethical boundaries) to stress-test their EDR, DLP, and other security products. This proactive approach can help identify gaps in current defenses against AI-assisted threats.

Key Takeaways

  • GenAI is a Mixed Bag for Threat Intelligence: While GenAI can assist in identifying MITRE ATT&CK tactics from logs (especially Sysmon), it frequently engages in speculation and hallucinations, requiring significant human oversight.
  • Prompt Engineering is Paramount: The way questions are phrased and data is presented (e.g., neutral filenames) profoundly impacts GenAI's accuracy and propensity for speculation.
  • GenAI is Not a SIEM: It lacks the contextual understanding, correlation capabilities, and process lineage tracking of dedicated SIEM or EDR solutions, making it unreliable for complex security analysis.
  • Malware Generation is Possible, with Varying Guardrails: GenAI can generate functional malicious code components like process injection shellcode and keyloggers, predominantly in Python but also in C/C++. However, guardrails vary significantly, with models like DeepSeek demonstrating a concerning lack of restrictions.
  • Defenders Must Adapt to AI-Assisted Threats: The ease with which GenAI can suggest persistence, stealth, and DLP bypass techniques means adversaries have powerful new tools. Defenders need to enhance detection for Python-based malware and specific AI-suggested tactics.
  • Continuous Learning and Verification are Essential: Given the rapid evolution of GenAI, security professionals must continuously learn about its capabilities and limitations, always verifying its outputs with expert human analysis and existing security tools.

About the Speaker(s)

Samir Mody is a security researcher from K7 Computing, a company specializing in internet security and antivirus software. His work, as demonstrated in this talk at the Virus Bulletin conference, focuses on exploring the practical applications and implications of emerging technologies like Generative AI within the cybersecurity landscape. Mody's research approach is characterized by a pragmatic, empirical evaluation, aiming to demystify complex topics and provide grounded insights for the security community. His expertise lies in understanding adversary tactics and techniques, and in evaluating how new tools can either enhance defensive capabilities or be exploited by attackers.

Reviews

Dr. Zero (Offensive Security Researcher) — SOLID

Honest, pragmatic testing of GenAI against MITRE ATT&CK log analysis and code generation. No novel exploitation, no new defensive technique — just a useful reality check on what ChatGPT and friends actually do when you feed them Sysmon logs or ask for shellcode. Fills a slot, doesn't move the field.

Heather Calloway (CISO) — SOLID

Useful empirical work showing GenAI's actual performance on log analysis and code generation tasks. Worth the time for teams evaluating whether to integrate GenAI into analyst workflows, but the findings won't change how most security programs operate today.

→ Top-rated talks at Virus Bulletin Conference 2025 (VB2025)

All talks from Virus Bulletin Conference 2025 (VB2025)