Automatic code generation based on Abstract Syntax-based encoding. Application on malware detection code generation based on MITRE ATT&CK techniques

In the last decade, the area of code generation based on natural language was one of the most studied machine learning topics. The paper addresses the problem of code generation from natural language, by generating a syntax-error-free generator model, which creates an Syntax-based model, later translated into code, for generating the structure of the code. Two approaches are comparatively investigated for generating the structure of the program. The first approach generates code templates in the form of an Abstract Syntax Tree, while the second generates the code in the form of an Abstract Syntax Graph, a new introduced concept which reduces the initial redundancy of Abstract Syntax Trees and uses it as a new way to generate code. The proposed methodology is tested on two literature data sets and on malware detection code generation based on a real data set containing MITRE ATT&CK techniques. The results outperform the state-of-the-art Abstract Syntax Tree approaches by 2.46% and the plain text-based approaches with more than 12.5%, highlighting that the proposed methodology learns better the structural representation than other literature approaches. • We propose two approaches for generating the structure of the code. • Abstract Syntax Trees and Abstract Syntax Graphs are proposed for code generation. • Experiments are performed on public data and on malware detection code generation. • Our results outperform the state-of-the-art Abstract Syntax Tree approaches by 2.46%. • The results also outperform the plain text-based related work with more than 12.5%.

Authors

Institutions

Publication Details

Journal
Expert Systems with Applications
Published
2024-11-26
DOI
https://doi.org/10.1016/j.eswa.2024.125821
Citations
5
Primary Topic
Advanced Malware Detection Techniques
Type
article
Field-Weighted Citation Impact
1.75
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Automatic code generation based on Abstract Syntax-based encoding. Application on malware detection code generation based on MITRE ATT&CK techniques

Gabriela Czibula, Alexandru-Gabriel Sîrbu
5 citations
Expert Systems with Applications
Advanced Malware Detection Techniques
1.75
article

Automatic code generation based on Abstract Syntax-based encoding. Application on malware detection code generation based on MITRE ATT&CK techniques

Gabriela Czibula, Alexandru-Gabriel Sîrbu
article en
5 citations

Abstract

In the last decade, the area of code generation based on natural language was one of the most studied machine learning topics. The paper addresses the problem of code generation from natural language, by generating a syntax-error-free generator model, which creates an Syntax-based model, later translated into code, for generating the structure of the code. Two approaches are comparatively investigated for generating the structure of the program. The first approach generates code templates in the form of an Abstract Syntax Tree, while the second generates the code in the form of an Abstract Syntax Graph, a new introduced concept which reduces the initial redundancy of Abstract Syntax Trees and uses it as a new way to generate code. The proposed methodology is tested on two literature data sets and on malware detection code generation based on a real data set containing MITRE ATT&CK techniques. The results outperform the state-of-the-art Abstract Syntax Tree approaches by 2.46% and the plain text-based approaches with more than 12.5%, highlighting that the proposed methodology learns better the structural representation than other literature approaches. • We propose two approaches for generating the structure of the code. • Abstract Syntax Trees and Abstract Syntax Graphs are proposed for code generation. • Experiments are performed on public data and on malware detection code generation. • Our results outperform the state-of-the-art Abstract Syntax Tree approaches by 2.46%. • The results also outperform the plain text-based related work with more than 12.5%.

Expert Systems with ApplicationsVol. 264
Babeș-Bolyai University (RO)
Industry, innovation and infrastructure
Openalex Percentile: Top 14%
Advanced Malware Detection Techniques
1.75
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Automatic code generation based on Abstract Syntax-based encoding. Application on malware detection code generation based on MITRE ATT&CK techniques — Gabriela Czibula, Alexandru-Gabriel Sîrbu · Expert Systems with Applications (2024) | TGRS Research Map | TGRS