Automating Malware Reverse Engineering with Local LLMs, PyGhidra and Neo4j Graphs
A researcher has built an automated system that combines PyGhidra, Neo4j and a local large language model to speed up the initial analysis of malicious binaries. The project addresses the main drawbacks of sending decompiled code to cloud LLMs: leakage of indicators of compromise, possible censorship of sensitive modules, and rapid context overflow when a sample contains 100–200 functions.
Architecture and data flow
The pipeline begins with ghidra_extractor.py, which uses PyGhidra to disassemble and decompile a binary without launching the Ghidra GUI. For every function the extractor records its address, name, size, cyclomatic complexity, decompiled C pseudocode (truncated at 6000 characters with a 30-second timeout), call-graph neighbors, string references and imported API calls. Metadata such as PE format, architecture and all standard file hashes are also stored. All extracted entities are loaded into Neo4j as distinct node types: Sample, Function, String, Import, Analysis, Capability and Behavior.
Next, worker.py and mcp.py iterate over functions and send each one to a locally hosted Qwen3 model running inside LM Studio. The prompt includes both the decompiled code and the function’s position in the call graph, allowing the model to understand caller-callee relationships. The model returns structured JSON describing the function’s purpose, extracted IOCs, tags, network indicators, command-line usage and anti-analysis techniques.
aggregator.py then aggregates tags across all functions into Capability nodes that carry a strength weight reflecting how often each capability appears. builder.py combines these capabilities with the call graph to detect higher-level behavioral patterns such as file encryption combined with network activity. Finally, generator.py produces a human-readable report by querying the enriched graph.
Graph data model
Storing functions in a flat table makes it difficult to answer questions such as whether five anti-debug functions call one another. In the Neo4j model a Function node is connected to other Function nodes via CALLS edges, to String nodes via REFERENCES edges, and to Import nodes via USES edges. Capability and Behavior nodes sit above the function level and are linked through weighted relationships, enabling concise Cypher queries instead of recursive joins.
Validation on WannaCry
The pipeline was tested on a WannaCry sample obtained from MalwareBazaar. Processing 195 functions took 126 minutes on a machine with 60 GB RAM and an Nvidia 5070 Ti. The generated report identified three behavioral patterns with 100 percent confidence: File Encryption (supported by 40 functions), C2 Communication and Anti-Analysis. A publicly available YARA rule confirmed the anti-debug findings discovered by the system.
The complete source code is available in the repository Dvoranchik/MLMalwareAnalyzer. Future work will focus on refining call-graph traversal and prompt engineering to surface additional indicators.
Related articles
Brute-Force Campaign Targets Exposed Microsoft SQL Server Instances with Monero Miner and Gh0st RAT
An active campaign since early October 2026 is brute-forcing passwords on internet-exposed Microsoft SQL Server instances and deploying a Monero cryptocurrency miner along with a variant of the Gh0st RAT remote access trojan. Fortinet detailed the infection chain in a report published on November 12, 2026, starting with the Go-based dllhost.exe binary that uses the Naabu port scanner to locate open TCP port 1433. The malware then downloads dwm.exe, a .NET brute-forcer that tests over 2,700 passwords against common accounts such as sa and admin using up to 500 concurrent threads. Successful logins enable xp_cmdshell to execute commands, after which the attackers drop a scheduled task mimicking Microsoft updates and install both the miner and the persistent RAT. The campaign relies solely on weak or reused passwords and does not exploit any software vulnerability. Fortinet rates the threat as high and recommends keeping SQL Server behind firewalls or VPNs while disabling xp_cmdshell when unused.
Fake GTA VI Installer Distributed via Google Colab Steals Steam Credentials and Crypto Wallet Data
Researchers at cybersecurity firm Cynet have uncovered a fake Grand Theft Auto VI installer for PC that targets Steam accounts and cryptocurrency wallets. The malware is promoted through a Google Colab notebook that leads users to a fraudulent WooCommerce store page called Windows Software Hub. The download archive contains only a small 796 KB executable and a README file instructing victims to run the file as administrator and disable security features. Once executed, the malware bypasses sandboxes and virtual machines, injects code into browser processes, and harvests passwords, cookies, browsing data, and crypto wallet information while also swapping clipboard addresses. The campaign coincides with growing scam activity around the unreleased title, which Rockstar Games has not yet scheduled for PC release. Earlier reports from Netcraft documented multiple GTA VI-related fraud schemes between July and October 2026.
Cloudflare Blocks 18.2 Million DDoS Attacks in Q3 2026 Amid Shifting Attack Patterns
Cloudflare reported blocking 18.2 million network-layer DDoS attacks between July and September 2026, marking a 208% increase from the same period in 2025. The company recorded an average of roughly 8,200 attacks per hour, with 96% lasting under ten minutes and 98% staying below 1 Gbps. Large-scale attacks exceeding 1 Tbps dropped sharply from 805 in Q2 to 251 in Q3, a decline Cloudflare links to early 2026 law enforcement actions against four IoT botnets. Attack vectors shifted notably, with CLDAP reflection falling 99.5% while DNS amplification rose 215% and UDP floods grew 122%. The United States led targeted countries, followed by China and Indonesia, while media and publishing remained the most affected industry. Mirai variants accounted for 46.5% of network-layer bytes, with new families such as Dysphoria and Evooo1Bot emerging to replace dismantled botnets.
Freshko: Open-Source Rust Tool Offers Local File and URL Scanning Without Data Upload
A developer has released Freshko, a compact 400x640 pixel desktop application built in Rust that performs quick local checks on files, folders, and URLs without sending data to external services. The tool uses YARA-X rules for file scanning, follows up to eight redirects while querying Cloudflare's filtering DNS, and scores processes for potential cryptocurrency miners based on names, arguments, and launch paths. It explicitly avoids acting as a full antivirus solution, instead providing transparent results that list any skipped items or incomplete checks. Freshko runs on macOS and Windows, keeps all scan results in memory only, and disables system proxies during URL checks to prevent DNS rebinding attacks. The project includes performance benchmarks on Apple Silicon and addresses common pitfalls such as high CPU usage false positives and incomplete disk scans. Unlike VirusTotal or Cloudflare URL Scanner, Freshko performs all file analysis locally and never makes scan reports public.