{"id":7094,"date":"2025-09-21T10:03:37","date_gmt":"2025-09-21T10:03:37","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2025\/09\/21\/first-ever-ai-powered-malterminal-malware-uses-openai-gpt-4-to-generate-ransomware-code\/"},"modified":"2025-09-21T10:03:37","modified_gmt":"2025-09-21T10:03:37","slug":"first-ever-ai-powered-malterminal-malware-uses-openai-gpt-4-to-generate-ransomware-code","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2025\/09\/21\/first-ever-ai-powered-malterminal-malware-uses-openai-gpt-4-to-generate-ransomware-code\/","title":{"rendered":"First-ever AI-powered \u2018MalTerminal\u2019 Malware Uses OpenAI GPT-4 to Generate Ransomware Code"},"content":{"rendered":"<p>    First-ever AI-powered \u2018MalTerminal\u2019 Malware Uses OpenAI GPT-4 to Generate Ransomware Code<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p>AI-powered malware, known as \u2018MalTerminal\u2019, uses OpenAI\u2019s <a href=\"https:\/\/cybersecuritynews.com\/openai-gpt-4o\/\" target=\"_blank\" rel=\"noreferrer noopener\">GPT-4 model<\/a> to dynamically generate malicious code, including ransomware and reverse shells, marking a significant shift in how threats are developed and deployed.<\/p>\n<p>This discovery follows the recent analysis of PromptLock, another AI-driven malware, indicating a clear trend toward adversaries weaponizing large language models (LLMs).<\/p>\n<p>This discovery was part of the \u201cLLM-Enabled Malware In the Wild\u201d research presented by SentinelLABS at the LABScon 2025 security conference.<\/p>\n<p>The findings highlight how adversaries are beginning to integrate LLMs directly into their malicious payloads, creating challenges for traditional security detection methods.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-promptlock-an-academic-proof-of-concept\"><strong>PromptLock: An Academic Proof-of-Concept<\/strong><\/h2>\n<p>In August 2025, security firm ESET discovered <a href=\"https:\/\/cybersecuritynews.com\/first-ai-ransomware\/\" target=\"_blank\" rel=\"noreferrer noopener\">PromptLock<\/a>, which was initially declared the first-known AI-powered ransomware. It was later revealed to be a proof-of-concept created by researchers at New York University to demonstrate the potential dangers of such threats.<\/p>\n<p>Unlike MalTerminal, which relies on a cloud-based API, PromptLock is written in Golang and uses the Ollama API to run an LLM locally on the victim\u2019s machine.<\/p>\n<p>Based on predefined prompts, PromptLock generates malicious Lua scripts in real-time, making it compatible across Windows, Linux, and macOS.<\/p>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEghEpjvHziNsLOJ2s3NcTamQ5jDxsJoK1_N98BsuUQWl6tX3DTSwH5u9ZESLGIQEJMA90bPcKUAgQi5Jmk-MUcTZMKSFa4sXsnjUyF6t5cvqpuVx6JMAfIDqyEBXgw1KXSC08dRVarP91nijKPAVfXmzTrwpE9Ghnoa-OE046xrmyqsFLCi5601XEcroyLt\/s16000\/prompt%2520stealer.webp?ssl=1\" alt=\"Promptlock\"><figcaption class=\"wp-element-caption\">Promptlock<\/figcaption><\/figure>\n<p>The malware is designed to identify the type of infected system, such as a personal computer, server, or industrial controller, and then autonomously decide whether to exfiltrate or encrypt data using the SPECK 128-bit encryption algorithm.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-malterminal-uncovered\"><strong>MalTerminal Uncovered <\/strong><\/h2>\n<p>While PromptLock was a research project, SentinelLABS <a href=\"https:\/\/www.sentinelone.com\/labs\/prompts-as-code-embedded-keys-the-hunt-for-llm-enabled-malware\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">researchers found<\/a> LLM-enabled malware in the wild. Instead of searching for known malicious code, they focused on artifacts unique to LLM integration.<\/p>\n<p>The team wrote YARA rules to scan for hardcoded API keys and common prompt structures embedded within binaries. This API key hunting methodology successfully identified a cluster of suspicious Python scripts and a compiled Windows executable named <code>MalTerminal.exe<\/code>.<\/p>\n<p>Analysis revealed the malware uses a deprecated OpenAI <a href=\"https:\/\/cybersecuritynews.com\/api-monitoring-tools\/\" target=\"_blank\" rel=\"noreferrer noopener\">API endpoint<\/a>, suggesting it was created before November 2023 and making it the earliest known sample of its kind.<\/p>\n<p>MalTerminal functions as a malware generator. Upon execution, the tool prompts its operator to choose between creating \u2018Ransomware\u2019 or a \u2018Reverse Shell\u2019. It then sends a request to the GPT-4 API to generate the corresponding malicious Python code at runtime.<\/p>\n<p>This approach means the malicious logic is never stored within the initial binary, allowing it to bypass static analysis and signature-based detection tools.<\/p>\n<p>The research also uncovered related scripts, including early versions (<code>TestMal2.py<\/code>) and even a defensive tool named \u2018FalconShield\u2019, which appears to be an experimental <a href=\"https:\/\/cybersecuritynews.com\/free-malware-scanner-linux-systems\/\" target=\"_blank\" rel=\"noreferrer noopener\">malware scanner<\/a> created by the same author.<\/p>\n<p>The emergence of malware like MalTerminal and PromptLock signifies a new challenge for cybersecurity defenders. The ability to generate unique malicious code for each execution makes detection and analysis significantly more difficult.<\/p>\n<p>However, this new class of malware also has inherent weaknesses. Its dependency on external APIs, local models, and hardcoded prompts creates a new attack surface for defenders.<\/p>\n<p>If an API key is revoked or a model is blocked, the malware is rendered inoperable. While LLM-enabled malware is still considered experimental, these examples serve as a critical warning that threat actors are actively innovating, forcing defenders to adapt their strategies to focus on detecting malicious API usage and anomalous prompt activity.<\/p>\n<p class=\"has-text-align-center has-background\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 89%,rgb(169,184,195) 100%)\"><code><strong>Follow Us on <a href=\"https:\/\/news.google.com\/publications\/CAAqMggKIixDQklTR3dnTWFoY0tGV041WW1WeWMyVmpkWEpwZEhsdVpYZHpMbU52YlNnQVAB?hl=en-IN&amp;gl=IN&amp;ceid=IN:en\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Google News<\/a>,\u00a0<a href=\"https:\/\/www.linkedin.com\/company\/cybersecurity-news\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">LinkedIn<\/a>, <a href=\"https:\/\/x.com\/cyber_press_org\" target=\"_blank\" rel=\"noreferrer noopener\">X<\/a>\u00a0to Get Daily Cyber Security Updates and <a href=\"https:\/\/cybersecuritynews.com\/contact-us\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Contact Us<\/a> to Feature Your Stories.<\/strong><\/code><\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/first-ever-ai-powered-malterminal-malware\/\">First-ever AI-powered \u2018MalTerminal\u2019 Malware Uses OpenAI GPT-4 to Generate Ransomware Code<\/a> appeared first on <a href=\"https:\/\/cybersecuritynews.com\/\">Cyber Security News<\/a>.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Guru Baran<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/first-ever-ai-powered-malterminal-malware\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>First-ever AI-powered \u2018MalTerminal\u2019 Malware Uses OpenAI GPT-4 to Generate Ransomware Code AI-powered malware, known as \u2018MalTerminal\u2019, uses OpenAI\u2019s GPT-4 model to dynamically generate malicious code, including ransomware and reverse shells, marking a significant shift in how threats are developed and deployed. This discovery follows the recent analysis of PromptLock, another AI-driven malware, indicating a clear [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1636,129,63],"tags":[130],"class_list":["post-7094","post","type-post","status-publish","format-standard","hentry","category-cyber-attack-news","category-cyber-security","category-cyber-security-news","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/7094"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=7094"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/7094\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=7094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=7094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=7094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}