FLIRT 시그니처와 라이브러리 함수 식별
정적으로 링크된 라이브러리 코드를 자동으로 식별해 애플리케이션의 실제 로직에만 스크립팅 역량을 집중합니다.
FLIRT 시그니처와 라이브러리 함수 식별은(는) CoddyKit의 무료 Reverse Engineering & Binary Analysis Basics 강의입니다. 이것은 4개 중 4번째 강의입니다. 아래에서 전체 강의를 무료로 읽을 수 있으며, 내장 코드 에디터와 24/7 AI 튜터와 함께 브라우저에서 직접 실습할 수 있습니다. 이 강의는 Reverse Engineering & Binary Analysis Basics 학습 경로의 일부이며, 진행 상황이 웹과 CoddyKit 앱에 동기화됩니다. Reverse Engineering & Binary Analysis Basics 강의에는 총 4개의 강의가 포함되어 있습니다.
이 강의의 일부는 아직 번역되지 않았으며 영어로 표시됩니다.
The Library Noise Problem
You can script disassemblers, automate structure recovery, and patch binaries. But statically-linked programs bundle thousands of library functions (libc, the C++ STL, runtime).
Wading through them by hand wastes enormous time.
Static Linking Inlines Libraries
When a binary is statically linked, library code is copied directly into the executable. There are no import names; printf just looks like another anonymous function.
Identifying these frees you to focus on the author's own code.
What Are FLIRT Signatures?
FLIRT (Fast Library Identification and Recognition Technology) is IDA's system for matching byte patterns of known library functions and auto-naming them.
Ghidra has an equivalent via Function ID databases.
How Pattern Matching Works
A signature records a function's opcode bytes, masking out parts that vary (like relocated addresses).
The tool scans the binary; when bytes match a signature, it applies the known name and prototype.
; masked pattern (.. = varies)
55 8B EC 83 EC .. 56 57Applying Signatures in IDA
IDA ships .sig files for common runtimes. You apply them from File, Load file, FLIRT signature file, then IDA renames matched functions.
Suddenly hundreds of sub_xxxx become recognizable like strcpy and malloc.
Building Your Own Signatures
For uncommon or custom static libraries, generate signatures with IDA's FLAIR tools: parse the .a archive into a pattern file, then compile it to a .sig.
pcf libcustom.a libcustom.pat
sigmake libcustom.pat libcustom.sigGhidra Function ID
Ghidra's Function ID plugin hashes function bodies and stores them in a database. Importing a database for a known runtime auto-labels matches in your target.
You can build databases from libraries you have analyzed before.
Scripting Around Identified Functions
Once libraries are named, your scripts can skip them. Iterate functions and ignore any tagged as library code, analyzing only user functions.
for f in idautils.Functions():
flags = idc.get_func_flags(f)
if flags & idc.FUNC_LIB:
continue # skip recognized library
analyze_user_function(f)Limits and False Matches
Signatures depend on the exact compiler and version. A different optimization level can prevent a match, and short functions may match the wrong library.
Always sanity-check auto-named functions before trusting them.
Pairing with Other Techniques
Combine signatures with string and xref analysis. A function FLIRT names printf should have format-string xrefs nearby; if not, the match may be wrong.
Cross-validation builds confidence.
Applying Prototypes
Identifying a library function also imports its prototype. Once memcpy(dst, src, n) is recognized, the decompiler labels its three arguments correctly.
This propagates type information into callers, sharply improving pseudocode readability.
; before: sub_401200(a, b, c)
; after: memcpy(dst, src, len)Quick Check
What is the main purpose of FLIRT signatures in static analysis?
Recap
You can now cut through library clutter:
- Static linking hides libraries as anonymous functions
- FLIRT (IDA) and Function ID (Ghidra) auto-name them by pattern
- Build custom signatures with FLAIR for uncommon libs
- Script to skip library code, but verify matches
자주 묻는 질문
“FLIRT 시그니처와 라이브러리 함수 식별” 강의는 무료인가요?
네 — “FLIRT 시그니처와 라이브러리 함수 식별” 전체 내용을 이 웹사이트에서 무료로 읽을 수 있습니다. 인터랙티브하게 실습하려면(내장 코드 에디터와 24/7 AI 튜터), CoddyKit PRO로 업그레이드하면 Reverse Engineering & Binary Analysis Basics 강의 전체를 잠금 해제할 수 있습니다. Reverse Engineering & Binary Analysis Basics 강의에는 총 4개의 강의가 포함되어 있습니다.
“FLIRT 시그니처와 라이브러리 함수 식별”에서 뭘 배우나요?
정적으로 링크된 라이브러리 코드를 자동으로 식별해 애플리케이션의 실제 로직에만 스크립팅 역량을 집중합니다. 브라우저에서 직접 실행하는 실습 코드로 Reverse Engineering & Binary Analysis Basics을(를) 배우며, 24/7 AI 튜터가 강의를 진행하면서 질문에 답변해줍니다.
Reverse Engineering & Binary Analysis Basics을(를) 시작하는 데 경험이 필요한가요?
사전 경험은 필요하지 않습니다. CoddyKit의 Reverse Engineering & Binary Analysis Basics은(는) 초급자부터 고급 학습자까지를 위해 구성되어 있으므로, 여기서 시작하거나 처음부터 시작할 수 있으며 자신의 속도대로 진행할 수 있습니다. 이것은 4개 중 4번째 강의입니다.
“FLIRT 시그니처와 라이브러리 함수 식별” 강의는 얼마나 걸리나요?
대부분의 CoddyKit 강의는 약 5~10분이 소요됩니다. 각 강의는 간결하고 인터랙티브하여 꾸준한 진행이 가능하며, 웹과 앱에서 중단한 부분부터 바로 시작할 수 있습니다.
이 Reverse Engineering & Binary Analysis Basics 강의에서 코드를 작성하고 실행할 수 있나요?
네. 모든 Reverse Engineering & Binary Analysis Basics 강의에는 내장 코드 에디터가 포함되어 있으므로, 브라우저에서 바로 실제 코드를 작성하고 실행한 후 즉시 AI 피드백을 받을 수 있습니다 — 로컬 설정이 필요 없습니다.
이 강의의 모든 강의
- IDAPython 및 Ghidra 스크립팅
- 데이터 구조 복구 자동화
- 바이너리 패치 기법
- FLIRT 시그니처와 라이브러리 함수 식별