api-monitor

api-monitor is a command for Claude Code from SetsunaYukiOvO/x64dbg-mcp. It costs 9 tokens per session (628 once invoked), scanned A, original, MIT.

A debugger setup for watching Windows API calls, which are functions programs use for files, networks, registries, encryption, processes, and memory. It connects to x64dbg or x32dbg, tools for examining running Windows programs.

In plain words
What is it for?
Use it to set breakpoints on imported APIs in a chosen category, such as network or registry activity, and observe when the program calls them.
Why use it?
It narrows debugging to relevant operating-system actions instead of requiring you to inspect every call manually.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Part of the skills plugin — 1 skill, 11 commands shipped together

Good fit Use it to set breakpoints on imported APIs in a chosen category, such as network or registry activity, and observe when the program calls them.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/setsunayukiovo/x64dbg-mcp/api-monitor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/SetsunaYukiOvO/x64dbg-mcp

Made for: Claude Code.

Or install skills, the plugin that ships this one along with the rest of its 1 skill, 11 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api-monitor

README.md
[![agentmods](https://agentmods.dev/badge/commands/setsunayukiovo/x64dbg-mcp/api-monitor/github.svg)](https://agentmods.dev/commands/setsunayukiovo/x64dbg-mcp/api-monitor)
Your own site
<a href="https://agentmods.dev/commands/setsunayukiovo/x64dbg-mcp/api-monitor"><img src="https://agentmods.dev/badge/commands/setsunayukiovo/x64dbg-mcp/api-monitor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for api-monitor

Your own site · 80×15
<a href="https://agentmods.dev/commands/setsunayukiovo/x64dbg-mcp/api-monitor"><img src="https://agentmods.dev/badge/commands/setsunayukiovo/x64dbg-mcp/api-monitor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 628 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00009 $0.00628
Opus 5 $0.00005 $0.00314
Sonnet 5 $0.00002 $0.00126
Haiku 4.5 $0.00001 $0.00063

Measured 12d ago against content hash 8028d7d7f969, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

api-monitor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/commands/api-monitor.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an API monitoring specialist connected to x64dbg/x32dbg via MCP. Set up monitoring for API calls.

"$1" may specify a category: file, network, registry, crypto, process, memory. If empty, set up broad monitoring.

API Categories

File: kernel32.CreateFileA/W, ReadFile, WriteFile, DeleteFileA/W, FindFirstFileA/W Network: ws2_32.connect, send/recv, wininet.InternetOpenA/W, InternetConnectA/W, HttpSendRequestA/W Registry: advapi32.RegOpenKeyExA/W, RegQueryValueExA/W, RegSetValueExA/W, RegDeleteKeyA/W Crypto: advapi32.CryptEncrypt/CryptDecrypt, bcrypt.BCryptEncrypt/BCryptDecrypt, BCryptHash Process: kernel32.CreateProcessA/W, CreateRemoteThread, VirtualAllocEx, WriteProcessMemory Memory: kernel32.VirtualAlloc, VirtualProtect, LoadLibraryA/W, GetProcAddress

Pre-Check

First, call module_get_imports on the main module. This instantly shows which APIs the binary actually imports — you only need to set breakpoints on APIs that appear in the import table (or are dynamically resolved via GetProcAddress).

Setup Steps

For each target API in the selected category:

  1. Call symbol_resolve with the full name (e.g., kernel32.CreateFileW) to get the address.
  2. If resolved, call breakpoint_set at the address.
  3. Call breakpoint_set_log with a descriptive format string:
    • x64: "CreateFileW: path={[RCX]:us} access={RDX:x} share={R8:x}"
    • x86: "CreateFileW: path={[[ESP+4]]:us} access={[ESP+8]:x}"

Report

=== API Monitoring Setup ===

Category: [selected or "All"]
Target: [binary name]

Monitored APIs ([count]):

  [Category Name]:
    [x] APIName    @ 0x... (logging: [parameter description])
    [ ] APIName    - not found in imports
    ...

Breakpoints Set: [count]

Instructions:
  1. Run the target with debug_run
  2. API calls will be logged in the active debugger's log window
  3. To pause on a specific call, modify the breakpoint to remove log-only mode

Tips:
  - Add conditions with breakpoint_set_condition to filter noise
  - Watch for: CreateRemoteThread + WriteProcessMemory = code injection
  - Network: connect -> send reveals C2 communication

Read the full file on GitHub · 60 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 60 lines · 9 tokens per session scan A 8028d7d7f969

Subscribe to this mod's changes

api-monitor is a command published in the GitHub repository SetsunaYukiOvO/x64dbg-mcp (463 stars, last pushed 22d ago), licensed MIT. It adds 9 tokens to every session and 628 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.