# Guardrail-Free LLM Used to Generate Ransomware (Python/Go) Evading 65 of 73 Legacy AV Engines on VirusTotal

> Deep Instinct reports a live Black Hat demonstration in which a guardrail-free LLM generated ransomware in Python, later recompiled in Go, that most legacy AV engines on VirusTotal did not flag (Python: 8/73 detected; Go: 13/73 detected). The claims are vendor-sourced and the demo malware is not attributed to any threat actor.

- **Author:** Threadlinqs Team
- **Published:** 2026-12-01T04:40:31Z
- **Last updated:** 2026-12-01T04:40:31Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7132
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-7132.png
- **ID:** TL-2026-7132
- **Severity:** MEDIUM
- **Category:** MALWARE
- **Status:** MONITORING
- **Detections:** 9 (1 shown free below) · **IOCs:** 6

## Description

A Deep Instinct blog post dated 2025-10-08, written by Brian Black (VP Cloud Technology & Ecosystem), describes a live Black Hat demonstration run by senior solutions engineer Ryan Heath. In the demo, a guardrail-free ('Dark AI') LLM was prompted to produce fully executable ransomware in Python, reportedly in about 30 seconds. The prompt asked for strong encryption, self-exclusion from encryption, skipping files the process lacks permission to touch, and AV-evasion techniques such as those used by EDRKillShifter. The post does not name the LLM.

The resulting sample was uploaded to VirusTotal. Per the post, 8 of 73 engines flagged the Python build and 65 did not. A second version recompiled in Go was flagged by 13 engines. The post says the engines that caught one build tended to miss the other, so only Deep Instinct's deep learning engine (DSX Brain) detected both. Deep Instinct says its engine flagged the Python build immediately after compilation.

Deep Instinct's DIANNA malware-explainability assistant (DSX Companion) attributed these behaviors to the sample: sleep calls intended to evade sandbox analysis, CPU tick monitoring to detect increased AV scanning activity, termination of other security-tool processes, and encrypted sections that hide imports. The author also claims to have produced more than 700 working variants of a single exploit within 24 hours, each bypassing legacy AV in their test environment.

The post cites Check Point Research's Nimbus Manticore report (Iran-linked, targeting European aerospace, defense, manufacturing and telecom) only as an example of low initial VirusTotal detection of real-world malware. Nimbus Manticore is not linked to the demo ransomware. The post cites a Forescout statistic that 55% of AI models failed to create working exploits; Forescout's own study reports that figure as the failure rate for a basic vulnerability research task, and 93% failing the harder exploit development task.

Caveats: single vendor source with marketing framing; no CVEs, hashes, network indicators, malware family name, LLM name or in-the-wild exploitation are stated; independent verification of the 65/73 result was not found. The defensive relevance is that LLM-generated ransomware and rapid variant generation can erode signature- and reactive-ML-based detection, which favors behavioral detection, pre-execution prevention and consistency of detection across rebuilds in different languages.

## MITRE ATT&CK

- T1588.007 Obtain Capabilities: Artificial Intelligence
- T1587.001 Develop Capabilities: Malware
- T1059.006 Command and Scripting Interpreter: Python
- T1497.003 Virtualization/Sandbox Evasion: Time Based Checks
- T1685 Disable or Modify Tools
- T1027.013 Obfuscated Files or Information: Encrypted/Encoded File
- T1027.014 Obfuscated Files or Information: Polymorphic Code

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**TL-2026-7132 LLM-Generated Python Ransomware - Python Interpreter Execution From User-Writable Path or With Crypto/File-Walk/Sleep Arguments** (`TL-2026-7132-SPL-001`)

Detects the Python interpreter (python.exe, pythonw.exe, py.exe) launched from user-writable locations (AppData, ProgramData, Windows\Temp, Users\Public) or with command-line arguments typical of a file-encrypting script: os.walk directory traversal (file and directory discovery, T1083), cryptography/Crypto.Cipher/Fernet usage, and time.sleep delays. This is the execution stage of the LLM-generated Python ransomware demo sample described in TL-2026-7132 (T1059.006) and the sandbox-evading sleep behaviour DIANNA attributed to it (T1497.003). The sample is unnamed and has no published hashes, so the rule is behaviour-first. Vendor-sourced claim; the demo is not attributed to any actor.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1059.006, T1497.003, T1083
- **Data sources:** sysmon, microsoft_defender_xdr
- **Severity:** medium
- **Confidence:** medium

### Splunk SPL

```spl
index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1 earliest=-24h
| eval img=lower(Image), cmd=lower(CommandLine)
| where match(img,"[^a-z0-9]python[0-9]*w?[.]exe$") AND (match(img,"(appdata|programdata|windows.temp|users.public)") OR match(cmd,"(os[.]walk|cryptography|crypto[.]cipher|fernet|time[.]sleep)"))
| stats count min(_time) as first_seen max(_time) as last_seen values(ParentImage) as parents values(CommandLine) as cmdlines by Computer User Image
| eval first_seen=strftime(first_seen,"%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen,"%Y-%m-%d %H:%M:%S")
| table first_seen last_seen Computer User Image parents cmdlines count
```

### Microsoft KQL

