Kaisa Sere

84 papers A* 1B 12C 14Journal 26Unranked 31
YearRankTypeTitle / Venue / Authors
2015 conf
Refine@FM
Mats Neovius, Luigia Petre, Kaisa Sere
2014 J jnl
Formal Aspects Comput.
Pontus Boström, Fredrik Degerlund, Kaisa Sere, Marina Waldén
2014 J jnl
Sci. Comput. Program.
Maryam Kamali, Linas Laibinis, Luigia Petre, Kaisa Sere
2014 C conf
ICTAC
Denisa Diaconescu, Luigia Petre, Kaisa Sere, Gheorghe Stefanescu
2013 J jnl
Int. J. Crit. Comput. Based Syst.
Maryam Kamali, Linas Laibinis, Luigia Petre, Kaisa Sere
2013 J jnl
Int. J. Crit. Comput. Based Syst.
Kristian Lumme, Luigia Petre, Petter Sandvik, Kaisa Sere
2013 conf
PECCS
Petr Alexeev, Pontus Boström, Marina Waldén, Mikko Huova, Matti Linjama, Kaisa Sere
2013 J jnl
J. Syst. Archit.
Sergey Ostroumov, Leonidas Tsiopoulos, Juha Plosila, Kaisa Sere
2013 C conf
DSD
Sergey Ostroumov, Leonidas Tsiopoulos, Kaisa Sere, Juha Plosila
2013 conf
HPCS
Luigia Petre, Kaisa Sere
2012 C conf
COORDINATION
Luigia Petre, Petter Sandvik, Kaisa Sere
2012 B conf
IFM
Jesper Berthing, Pontus Boström, Kaisa Sere, Leonidas Tsiopoulos, Jüri Vain
2012 B conf
IFM
Denisa Diaconescu, Ioana Leustean, Luigia Petre, Kaisa Sere, Gheorghe Stefanescu
2011 conf
Refine@FM
Pontus Boström, Fredrik Degerlund, Kaisa Sere, Marina Waldén
2011 conf
NESEA
Maryam Kamali, Luigia Petre, Kaisa Sere, Masoud Daneshtalab
2011 C conf
DSD
Maryam Kamali, Luigia Petre, Kaisa Sere, Masoud Daneshtalab
2011 conf
FSEN
Maryam Kamali, Luigia Petre, Kaisa Sere, Masoud Daneshtalab
2010 conf
FMCO
Luigia Petre, Kaisa Sere, Leonidas Tsiopoulos
2010 J jnl
Int. J. Embed. Real Time Commun. Syst.
Leonidas Tsiopoulos, Kaisa Sere, Juha Plosila
2010 conf
FOCLASA
Maryam Kamali, Linas Laibinis, Luigia Petre, Kaisa Sere
2010 J jnl
Int. J. Embed. Real Time Commun. Syst.
Luigia Petre, Kaisa Sere
2008 B ed.
FM
Jorge Cuéllar, T. S. E. Maibaum, Kaisa Sere
2008 conf
FMCO
Mats Neovius, Kaisa Sere
2007 C conf
ICTAC
Fredrik Degerlund, Kaisa Sere
2007 B conf
ARES
Lu Yan, Kaisa Sere
2007 C conf
PDCAT
Fredrik Degerlund, Marina Waldén, Kaisa Sere
2006 B conf
SEFM
Mats Neovius, Kaisa Sere, Lu Yan, Manoranjan Satpathy
2006 C conf
ICFEM
Luigia Petre, Kaisa Sere, Marina Waldén
2006 C conf
PDCAT
Zheng Liang, Juha Plosila, Lu Yan, Kaisa Sere
2005 J jnl
Sci. Comput. Program.
Juha Plosila, Kaisa Sere, Marina Waldén
2005 C conf
PDCAT
Zheng Liang, Juha Plosila, Lu Yan, Kaisa Sere
2004 conf
ISPDC/HeteroPar
Lu Yan, Kaisa Sere
2004 J jnl
Nord. J. Comput.
Kaisa Sere, Marina Waldén
2004 conf
GCC
Lu Yan, Moisés Ferrer Serra, Guangcheng Niu, Xinrong Zhou, Kaisa Sere
2004 conf
FTDCS
Lu Yan, Kaisa Sere, Xinrong Zhou, Jun Pang
2003 J jnl
Theor. Comput. Sci.
Mauno Rönkkö, Anders P. Ravn, Kaisa Sere
2003 conf
IWFM
Lu Yan, Kaisa Sere
2002 conf
FMCO
Juha Plosila, Kaisa Sere, Marina Waldén
2002 B ed.
IFM
Michael J. Butler, Luigia Petre, Kaisa Sere
2001 J jnl
Nord. J. Comput.
Kaisa Sere, Wang Li
2001 J jnl
Nord. J. Comput.
Kaisa Sere, Marina Waldén
2000 J jnl
Theor. Comput. Sci.
Eric J. Hedman, Joost N. Kok, Kaisa Sere
2000 C conf
COORDINATION
Joost N. Kok, Kaisa Sere
2000 J jnl
Formal Aspects Comput.
Kaisa Sere, Marina Waldén
2000 B conf
IFM
Luigia Petre, Kaisa Sere
1999 conf
WDS@FCT
Luigia Petre, Kaisa Sere, Marina Waldén
1999 C conf
COORDINATION
Luigia Petre, Kaisa Sere
1999 conf
FMOODS
Marcello M. Bonsangue, Joost N. Kok, Kaisa Sere
1999 J jnl
Nord. J. Comput.
Kaisa Sere
1999 B conf
SAFECOMP
Kaisa Sere, Elena Troubitsyna
1999 conf
HSCC
Mauno Rönkkö, Kaisa Sere
1999 conf
World Congress on Formal Methods
Kaisa Sere, Elena Troubitsyna
1998 B conf
MPC
Marcello M. Bonsangue, Joost N. Kok, Kaisa Sere
1998 J jnl
Sci. Comput. Program.
Henk Goeman, Joost N. Kok, Kaisa Sere, Rob T. Udink
1998 J jnl
Formal Methods Syst. Des.
Marina Waldén, Kaisa Sere
1998 B conf
FPL
Samuel Holmström, Kaisa Sere
1997 conf
ASYNC
Juha Plosila, Kaisa Sere
1997 C conf
COORDINATION
Eric J. Hedman, Joost N. Kok, Kaisa Sere
1997 conf
TACS
Kaisa Sere, Marina Waldén
1996 J jnl
Comput. J.
Emil Sekerinski, Kaisa Sere
1996 C conf
COORDINATION
Henk Goeman, Joost N. Kok, Kaisa Sere, Rob T. Udink
1996 conf
ICNN
Michiel C. van Wezel, Joost N. Kok, Kaisa Sere
1996 J jnl
Softw. Concepts Tools
Ralph-Johan Back, Kaisa Sere
1996 conf
FME
V. Kasurinen, Kaisa Sere
1996 J jnl
Inf. Process. Lett.
Kaisa Sere
1996 conf
FME
Marina Waldén, Kaisa Sere
1996 J jnl
J. Softw. Maintenance Res. Pract.
Kaisa Sere, Marina Waldén
1996 J jnl
Sci. Comput. Program.
Ralph-Johan Back, Alain J. Martin, Kaisa Sere
1996 J jnl
Formal Aspects Comput.
Ralph-Johan Back, Kaisa Sere
1995 conf
Formal Methods for Industrial Applications
Michael J. Butler, Emil Sekerinski, Kaisa Sere
1995 B conf
MPC
Ralph-Johan Back, Alain J. Martin, Kaisa Sere
1995 conf
ECIS
Barbro Back, Guido Osteroom, Kaisa Sere, Michiel C. van Wezel
1994 conf
PROCOMET
Ralph-Johan Back, Kaisa Sere
1994 conf
FME
Ralph-Johan Back, Kaisa Sere
1994 A* conf
PODC
Kaisa Sere, Marina Waldén
1993 conf
ISTCS
Kaisa Sere
1991 conf
TPHOLs
Joakim von Wright, Kaisa Sere
1991 J jnl
Struct. Program.
Ralph-Johan Back, Kaisa Sere
1991 conf
PSTV
Kaisa Sere
1991 C conf
FORTE
Ralph-Johan Back, Kaisa Sere
1989 J jnl
Microprocess. Microsystems
Marina Waldén, Kaisa Sere
1989 B conf
MPC
Ralph-Johan Back, Kaisa Sere
1989 J jnl
Sci. Comput. Program.
Ralph-Johan Back, Kaisa Sere
1987 conf
WDAG
Kaisa Sere
docs/CODE_ANALYSIS_APPROACH.md
← Index docs/CODE_ANALYSIS_APPROACH.md markdown
# Code Analysis Approach

