Publishing house Radiotekhnika

"Publishing house Radiotekhnika":
scientific and technical literature.
Books and journals of publishing houses: IPRZHR, RS-PRESS, SCIENCE-PRESS

Тел.: +7 (495) 625-9241


Diagen. Program execution dynamical control method based on control flow passport


E.V. Mankov, R.I. Kompaniets, V.V. Kovalev

Method allows supervising of program control flow directly during its execution. Supervised program preliminary is being patched by checkpoints in source texts (before compilation) or in executable codes (after compilation). The control is performed by the regular LL(*) grammar based Automaton of Dynamic Control (ADC) or so called «program passport» which is generated for the patched program. ADC is the program being executed in parallel with the controlled program but under its management in its address space and containing only allowed (authorized) control flow restricted by the set of control points. The idea of a method consists in grammar representation entrusted or supervised (depending on the task: safe execution or protection accordingly) sets of control flows by checkpoints, placed on subroutines’ control flow graphs, creation of finite state machine (automaton) of dynamic control (ADC) – «program passports» on the basis of regenerated grammar and, finally, in patching program executables. All set of program execution routes are described in the language which sentences are routes of performance of the program in the terms of checkpoints. In this language the regular grammar of ADC is generated and its subsequent automatic code generation and the assembly are performed. Further the program is being patched in such a way when it «doesn’t know» where it transfers the control in checkpoints and when instead of real transferring of control (before patching) the program is transferring the control to the «program passport» library. The patching consists in changeover of all those transfers of control in executable code, where checkpoints were preliminary placed, on the address of only one (controlling) function of ADC, and also in modification of Import Address Table of the controlling program for placing of the imported function. When ADC executes it makes the decision about allowing or prohibition the current transfer of control in every it’s (ADC) state. ADC works under the patched program control and is being called in every patched point of program

© Издательство «РАДИОТЕХНИКА», 2004-2017            Тел.: (495) 625-9241                   Designed by [SWAP]Studio