```kql
DeviceProcessEvents
| where Timestamp > ago(24h)
| where FileName in~ ('python.exe','pythonw.exe','py.exe')
| where FolderPath has_any ('appdata','programdata','temp','public') or ProcessCommandLine matches regex '(?i)(os[.]walk|cryptography|crypto[.]cipher|fernet|time[.]sleep)'
| project Timestamp, DeviceName, AccountName, FileName, FolderPath, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine, SHA256
| order by Timestamp desc
```

### Sigma

```yaml
title: Python Interpreter Executing From User-Writable Path Or With Crypto/File-Walk/Sleep Arguments
id: 3f6a1c52-8d47-4b19-9e0a-5c7d21b8a401
status: experimental
description: Detects python.exe, pythonw.exe or py.exe launched from user-writable directories or with arguments typical of a file-encrypting script (os.walk, cryptography, Crypto.Cipher, Fernet, time.sleep). Behavioural coverage for LLM-generated Python ransomware (TL-2026-7132).
references:
  - https://www.deepinstinct.com/blog/black-hat-hacker-uses-guardrail-free-LLM-to-create-malware-that-evades-legacy-cyber
author: Threadlinqs Team
date: 2026-12-01
tags:
  - attack.execution
  - attack.t1059.006
  - attack.defense-evasion
  - attack.t1497.003
  - attack.discovery
  - attack.t1083
logsource:
  category: process_creation
  product: windows
detection:
  selection_img:
    Image|endswith:
      - '\python.exe'
      - '\pythonw.exe'
      - '\py.exe'
  selection_path:
    Image|contains:
      - '\AppData\'
      - '\ProgramData\'
      - '\Windows\Temp\'
      - '\Users\Public\'
  selection_cmd:
    CommandLine|contains:
      - 'os.walk'
      - 'cryptography'
      - 'Crypto.Cipher'
      - 'Fernet'
      - 'time.sleep'
  condition: selection_img and (selection_path or selection_cmd)
falsepositives:
  - Developers and data scientists running Python from per-user installs under AppData
  - Legitimate automation or backup scripts that use the cryptography library
level: medium

```

**Known false positives:**

- Developers and data scientists running Python from per-user installs under AppData
- Legitimate automation or backup scripts that use the cryptography library or os.walk

**Tuning notes:** Per-user Python installs (AppData\Local\Programs\Python) are noisy on developer hosts; exclude those hosts or known script paths, or require both the path and the command-line condition. Sleep and CPU-tick evasion happen inside the process and are not visible in process telemetry, so time.sleep and os.walk only appear when passed on the command line (python -c). Replace the sysmon index with the local Sysmon index name.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- TL-2026-7132 Executable Variant Churn - Same User-Writable Path Executed With 3+ Distinct SHA256 Hashes in 24h (locked: unlock with TL Creds)
- TL-2026-7132 Microsoft Defender Protection Disabled via Registry Policy or Preference Value (locked: unlock with TL Creds)
- TL-2026-7132 Ransomware File Rename Burst - 100+ Files Renamed to a New Extension per Minute Across Multiple Directories (locked: unlock with TL Creds)
- TL-2026-7132 PyInstaller-Frozen Python Payload Extracting Crypto Libraries to _MEI Temp Directory (locked: unlock with TL Creds)
- TL-2026-7132 Kernel Driver Loaded From User-Writable Path (EDRKillShifter-Style EDR Killer Driver) (locked: unlock with TL Creds)
- TL-2026-7132 Delay Command (timeout, ping -n, Start-Sleep) Spawned by Python or User-Path Executable (Sandbox Time-Evasion Proxy) (locked: unlock with TL Creds)
- TL-2026-7132 Security-Tool Process/Service Termination via taskkill, sc, net, wmic or PowerShell (locked: unlock with TL Creds)
- TL-2026-7132 Mass File Creation or Overwrite Burst Across Many Directories by Non-System Process (Ransomware Encryption) (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sources

- [Watch a Black Hat Hacker Use a Guardrail-Free LLM to Create Malware That Evades 65 of 73 Legacy Cyber Tools](https://www.deepinstinct.com/blog/black-hat-hacker-uses-guardrail-free-LLM-to-create-malware-that-evades-legacy-cyber)
- [Deep Instinct: Uncovering Obfuscated Malware with DIANNA](https://www.deepinstinct.com/blog/uncovering-obfuscated-malware)
- [Meet DIANNA: Your Expert AI Cyber Analyst](https://www.deepinstinct.com/dsx/dianna-explains)
- [Check Point Research: Nimbus Manticore Deploys New Malware Targeting Europe](https://research.checkpoint.com/2025/nimbus-manticore-deploys-new-malware-targeting-europe)
- [The Register: Iran targeting European aerospace](https://www.theregister.com/2025/09/23/iran_targeting_european_aerospace/)
- [Forescout: Artificial Exploits, Real Limitations - How AI Cyber Attacks Fall Short](https://www.forescout.com/blog/artificial-exploits-real-limitations-how-ai-cyber-attacks-fall-short/)
- [Help Net Security: Deep Instinct DIANNA provides malware analysis for unknown threats](https://www.helpnetsecurity.com/2024/05/02/deep-instinct-dianna/)
- [AWS Machine Learning Blog: Build AI-powered malware analysis using Amazon Bedrock with Deep Instinct](https://aws.amazon.com/blogs/machine-learning/build-ai-powered-malware-analysis-using-amazon-bedrock-with-deep-instinct/)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-7132
