How govolution/avet works
AVET is a Windows executable payload-evasion toolbox. Its principal workflow selects evasion checks, obtains payload/key/metadata, decodes the payload, and executes it using a chosen method; README documents flexible retrieval, encoding, injection, and process hollowing options. A separate workflow generates adversarial PE examples using a MalConv detector and practical byte manipulations. Edges follow the sampled C/Python references or README; unsampled implementation details are not inferred.
Main entry points: genetic_optimizer.py Genetic optimizer · avet.c AVET executable · avetsvc.c Service runtime · payload_execution_method Payload execution
Components 22
Payload runtime
- AVET executable
source/avet.c - Service runtime
source/avetsvc.c
Runtime techniques
- Sandbox checks
source/implementations/evasion - Payload retrieval
source/implementations/retrieve_data - Payload decoding
source/implementations/encoding - Command execution
source/implementations/command_exec - Payload execution
source/implementations/payload_execution_method - 32-bit hollowing
source/implementations/payload_execution_method/hollowing32.h - 64-bit PE helpers
source/implementations/payload_execution_method/helper_functions/helper_functions64.h - Debug output
source/implementations/debug_print/debug_print.h
Adversarial examples
- Genetic optimizer
source/implementations/gen_adversarial_exe/genetic_optimizer.py - MalConv detector
source/implementations/gen_adversarial_exe/malconv/malconv.py - PE extension
source/implementations/gen_adversarial_exe/practical_manipulations/extend.py - DOS manipulations
source/implementations/gen_adversarial_exe/practical_manipulations/full_dos.py - PE padding
source/implementations/gen_adversarial_exe/practical_manipulations/padding.py - Partial DOS edits
source/implementations/gen_adversarial_exe/practical_manipulations/partial_dos.py - Section injection
source/implementations/gen_adversarial_exe/practical_manipulations/section_injection.py - PE shifting
source/implementations/gen_adversarial_exe/practical_manipulations/shift.py
Data utilities
- Byte-file utilities
source/data_utility.h - Key generator
tools/generate_key/generate_key.c - Raw-to-C converter
tools/data_raw_to_c/data_raw_to_c.c
Other components
- Tool user
Connections 23
- Tool user → AVET executable: runs
- AVET executable → Sandbox checks: runs checks
source/avet.c - AVET executable → Payload retrieval: gets payload
source/avet.c - AVET executable → Payload decoding: decodes payload
source/avet.c - AVET executable → Payload execution: executes payload
source/avet.c - AVET executable → Command execution: runs command
source/avet.c - Service runtime → Sandbox checks: runs checks
source/avetsvc.c - Service runtime → Payload retrieval: gets payload
source/avetsvc.c - Service runtime → Payload decoding: decodes payload
source/avetsvc.c - Service runtime → Payload execution: executes payload
source/avetsvc.c - Payload execution → 32-bit hollowing: supports hollowing
source/implementations/payload_execution_method/hollowing32.h - 32-bit hollowing → 64-bit PE helpers: uses helpers
- AVET executable → Debug output: logs through
source/avet.c - Service runtime → Debug output: logs through
source/avetsvc.c - Genetic optimizer → MalConv detector: scores candidates
source/implementations/gen_adversarial_exe/genetic_optimizer.py - Genetic optimizer → PE extension: applies manipulation
source/implementations/gen_adversarial_exe/genetic_optimizer.py - Genetic optimizer → DOS manipulations: applies manipulation
source/implementations/gen_adversarial_exe/genetic_optimizer.py - Genetic optimizer → PE padding: applies manipulation
source/implementations/gen_adversarial_exe/genetic_optimizer.py - Genetic optimizer → Partial DOS edits: applies manipulation
source/implementations/gen_adversarial_exe/genetic_optimizer.py - Genetic optimizer → Section injection: applies manipulation
source/implementations/gen_adversarial_exe/genetic_optimizer.py - Genetic optimizer → PE shifting: applies manipulation
source/implementations/gen_adversarial_exe/genetic_optimizer.py - Key generator → Byte-file utilities: writes key
tools/generate_key/generate_key.c - Raw-to-C converter → Byte-file utilities: reads and writes
tools/data_raw_to_c/data_raw_to_c.c