System and method for generating machine code from a mock application
A system and method for generating a set of instructions for static analysis, for application code utilizing an external initialization engine. The method includes receiving a result from a code hook, the code hook inserted into an application code at an anchor point, the application code deployed in a cloud computing environment, wherein the application code requires an external initialization framework; and generating a set of instructions based on the received result and the anchor point of the application code, in response to emulating execution of the application code.
1. A method of generating a set of instructions for static analysis, comprising:
receiving a result from a code hook, the code hook inserted into an application code at an anchor point, the application code deployed in a cloud computing environment, wherein the application code requires an external initialization framework; and
generating a set of instructions based on the result and the anchor point of the application code, in response to emulating execution of the application code on an initialization emulator corresponding to the external initialization framework.
2. The method of claim 1 , further comprising:
tracing a code object through the application code, the code object associated with the anchor point.
3. The method of claim 1 , further comprising:
determining any one of a value that is called using the external initialization framework or a function that is called using the external initialization framework.
4. The method of claim 1 , wherein the result from the code hook is any one of a value, a function name, a uniform resource locator (URL), or a software library.
5. The method of claim 1 , further comprising:
storing the result from the code hook.
6. The method of claim 1 , wherein the set of instructions includes at least a computer readable code, which is generated based on at least one received result and a corresponding anchor point.
7. The method of claim 1 , wherein the set of instructions includes any one of machine code, bytecode, source code, or interpreted script language.
8. The method of claim 1 , wherein the set of instructions is different f rom the application code.
9. The method of claim 8 , wherein the set of instructions is based on a runtime emulation of executing the application code.
10. A non-transitory computer readable medium having instructions stored thereon which, when executed by a processing circuitry, cause the processing circuitry to:
receive a result from a code hook, the code hook inserted into an application code at an anchor point, the application code deployed in a cloud computing environment, wherein the application code requires an external initialization framework; and
generate a set of instructions based on the result and the anchor point of the application code, in response to emulating execution of the application code on an initialization emulator corresponding to the external initialization framework.
11. A system comprising:
a processing circuitry; and
a memory, the memory containing instructions that, when executed by the processing circuitry, cause the processing circuitry to:
receive a result from a code hook, the code hook inserted into an application code at an anchor point, the application code deployed in a cloud computing environment, wherein the application code requires an external initialization framework; and
generate a set of instructions based on the result and the anchor point of the application code, in response to emulating execution of the application code on an initialization emulator corresponding to the external initialization framework.
12. The system of claim 11 , the memory containing further instructions that, when executed by the processing circuitry, further cause the processing circuitry to:
trace a code object through the application code, the code object associated with the anchor point.
13. The system of claim 11 , the memory containing further instructions that, when executed by the processing circuitry, further cause the processing circuitry to:
determine any one of a value that is called using the external initialization framework or a function that is called using the external initialization framework.
14. The system of claim 11 , wherein the result from the code hook is any one of a value, a function name, a uniform resource locator (URL), or a software library.
15. The system of claim 11 , the memory containing further instructions that, when executed by the processing circuitry, further cause the processing circuitry to:
store the result from the code hook.
16. The system of claim 11 , the memory containing further instructions that, when executed by the processing circuitry, further cause the processing circuitry to:
generate the set of instructions based on at least one received result and a corresponding anchor point, wherein the set of instructions includes at least a computer readable code.
17. The system of claim 11 , wherein the set of instructions includes any one of machine code, bytecode, source code, or interpreted script language.
18. The system of claim 11 , wherein the set of instructions is different from the application code.
19. The system of claim 18 , wherein the set of instructions is based on a runtime emulation of executing the application code.