forinxy/-skills/svc

Claude Code and agent skill by forinxy/-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

SVC 系统调用指令追踪与分析(供安全研究/自有应用)。当 App 用内联汇编直接发 svc 指令绕过 libc 标准库函数(导致 Frida hook libc 失效)时,用于识别 svc 指令、解析 syscall 编号、还原它在做什么系统调用。涵盖 arm64 svc 机制、syscall 号对照、追踪手段。

Install

npx vskill@latest install forinxy/-skills/svc

SKILL.md

The same SKILL.md was published earlier as norastory/reverse-skill/svc.

SVC 指令追踪与分析

有些加固/反调试 App 不调用 libc 的 open/read/ioctl,而是内联汇编直接发 `svc #0` 触发系统调用,绕过你在 libc 层下的 hook。这个技能教你识别和追踪它们。

一、原理:arm64 的 syscall 怎么发

  • arm64 上系统调用通过 svc #0 指令触发。
  • syscall 编号放在 `x8` 寄存器,参数依次放 x0~x5,返回值在 x0。
  • 例:openat 的号是 56,App 会先 mov x8, #56 再 svc #0。

二、为什么普通 hook 失效

  • Frida Interceptor.attach 挂的是函数地址(如 libc 的 openat)。
  • App 直接 svc 就没经过 libc 函数,hook 点根本不触发 → 你以为没调用,其实偷偷调了。

三、怎么找到 svc 指令

  1. 静态:在 IDA/反汇编里搜 SVC 指令(analyze_functions + 反汇编后 grep "svc")。
  • 看它前面给 x8 赋的值 = syscall 号,对照下表知道在干嘛。
  1. 动态:
  • Frida Stalker 追踪指令流,过滤 svc 类型指令,打印当时的 x8/x0-x5。
  • 或用 ptrace(PTRACE_SYSCALL)单步到每个 syscall,读寄存器。
  • 内核层:kprobe 挂 syscall 入口(见 kernel-system-hook)。

四、常用 arm64 syscall 号对照(检测常用的)

号(x8)syscallApp 拿来干嘛
56openat读 /proc/self/maps、/system/bin/su、/proc/net/tcp
63read读上面打开的文件内容做检测
62lseek—
57close—
79newfstatatstat 检测文件是否存在(su/frida)
260wait4反调试(检测被 trace)
117ptrace自己 ptrace 自己防调试
129kill(0)检测进程是否存在

五、拿到 svc 调用后怎么应对

  • 知道它在读 /proc/self/maps 查 frida → 在内核层或 svc 返回处改返回内容(隐藏 frida 段)。
  • 知道它 ptrace(PTRACE_TRACEME) 防调试 → hook 让它返回成功但不实际生效,或抢先占坑。
  • 配合 kernel-system-hook 在 syscall 层动手。

边界

用于自有 App / 授权样本的反调试机制分析、加固研究、学习 syscall 层原理。不协助攻击他人系统。

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
40
Repository forks
17
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/forinxy/-skills/svc/badge)](https://verified-skill.com/skills/forinxy/-skills/svc)

Something wrong with this skill or its page? Tell us.