0Pricing
Reverse Engineering & Binary Analysis Basics · 강의

실행 중 API와 시스템 호출 추적

API 후크와 시스템 호출 추적기를 사용해 프로그램과 OS의 상호 작용을 관찰하고, 중단점 기반 디버깅에 동작 가시성을 더합니다.

실행 중 API와 시스템 호출 추적은(는) CoddyKit의 무료 Reverse Engineering & Binary Analysis Basics 강의입니다. 이것은 4개 중 4번째 강의입니다. 아래에서 전체 강의를 무료로 읽을 수 있으며, 내장 코드 에디터와 24/7 AI 튜터와 함께 브라우저에서 직접 실습할 수 있습니다. 이 강의는 Reverse Engineering & Binary Analysis Basics 학습 경로의 일부이며, 진행 상황이 웹과 CoddyKit 앱에 동기화됩니다. Reverse Engineering & Binary Analysis Basics 강의에는 총 4개의 강의가 포함되어 있습니다.

이 강의의 일부는 아직 번역되지 않았으며 영어로 표시됩니다.

Watching the Boundary

You can set breakpoints, step through code, and inspect memory and registers. Sometimes the fastest insight comes from watching where a program talks to the operating system.

Every meaningful action (open a file, send a packet) crosses the user/kernel boundary as a system call.

API Calls vs System Calls

An API call is a library function like fopen or CreateFileW. Underneath, it eventually issues a system call into the kernel.

Tracing either layer reveals behavior without reading every instruction.

strace on Linux

strace records every system call a process makes, with arguments and return values.

strace -f -e trace=file ./target
# open('/etc/passwd', O_RDONLY) = 3

ltrace for Library Calls

ltrace hooks the higher library layer, showing calls like strcmp and malloc. This is great for catching password comparisons.

ltrace ./crackme
# strcmp('hunter2', 's3cr3t') = -1

API Monitor on Windows

On Windows, tools like API Monitor and Frida hook calls to kernel32, ws2_32, and friends, logging arguments live.

Procmon complements this by recording file, registry, and process events.

Filtering the Noise

A trace can produce thousands of calls. Filter to the category you care about: file, network, process, or registry.

Focusing keeps you from drowning while still catching the key events.

strace -e trace=network ./target

Hooking with Frida

Frida injects a JavaScript agent to intercept functions at runtime, letting you log or modify arguments. It works across platforms.

Interceptor.attach(Module.getExportByName(null, 'open'), {
  onEnter: function (args) {
    console.log('open ' + args[0].readUtf8String());
  }
});

Correlating with Breakpoints

Use tracing to find where something interesting happens, then switch to your debugger to break exactly there.

If strace shows an open on a hidden config file, set a breakpoint on open to inspect the surrounding logic.

Catching Network Behavior

Combine call tracing with a packet capture. connect and send calls plus a Wireshark capture reveal command-and-control servers and protocols.

strace -e trace=connect,sendto,recvfrom ./target

Anti-Tracing Awareness

Some programs detect ptrace (which strace and debuggers use) and alter behavior. If a program acts differently under strace, suspect anti-debugging.

You will study evasion in depth later; for now, just be aware tracing is not invisible.

Reading Return Values

A call's return value is as telling as its arguments. A connect returning 0 succeeded; an open returning -1 with ENOENT means a missing file the program probes for.

strace prints these inline, helping you understand the program's decisions.

open('/tmp/.lock', O_RDONLY) = -1 ENOENT
# program then creates the lock file

Quick Check

Which tool records every system call a Linux process makes, with arguments and return values?

Recap

Call tracing adds behavioral visibility to your dynamic toolkit:

  • strace for syscalls, ltrace for library calls
  • API Monitor / Procmon / Frida on Windows and beyond
  • Filter the noise, then pivot to breakpoints at the interesting site
  • Watch for anti-ptrace detection

자주 묻는 질문

“실행 중 API와 시스템 호출 추적” 강의는 무료인가요?

네 — “실행 중 API와 시스템 호출 추적” 전체 내용을 이 웹사이트에서 무료로 읽을 수 있습니다. 인터랙티브하게 실습하려면(내장 코드 에디터와 24/7 AI 튜터), CoddyKit PRO로 업그레이드하면 Reverse Engineering & Binary Analysis Basics 강의 전체를 잠금 해제할 수 있습니다. Reverse Engineering & Binary Analysis Basics 강의에는 총 4개의 강의가 포함되어 있습니다.

“실행 중 API와 시스템 호출 추적”에서 뭘 배우나요?

API 후크와 시스템 호출 추적기를 사용해 프로그램과 OS의 상호 작용을 관찰하고, 중단점 기반 디버깅에 동작 가시성을 더합니다. 브라우저에서 직접 실행하는 실습 코드로 Reverse Engineering & Binary Analysis Basics을(를) 배우며, 24/7 AI 튜터가 강의를 진행하면서 질문에 답변해줍니다.

Reverse Engineering & Binary Analysis Basics을(를) 시작하는 데 경험이 필요한가요?

사전 경험은 필요하지 않습니다. CoddyKit의 Reverse Engineering & Binary Analysis Basics은(는) 초급자부터 고급 학습자까지를 위해 구성되어 있으므로, 여기서 시작하거나 처음부터 시작할 수 있으며 자신의 속도대로 진행할 수 있습니다. 이것은 4개 중 4번째 강의입니다.

“실행 중 API와 시스템 호출 추적” 강의는 얼마나 걸리나요?

대부분의 CoddyKit 강의는 약 5~10분이 소요됩니다. 각 강의는 간결하고 인터랙티브하여 꾸준한 진행이 가능하며, 웹과 앱에서 중단한 부분부터 바로 시작할 수 있습니다.

이 Reverse Engineering & Binary Analysis Basics 강의에서 코드를 작성하고 실행할 수 있나요?

네. 모든 Reverse Engineering & Binary Analysis Basics 강의에는 내장 코드 에디터가 포함되어 있으므로, 브라우저에서 바로 실제 코드를 작성하고 실행한 후 즉시 AI 피드백을 받을 수 있습니다 — 로컬 설정이 필요 없습니다.

이 강의의 모든 강의

  1. 디버거 핵심 기능(GDB, WinDbg)
  2. 중단점 설정 및 단계별 실행
  3. 메모리 및 레지스터 검사
  4. 실행 중 API와 시스템 호출 추적
← Reverse Engineering & Binary Analysis Basics(으)로 돌아가기