This document explains the code analysis methodologies used in the REDB malware analysis framework.

## Disassembly Normalization

The framework implements a sophisticated three-level normalization strategy for disassembled code that provides different levels of abstraction for similarity detection and feature extraction.

### Overall Normalization Strategy

The framework implements a **hierarchical abstraction approach** where each instruction is normalized at three different levels simultaneously:

1. **Level 0 (fully_normalized)**: Maximum abstraction - reduces operands to broad categories
2. **Level 1 (api_normalized)**: Medium abstraction - preserves semantic meaning while normalizing details  
3. **Level 2 (category_normalized)**: Minimum abstraction - maintains architectural specificity

This multi-level approach allows analysts to perform similarity analysis at different granularities depending on their specific detection goals.

### Implementation Architecture

The normalization process follows this workflow:

1. **Token Parsing**: Each instruction is parsed from Binary Ninja's instruction tokens to extract the mnemonic and operands
2. **Multi-Level Processing**: Each operand is processed through all three normalization functions
3. **Instruction Reconstruction**: Normalized instructions are rebuilt with the mnemonic plus normalized operands
4. **Control Flow Tagging**: Control flow instructions get a `<TARGET>` suffix for easier pattern matching

### Level 0: Fully Normalized (Maximum Abstraction)

**Purpose**: Creates the most abstract representation for broad pattern detection across different malware families.

