What Is Reverse Engineering?
What Is Reverse Engineering?
Engineering is the profession involved in designing, manufacturing, constructing, and maintaining of products, systems, and structures. At a higher level, there are two types of engineering: forward engineering and reverse engineering. Forward engineering is the traditional process of moving from high-level abstractions and logical designs to the physical implementation of a system. In some situations, there may be a physical part without any technical details, such as drawings, bills-of-material, or without engineering data, such as thermal and electrical properties. The process of duplicating an existing component, subassembly, or product, without the aid of drawings, documentation, or computer model is known as reverse engineering. Reverse engineering can be viewed as the process of analyzing a system to: 1. Identify the system's components and their interrelationships 2. Create representations of the system in another form or a higher level of abstraction 3. Create the physical representation of that system Reverse engineering is very common in such diverse fields as software engineering, entertainment, automotive, consumer products, microchips, chemicals, electronics, and mechanical designs. For example, when a new machine comes to market, competing manufacturers may buy one machine and disassemble it to learn how it was built and how it works. A chemical company may use reverse engineering to defeat a patent on a competitor's manufacturing process. In civil engineering, bridge and building designs are copied from past successes so there will be less chance of catastrophic failure. In software engineering, good source code is often a variation of other good source code. In some situations, designers give a shape to their ideas by using clay, plaster, wood, or foam rubber, but a CAD model is needed to enable the manufacturing of the part. As products become more organic in shape, designing in CAD may be challenging or impossible. There is no guarantee that the CAD model will be acceptably close to the sculpted model. Reverse engineering provides a solution to this problem because the physical model is the source of information for the CAD model. This is also referred to as the part-to-CAD process. Another reason for reverse engineering is to compress product development times. In the intensely competitive global market, manufacturers are constantly seeking new ways to shorten lead-times to market a new product. Rapid product development (RPD) refers to recently developed technologies and techniques that assist manufacturers and designers in meeting the demands of reduced product development time. For example, injectionmolding companies must drastically reduce the tool and die development times. By using reverse engineering, a three-dimensional product or model can be quickly captured in
digital form, re-modeled, and exported for rapid prototyping/tooling or rapid manufacturing. Following are reasons for reverse engineering a part or product: 1. 2. 3. 4. 5. The original manufacturer of a product no longer produces a product There is inadequate documentation of the original design The original manufacturer no longer exists, but a customer needs the product The original design documentation has been lost or never existed Some bad features of a product need to be designed out. For example, excessive wear might indicate where a product should be improved 6. To strengthen the good features of a product based on long-term usage of the product 7. To analyze the good and bad features of competitors' product 8. To explore new avenues to improve product performance and features 9. To gain competitive benchmarking methods to understand competitor's products and develop better products 10. The original CAD model is not sufficient to support modifications or current manufacturing methods 11. The original supplier is unable or unwilling to provide additional parts 12. The original equipment manufacturers are either unwilling or unable to supply replacement parts, or demand inflated costs for sole-source parts 13. To update obsolete materials or antiquated manufacturing processes with more current, less-expensive technologies Reverse engineering enables the duplication of an existing part by capturing the component's physical dimensions, features, and material properties. Before attempting reverse engineering, a well-planned life-cycle analysis and cost/benefit analysis should be conducted to justify the reverse engineering projects. Reverse engineering is typically cost effective only if the items to be reverse engineered reflect a high investment or will be reproduced in large quantities. Reverse engineering of a part may be attempted even if it is not cost effective, if the part is absolutely required and is mission-critical to a system. Reverse engineering of mechanical parts involves acquiring three-dimensional position data in the point cloud using laser scanners or computed tomography (CT). Representing geometry of the part in terms of surface points is the first step in creating parametric surface patches. A good polymesh is created from the point cloud using reverse engineering software. The cleaned-up polymesh, NURBS (Non-uniform rational Bspline) curves, or NURBS surfaces are exported to CAD packages for further refinement, analysis, and generation of cutter tool paths for CAM. Finally, the CAM produces the physical part. It can be said that reverse engineering begins with the product and works through the design process in the opposite direction to arrive at a product definition statement (PDS). In doing so, it uncovers as much information as possible about the design ideas that were used to produce a particular product
Reverse engineering
Reverse engineering is the process of discovering the technological principles of a device, object, or system through analysis of its structure, function, and operation. It often involves taking something (e.g., a mechanical device, electronic component, software program, or biological, chemical, or organic matter) apart and analyzing its workings in detail to be used in maintenance, or to try to make a new device or program that does the same thing without using or simply duplicating (without understanding) the original. Reverse engineering has its origins in the analysis of hardware for commercial or military advantage.[1] The purpose is to deduce design decisions from end products with little or no additional knowledge about the procedures involved in the original production. The same techniques are subsequently being researched for application to legacy software systems, not for industrial or defence ends, but rather to replace incorrect, incomplete, or otherwise unavailable documentation.[2]
Contents
[hide]
1 Motivation 2 Reverse engineering of machines 3 Reverse engineering of software o 3.1 Binary software 3.1.1 Binary software techniques 4 Source code 5 Reverse engineering of protocols 6 Reverse engineering of integrated circuits/smart cards 7 Reverse engineering for military applications 8 Legality o 8.1 United States o 8.2 European Union 9 See also 10 References 11 Further reading 12 External links
[edit]
Motivation
Reasons for reverse engineering:
Interoperability. Lost documentation: Reverse engineering often is done because the documentation of a particular device has been lost (or was never written), and the person who built it is no longer available. Integrated circuits often seem to have been designed on obsolete, proprietary systems, which means that the only way to incorporate the functionality into new technology is to reverse-engineer the existing chip and then re-design it. Product analysis. To examine how a product works, what components it consists of, estimate costs, and identify potential patent infringement. Digital update/correction. To update the digital version (e.g. CAD model) of an object to match an "as-built" condition. Security auditing. Acquiring sensitive data by disassembling and analysing the design of a system component.[3] Military or commercial espionage. Learning about an enemy's or competitor's latest research by stealing or capturing a prototype and dismantling it. Removal of copy protection, circumvention of access restrictions. Creation of unlicensed/unapproved duplicates. Materials harvesting, sorting, or scrapping.[4] Academic/learning purposes. Curiosity. Competitive technical intelligence (understand what your competitor is actually doing, versus what they say they are doing). Learning: learn from others' mistakes. Do not make the same mistakes that others have already made and subsequently corrected.
[edit]
[edit]
Binary software
This process is sometimes termed Reverse Code Engineering, or RCE.[8] As an example, decompilation of binaries for the Java platform can be accomplished using Jad. One famous case of reverse engineering was the first non-IBM implementation of the PC BIOS which launched the historic IBM PC compatible industry that has been the overwhelmingly dominant computer hardware platform for many years. An example of a group that reverse-engineers software for enjoyment (and to distribute registration cracks) is CORE which stands for "Challenge Of Reverse Engineering". Reverse engineering of software is protected in the U.S. by the fair use exception in copyright law.[9] The Samba software, which allows systems that are not running Microsoft Windows systems to share files with systems that are, is a classic example of software reverse engineering,[10] since the Samba project had to reverse-engineer unpublished information about how Windows file sharing worked, so that non-Windows computers could emulate it. The Wine project does the same thing for the Windows API, and OpenOffice.org is one party doing this for the Microsoft Office file formats. The ReactOS project is even more ambitious in its goals, as it strives to provide binary (ABI and API) compatibility with the current Windows OSes of the NT branch, allowing software and drivers written for Windows to run on a clean-room reverse-engineered GPL free software or open-source counterpart.
[edit]
Jerry can: British and American forces noticed that the Germans had gasoline cans with an excellent design. They reverse-engineered copies of those cans. The cans were popularly known as "Jerry cans". Tupolev Tu-4: Three American B-29 bombers on missions over Japan were forced to land in the USSR. The Soviets, who did not have a similar strategic bomber, decided to copy the B-29. Within a few years, they had developed the Tu-4, a near-perfect copy. V2 Rocket: Technical documents for the V2 and related technologies were captured by the Western Allies at the end of the war. Soviet and captured German engineers had to reproduce technical documents and plans, working from captured hardware, in order to make their clone of the rocket, the R-1, which began the postwar Soviet rocket program that led to the R-7 and the beginning of the space race. K-13/R-3S missile (NATO reporting name AA-2 Atoll), a Soviet reverseengineered copy of the AIM-9 Sidewinder, was made possible after a Taiwanese AIM-9B hit a Chinese MiG-17 without exploding. The missile became lodged within the airframe, and the pilot returned to base with what Russian scientists would describe as a university course in missile development.
BGM-71 TOW Missile: In May 1975, negotiations between Iran and Hughes Missile Systems on co-production of the TOW and Maverick missiles stalled over disagreements in the pricing structure, the subsequent 1979 revolution ending all plans for such co-production. Iran was later successful in reverse-engineering the missile and are currently producing their own copy: the Toophan. China has reversed engineered many examples of Western and Russian hardware, from fighter aircraft to missiles and HMMWV cars. During the Second World War, British military intelligence at the Bletchley Park centre studied captured German "Enigma" message encryption machines. Their operation was then simulated on electro-mechanical devices called "Bombes" that tried all the possible scrambler settings of the "Enigma" machines to help break the coded messages sent by the Germans.
[edit] Legality
[edit] United States
In the United States even if an artifact or process is protected by trade secrets, reverseengineering the artifact or process is often lawful as long as it is obtained legitimately.[21] Patents, on the other hand, need a public disclosure of an invention, and therefore, patented items do not necessarily have to be reverse-engineered to be studied. (However, an item produced under one or more patents could also include other technology that is not patented and not disclosed.) One common motivation of reverse engineers is to determine whether a competitor's product contains patent infringements or copyright infringements. The reverse engineering of software in the US is generally illegal because most EULA prohibit it, and courts have found such contractual prohibitions to override the copyright law;[clarification needed] see Bowers v. Baystate Technologies.[22][23] Sec. 103(f) of the DMCA (17 U.S.C. 1201 (f)) says that if you legally obtain a program that is protected, you are allowed to reverse-engineer and circumvent the protection to achieve the ability the interoperability of computer programs (i.e., the ability to exchange and make use of information). The section states: (f) Reverse Engineering. (1) Notwithstanding the provisions of subsection (a)(1)(A), a person who has lawfully obtained the right to use a copy of a computer program may circumvent a technological measure that effectively controls access to a particular portion of that program for the sole purpose of identifying and analyzing those elements of the program that are necessary to achieve interoperability of an independently created computer program with other programs, and that have not previously been readily available to the person engaging in the circumvention, to the extent any such acts of identification and analysis do not constitute infringement under this title.
(2) Notwithstanding the provisions of subsections (a)(2) and (b), a person may develop and employ technological means to circumvent a technological measure, or to circumvent protection afforded by a technological measure, in order to enable the identification and analysis under paragraph (1), or for the purpose of enabling interoperability of an independently created computer program with other programs, if such means are necessary to achieve such interoperability, to the extent that doing so does not constitute infringement under this title. (3) The information acquired through the acts permitted under paragraph (1), and the means permitted under paragraph (2), may be made available to others if the person referred to in paragraph (1) or (2), as the case may be, provides such information or means solely for the purpose of enabling interoperability of an independently created computer program with other programs, and to the extent that doing so does not constitute infringement under this title or violate applicable law other than this section. (4) For purposes of this subsection, the term interoperability means the ability of computer programs to exchange information, and of such programs mutually to use the information which has been exchanged.
Antikythera mechanism Benchmarking Bus analyzer Chonda Clean room design CMM Code morphing Connectix Virtual Game Station
1. ^ Chikofsky, E. J.; Cross, J. H., II (1990). "Reverse Engineering and Design Recovery: A Taxonomy". IEEE Software 7 (1): 1317. doi:10.1109/52.43044. 2. ^ A Survey of Reverse Engineering and Program Comprehension. Michael L. Nelson, April 19, 1996, ODU CS 551 Software Engineering Survey. Furthermore, reverse enginerring concept is use to modify or change premade .dll files in an operating systems 3. ^ Internet Engineering Task Force RFC 2828 Internet Security Glossary 4. ^ Irrationalist, The. (2010-10-14) Reverse Engineering. Scrappingmetal.blogspot.com. Retrieved on 2011-05-29. 5. ^ Varady, T (1997). "Reverse engineering of geometric models?an introduction". Computer-Aided Design 29 (4): 255268. doi:10.1016/S00104485(96)00054-1. 6. ^ Chikofsky, E.J.; J.H. Cross II (January 1990). "Reverse Engineering and Design Recovery: A Taxonomy in IEEE Software". IEEE Computer Society: 13 17. 7. ^ Warden, R. (1992). Software Reuse and Reverse Engineering in Practice. London, England: Chapman & Hall. pp. 283305. 8. ^ Chuvakin, Anton; Cyrus Peikari (January 2004). Security Warrior (1st ed.). O'Reilly. 9. ^ Samuelson, Pamela; Scotchmer, Suzanne (2002). "The Law and Economics of Reverse Engineering". Yale Law Journal 111 (7): 15751663. doi:10.2307/797533. JSTOR 797533. 10. ^ "Samba: An Introduction". 2001-11-27. Retrieved 2009-05-07. 11. ^ W. Cui, J. Kannan, and H. J. Wang. Discoverer: Automatic protocol reverse engineering from network traces. In Proceedings of 16th USENIX Security Symposium on USENIX Security Symposium, pp. 114. 12. ^ W. Cui, M. Peinado, K. Chen, H. J. Wang, and L. Irn-Briz. Tupni: Automatic reverse engineering of input formats. In Proceedings of the 15th ACM Conference on Computer and Communications Security, pp. 391402. ACM, Oct 2008. 13. ^ a b P. M. Comparetti, G. Wondracek, C. Kruegel, and E. Kirda. Prospex: Protocol specification extraction. In Proceedings of the 2009 30th IEEE Symposium on Security and Privacy, pp. 110125, Washington, 2009. IEEE Computer Society.
14. ^ Gold, E (1978). "Complexity of automaton identification from given data". Information and Control 37 (3): 302320. doi:10.1016/S00199958(78)90562-4. 15. ^ D. Angluin (1987). "Learning regular sets from queries and counterexamples". Information and Computation 75 (2): 87106. doi:10.1016/0890-5401(87)90052-6. 16. ^ C.Y. Cho, D. Babic, R. Shin, and D. Song. Inference and Analysis of Formal Models of Botnet Command and Control Protocols, 2010 ACM Conference on Computer and Communications Security. 17. ^ Polyglot: automatic extraction of protocol message format using dynamic binary analysis. J. Caballero, H. Yin, Z. Liang, and D. Song. Proceedings of the 14th ACM conference on Computer and communications security, p. 317-329. 18. ^ Wolfgang Rankl, Wolfgang Effing, Smart Card Handbook (2004) 19. ^ T. Welz: Smart cards as methods for payment (2008), Seminar ITSSecurity Ruhr-Universitt Bochum 20. ^ David C. Musker: Protecting & Exploiting Intellectual Property in Electronics, IBC Conferences, 10 June 1998 21. ^ "Trade Secrets 101," Feature Article, October 2008. Memagazine.org. Retrieved on 2011-05-29. 22. ^ Baystate v. Bowers Discussion. Utsystem.edu. Retrieved on 2011-05-29. 23. ^ Gross, Grant. (2003-06-26) Contract case could hurt reverse engineering | Developer World. InfoWorld. Retrieved on 2011-05-29. 24. ^ Council Directive 91/250/EEC of 14 May 1991 on the legal protection of computer programs. Eur-lex.europa.eu. Retrieved on 2011-05-29. 25. ^ P. B. Hugenholtz (2006). The future of the public domain: identifying the commons in information law. Kluwer Law International. pp. 321. ISBN 9789041124357. Retrieved 29 May 2011. 26. ^ Jenkins | Trade Mark and Patent Attorneys | Reverse Engineering. Jenkins.eu. Retrieved on 2011-05-29. 27. ^ DIRECTIVE 2009/24/EC OF THE EUROPEAN PARLIAMENT AND OF THE COUNCIL of 23 April 2009 on the legal protection of computer programs
Eilam, Eldad (2005). Reversing: Secrets of Reverse Engineering. Wiley Publishing. p. 595. ISBN 0764574817. James, Dick (January 19, 2006). "Reverse Engineering Delivers Product Knowledge; Aids Technology Spread". Electronic Design. Penton Media, Inc. Retrieved 2009-02-03. Raja, Vinesh; Fernandes, Kiran J. (2008). Reverse Engineering An Industrial Perspective. Springer. p. 242. ISBN 978-1-84628-855-5. Thumm, Mike (2007). "Talking Tactics". IEEE 2007 Custom Integrated Circuits Conference (CICC). IEEE, Inc. Retrieved 2009-02-03.
Cipresso, Teodoro (2009). "Software Reverse Engineering Education". SJSU Master's Thesis. ProQuest UML. Retrieved 2009-08-22.