Reverse engineering
Reverse engineering, in computing, is analyzing completed code to understand how each portion contributes to the final program, and the form and function of the product, system, or application. Learn how reverse engineering works and how it is used in security.
What is reverse engineering?
Reverse engineering is the process of taking a finished product, such as a compiled program, a firmware image, a file format, or a network protocol, and working backward to understand how it was built and how it behaves. Instead of starting from a design and building something, the analyst starts from the result and reconstructs the design.
How does reverse engineering work?
Software reverse engineering uses two main approaches:
- Static analysis: examining the program without running it, for example with a disassembler that turns machine code into assembly or a decompiler that approximates higher-level source code.
- Dynamic analysis: running the program in a controlled environment, such as a virtual machine or sandbox, and observing its behavior with a debugger, a network monitor, and system tracing tools.
Analysts combine both to map out functions, data structures, encryption routines, and communication with other systems. Hardware and protocol reverse engineering follow similar ideas with different tools.
Reverse engineering vs. penetration testing
Reverse engineering is about understanding how something works internally. Penetration testing is about attacking a system to find exploitable weaknesses. Testers may reverse engineer a component during a test, but the goals and outputs are different.
Why does reverse engineering matter?
Security researchers reverse engineer malware to understand what it does and build defenses, and analyze software to find vulnerabilities so they can be fixed. Attackers use the same skills to find flaws, bypass protections, or extract secrets, such as hard-coded passwords, from applications. Never embedding credentials in code is one simple defense. Legal limits on reverse engineering vary by country and license.
Frequently asked questions
What is reverse engineering?
Reverse engineering is analyzing completed code to understand how each portion contributes to the final program, and the form and function of the product or system.
Is reverse engineering legal?
It depends on the jurisdiction, the purpose, and the software license. Security research and interoperability are often permitted, but terms vary, so check before you start.
How is reverse engineering used against malware?
Analysts take malware apart to learn how it spreads, what it targets, and how it communicates, then use that knowledge to detect, block, and remove it.
Protect the accounts attackers look for
Secure, rotate, and audit every privileged account across your infrastructure.
Related terms
Malware
Malware is malicious software: a generic term for software designed to execute harmful or disruptive attacks on a server, network, or computer.
Read now →Zero day
A zero day is a new or recently discovered security vulnerability in a computer system or program.
Read now →Software
Software is the set of instructions, stored and executed by hardware, for running tasks on and operating a computer.
Read now →