Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning Linux Binary Analysis

You're reading from  Learning Linux Binary Analysis

Product type Book
Published in Feb 2016
Publisher Packt
ISBN-13 9781782167105
Pages 282 pages
Edition 1st Edition
Languages
Author (1):
Ryan "elfmaster" O'Neill Ryan "elfmaster" O'Neill
Profile icon Ryan "elfmaster" O'Neill

Table of Contents (17) Chapters

Learning Linux Binary Analysis
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
The Linux Environment and Its Tools The ELF Binary Format Linux Process Tracing ELF Virus Technology – Linux/Unix Viruses Linux Binary Protection ELF Binary Forensics in Linux Process Memory Forensics ECFS – Extended Core File Snapshot Technology Linux /proc/kcore Analysis Index

Identifying parasite code characteristics


We just reviewed some common methods for hijacking execution flow. If you can identify where the execution flow points, you can typically identify some or all of the parasite code. In the section Detecting PLT/GOT hooks, we determined the location of the parasite code for the hijacked puts() function by simply locating the PLT/GOT entry that had been modified and seeing where that address pointed to, which, in that case, was to an appended page containing parasite code.

Parasite code can be qualified as code that is unnaturally inserted into the binary; in other words, it wasn't linked in by the actual ELF object linker. With that said, there are several characteristics that can sometimes be attributed to injected code, depending on the techniques used.

Position independent code (PIC) is often used for parasites so that it can be injected into any point of a binary or memory and still execute properly regardless of its position in memory. PIC parasites...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}