Notes - MCS
Reverse Engineering
Notes - MCS
Reverse Engineering
  • Reverse Engineering
  • Introduction to Reverse Engineering
    • What is Reverse Engineering (RE)
    • RE Concepts
    • When do we have RE activities?
    • Why RE is Relevant and Required
    • Limitations of RE
    • Legal Framework
    • What RE Recovers?
    • Software Reversing
    • Low-level languages
  • Files and Filetypes
    • Files
    • File extensions
    • File Signature
    • Content Type Obfuscation
  • Android – Static Analysis
    • Java Language
    • Application Entry Points
    • Application Structure
    • AndroidManifest.xml
    • Exercise 1
    • Exercise 2
    • Exercise 3
    • Exercise 4
    • Native Applications
    • Java Native Interface
    • Android Native Development Kit (NDK)
    • Android binary libraries
    • JNI Dynamic Linking
    • JNI Static Linking
    • Exercise 5 and 6
    • Web and Hybrid applications
  • Android – Dynamic Analysis
    • Dynamic Analysis
    • Logs
    • Network MiTM
    • Certificate Pinning
    • Dynamic Code Instrumentation
    • Dynamic Binary Instrumentation
    • FRIDA
  • Binary Analysis
    • Binary Objects
    • Executable Symbols
    • What is inside an Object File?
    • ELF Files
    • ELF Program Headers
    • Dynamic Linker
      • Example
    • Binary Analysis Process
    • Function detection
    • Calling Conventions
    • Common Logic Structures
    • C++ code
  • Emulation and Instrumentation
    • Dynamic Binary Analysis
    • Considerations
    • Processes
    • Dynamic Binary Instrumentation (DBI)
    • DBI with Qiling
  • Obfuscation Techniques
    • Obfuscation Techniques
    • Content Type Obfuscation
    • Code Obfuscation
  • Serial Communication
    • Comunicação paralelo
    • Comunicação série
    • Sincronização entre transmissor e recetor
    • Sincronização de relógio
    • Transmissão de dados
    • Topologias de comunicação série
    • Elementos de uma ligação série
  • A interface RS-232C
    • RS-232C
    • Estrutura da trama
    • Camada física
    • Taxa de transmissão (baudrate)
    • Receção de dados
    • Identificar parâmetros de comunicaçãoIdentificar parâmetros de comunicação
    • Encontrar a UART
    • Captura de sinais
  • Norma SPI
    • Introdução
    • Descrição geral
    • Operação
    • Simulação do master SPI
    • Arquiteturas de ligação
    • Tipos de transferências
    • Configuração de um master SPI
    • Procedimento para identificação dos sinais
    • Exemplo
  • Norma I2C
    • Introdução
    • Caraterísticas básicas
    • Exemplo de interligação num barramento I2C
    • Terminologia
    • Masters e Slaves
    • Sinalização
    • Endereçamento
    • Transferência de dados
    • Clock stretching
    • Múltiplos masters
    • Arbitragem
    • Endereços reservados
Powered by GitBook
On this page
  • System Level Reversing
  • Code Level Reversing
  • Activities
  • Software Reversing
  1. Introduction to Reverse Engineering

Software Reversing

System Level Reversing

Observe how the software is provided and how it operates.

  • Involves analyzing the environment, packaging, and dependencies, and then observing behaviour.

  • May require tools to intercept traffic, system calls, and input/output.

End goal: collect information to direct further analysis.

  • Important to select tools, processes, and overall strategy.

    • Language use, packaging algorithms, encryption

  • Important to characterize behaviour and identify external dependencies.

    • Remote servers involved, files accessed, communication channels used.

Code Level Reversing

Extract design concepts and algorithms from binaries.

  • Compiled to binary code or bytecode.

It’s a complex, architecture-dependent process.

  • Some say “an art form”.

  • Expensive enough that competitive RE is not usually pursued.

    • To fully reverse and reassemble a given competing software (except in some cases).

Makes use of tools capable of representing the low-level language in something “human compatible”.

  • Compiler optimization and obfuscation make this process uncertain.

  • Perfect reconstruction is frequently impossible as low-level languages do not use the same constructs as higher-level ones.

Activities

Understanding the processes.

  • Large-scale observation of the program at a process level.

  • Identification of major components and their functionality.

Understanding the Data.

  • Understand the data structures used.

Understanding Interfaces.

  • Which interfaces exist and how does the process react to them?

Software Reversing

Programs are developed in a high-level programming language.

  • C, C++, C#, Java, Python, Go…

A compiler converts the high-level instructions to low-level instructions.

  • Machine Code: instructions that are executed directly by the CPU.

  • Bytecode: instructions that are executed by a middleware, VM or Interpreter.

Reverse Engineering involves understanding low-level instructions.

  • Which is not easy and is costly.

  • Requires knowledge of the specific target being analyzed (the VM, the CPU).

    • Different CPUs have different opcodes and execution behaviour.

Last updated 1 year ago