Back to search

University of Cincinnati

Genetically Improved Malicious Code: Reconstructing Malicious Procedures from Endpoint Telemetry via LLM-Seeded AST Evolution

Abstract

dc:description

Malicious software is rarely available to defenders in source-code form, and in many post-incident settings even the original binary is incomplete, no longer retained, or otherwise unavailable. Instead, defenders more often retain endpoint telemetry, including process creation, file-system activity, registry access, network events, and sandbox reports. This dissertation investigates whether such telemetry, used alongside shared functional constraints, can support the reconstruction of behaviorally faithful candidate implementations of malicious procedures without access to the original source code or binary.To address this problem, the dissertation introduces Genetically Improved Malicious Code (GIMC), a telemetry-guided reconstruction framework that combines three ideas: telemetry-driven behavioral classification, large language model (LLM) seeded code generation, and abstract syntax tree (AST)-level genetic improvement (GI). Candidate programs are generated, repaired, mutated, compiled, functionally tested, and executed in isolated Windows sandbox environments. This staged pipeline uses LLM seeding, AST-level GI, and telemetry-based evaluation to search toward candidate programs that satisfy both functional and behavioral constraints relative to a target malicious procedure. Candidates are then scored through a three-stage fitness process that evaluates compile quality, functional correctness, and behavioral alignment. Behavioral alignment is supplied by a telemetry classifier operating on high-level endpoint events. The dissertation evaluates GIMC on safe Behavioral Subset Implementations (BSIs), which are controlled, benign stand-ins that isolate a single malicious objective while preserving telemetry-relevant execution procedures and omitting harmful payloads. In the end-to-end experiments, these BSIs define the malicious objective of recurring-execution as target classes implemented through command-line (CMD) scheduled tasks, Task Scheduler COM interfaces, and WMI event subscription.The dissertation presents four primary findings. First, high-level endpoint telemetry is sufficiently informative to discriminate tactically distinct implementations of related malicious objectives and thereby provides a usable behavioral signal for later reconstruction. Second, LLM-generated code can be used effectively as structured seed and donor material within AST-level GI rather than only as one-shot generated output. Third, when integrated into GIMC, telemetry classification, LLM seeding, and staged GI can reconstruct candidate implementations that behaviorally and functionally approach recurring-execution BSI targets under controlled conditions. Fourth, reconstruction quality depends strongly on search design. Within the GI loop, selection is the strongest positive driver; repair-after-mutation converts disruptive edits into viable alternatives; bottleneck handling redirects the search when convergence narrows too aggressively; prompt and seed quality materially affect starting conditions; and population size shows the clearest hyperparameter effect in the verified grid-search study.This work establishes telemetry-driven reconstruction as a viable, bounded method for recovering plausible, behaviorally faithful procedure implementations in a safe defensive research setting. It claims neither exact source recovery nor unrestricted malware generation. Instead, it connects malware behavior analysis, telemetry-based learning, LLM-assisted code generation, and genetic improvement into a single dissertation framework for post-mortem malicious-procedure reconstruction.

Degree

thesis:*
Name thesis:degree_name
PhD
Level thesis:degree_level
doctoral
Discipline thesis:degree_discipline
Engineering and Applied Science: Computer Science and Engineering
Grantor dc:publisher
University of Cincinnati
Year dc:date
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Schladt, Michael Edward
Chair dc:contributor.committeechair
  • Gallagher, John

Subjects

dc:subject × 9

Rights

dc:rights
Statement dc:rights
  • unrestricted
  • This thesis or dissertation is protected by copyright: all rights reserved. It may not be copied or redistributed beyond the terms of applicable copyright laws.
Language dc:language
English

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
OhioLINK
Base URL
etd.ohiolink.edu/acprod/odb_etd/ws/oai/oai
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Schladt, Michael Edward. Genetically Improved Malicious Code: Reconstructing Malicious Procedures from Endpoint Telemetry via LLM-Seeded AST Evolution. doctoral thesis, University of Cincinnati, 2026. http://rave.ohiolink.edu/etdc/view?acc_num=ucin1787577302717967