Detecting Injection: The API Trail
- Watch cross-process API combinations, especially in sequence:
OpenProcesswith strong rights on an unrelated process.VirtualAllocExwithPAGE_EXECUTE_READWRITE.WriteProcessMemoryinto another process.CreateRemoteThread/QueueUserAPC/SetThreadContext.- Individually benign; together, in order, they are a strong injection signal.
- Memory scanning: private, executable, non-image-backed regions (RWX with no file behind them) are suspicious.