**Transformations**:
- **Registers**: All registers normalized to semantic categories via `normalize_register()`:
  - General purpose registers (EAX, EBX, R8, etc.) → `GPR`
  - Stack/Base pointers (ESP, EBP, RSP) → `PTR` 
  - SIMD registers (XMM0, XMM1) → `XMM`
  - FPU registers (ST0, ST1) → `FPU`
- **Memory Operations**: All memory references → `MEM`
- **Constants**: All immediate values → `CONST`  
- **Data References**: All symbols/data references → `DATA_REF`

**Example**:
```
mov eax, [ebp+8]     → MOV GPR MEM
call CreateFileW     → CALL DATA_REF <TARGET>
add ecx, 0x10        → ADD GPR CONST
```

### Level 1: API Normalized (Medium Abstraction)

**Purpose**: Preserves semantic distinctions while normalizing architectural details. Focuses on behavioral patterns and API usage.

**Transformations**:
- **Registers**: Categorized by functional role:
  - Data registers → `GPR_DATA`
  - Index registers (ESI, EDI) → `GPR_INDEX`  
  - Stack registers (ESP, EBP) → `GPR_STACK`
  - SIMD registers → `XMM_REG`
- **Memory Operations**: Classified by access pattern:
  - Stack access → `MEM_STACK`
  - String operations → `MEM_STRING` 
  - General access → `MEM_GENERAL`
- **Constants**: Categorized by range:
  - Small constants (-16 to 16) → `CONST_{value}`
  - Large constants → `CONST_LARGE`
- **API Calls**: Resolved to specific API names:
  - `CreateFileW` → `API_CreateFileW`
  - Other symbols → `DATA_SYM`

**Example**:
```
mov eax, [ebp+8]     → MOV GPR_DATA MEM_STACK
call CreateFileW     → CALL API_CreateFileW <TARGET>
add ecx, 0x10        → ADD GPR_DATA CONST_LARGE
```

### Level 2: Category Normalized (Minimum Abstraction)

**Purpose**: Maintains architectural specificity while normalizing specific values. Best for detecting variants with similar implementation details.

**Transformations**:
- **Registers**: Architecture-specific categories:
  - 64-bit registers → `REG_64`, with special cases for `REG_64_SP`, `REG_64_BP`
  - 32-bit registers → `REG_32`
  - 16/8-bit registers → `REG_16_8`
- **Memory Operations**: Detailed addressing mode classification:
  - Complex addressing → `MEM_SCALED_INDEX`
  - Base + offset → `MEM_BASE_OFFSET`
  - Direct addressing → `MEM_DIRECT`
- **Constants**: Type-specific classification:
  - Hexadecimal → `CONST_HEX`
  - Decimal → `CONST_DEC`
- **API Calls**: Categorized by functional group:
  - File operations → `API_FILE_OP`
  - Memory operations → `API_MEMORY_OP`
  - Network operations → `API_NETWORK_OP`

**Example**:
```
mov eax, [ebp+8]     → MOV REG_32 MEM_BASE_OFFSET
call CreateFileW     → CALL API_FILE_OP <TARGET>
add ecx, 0x10        → ADD REG_32 CONST_HEX
```

### Key Features and Benefits

#### 1. Multi-Granularity Similarity Detection
- **Level 0**: Detects broad behavioral patterns across malware families
- **Level 1**: Identifies API usage patterns and semantic similarities
- **Level 2**: Finds variants with similar implementation approaches

#### 2. Robust Pattern Matching
- Control flow instructions tagged with `<TARGET>` for easier CFG analysis
- Handles edge cases with fallback mechanisms
- Consistent uppercase normalization prevents case sensitivity issues

#### 3. API-Aware Analysis
The framework includes sophisticated API recognition through the `ApiCategory` enum and resolution methods:
- **File Operations**: CreateFile, ReadFile, WriteFile, etc.
- **Memory Operations**: VirtualAlloc, HeapAlloc, VirtualProtect, etc.  
- **Registry Operations**: RegOpenKey, RegSetValue, etc.
- **Network Operations**: WSASocket, send, recv, etc.
- **Process Operations**: CreateProcess, OpenProcess, etc.

#### 4. Scalable Feature Extraction
Each level produces different hash values for the same function:
- `fully_normalized_disassembly_hash`
- `api_normalized_disassembly_hash`  
- `category_normalized_disassembly_hash`

This enables efficient similarity searches at different abstraction levels in the ClickHouse database.

### Practical Applications for Malware Analysis

#### Threat Hunting Scenarios:

1. **Family Detection** (Level 0): Find samples using similar algorithmic approaches regardless of specific implementation
2. **Variant Analysis** (Level 1): Identify samples with similar API usage patterns and behavioral semantics
3. **Code Reuse Detection** (Level 2): Discover samples sharing specific implementation techniques or code fragments

#### Similarity Metrics Integration:
- Each normalization level can be used with different fuzzy hashing algorithms (ssdeep, TLSH, etc.)
- Level 0 works well with structural similarity metrics
- Level 1 optimal for behavioral similarity analysis  
- Level 2 suitable for implementation-specific pattern matching

This three-tiered approach provides malware analysts with flexible tools for detecting similarities across the threat landscape while maintaining the precision needed for detailed variant analysis.



---

*More code analysis approaches will be documented in additional sections as they are implemented.*