Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

ghidra-agent-clighidra Agent CLI 搜索

Agent Skill

ghidra-agent-cli 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

329

周安装

14

GitHub Stars

3

下载量

115
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ghidra-agent-cli(ghidra Agent CLI 搜索)
来源仓库:https://github.com/bytelandtechnology/headless-ghidra
仓库路径:skills/ghidra-agent-cli
安装命令:
npx skills add https://github.com/bytelandtechnology/headless-ghidra --skill ghidra-agent-cli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/bytelandtechnology/headless-ghidra --skill ghidra-agent-cli

简介

用于查找、检索和筛选相关信息。

  • 适合根据关键词、任务场景或来源线索快速定位候选结果。
  • 安装命令:npx skills add https://github.com/bytelandtechnology/headless-ghidra --skill ghidra-agent-cli
  • 建议确认权限范围、维护状态及是否会触发联网、命令执行或文件读写。
  • 可结合原始 README 继续核验具体用法。

SKILL.md

ghidra-agent-cli

Description

ghidra-agent-cli is the bundled helper for the Headless Ghidra skill family. It owns the command tree, workspace layout, YAML artifact semantics, output envelope, and runtime behavior for supported Ghidra, Frida, progress, and gate operations.

This skill documents the helper command semantics for agents. It does not define the P0–P4 workflow order, stage routing, or orchestration policy. Those are defined by headless-ghidra/SKILL.md and the per-phase skills. Normal users install and use the skill family; they do not manually install, build, or run this CLI during the workflow.

Prerequisites

  • Node.js >= 18
  • Local Ghidra installation discoverable by ghidra-agent-cli ghidra discover
  • Optional Frida installation for frida * commands

Availability

The helper is installed with the skill family and must remain a sibling of headless-ghidra and the phase skills. If ghidra-agent-cli is unavailable, ask the user to reinstall or refresh the whole skill family rather than installing a separate CLI package inside the target workspace.

Release-managed helper package version: ghidra-agent-cli@1.7.0. This marker is packaging metadata; do not ask users to install it manually during an analysis workflow.

Invocation

ghidra-agent-cli [GLOBAL FLAGS] <COMMAND> [COMMAND FLAGS]

Input

Global flags:

  • --format yaml|json|toml — Output format (default: yaml)
  • --target <id> — Target selector
  • --workspace <path> — Workspace root path
  • --config-dir <PATH> — Override config directory
  • --data-dir <PATH> — Override data directory
  • --state-dir <PATH> — Override state directory
  • --cache-dir <PATH> — Override cache directory
  • --log-dir <PATH> — Override log directory
  • --lock-timeout <SECS> — Lock acquisition timeout in seconds (default: 30)
  • --no-wait — Do not wait for lock acquisition
  • --help — Show help text

Most commands require --target <id> or an active context set via context use.

Output

Commands emit a structured envelope in the selected format:

status: ok
message: "<summary>"
data: <structured payload>

Errors

Errors are structured and stable:

{
  "code": "E_ERROR",
  "message": "description of what went wrong",
  "source": "main",
  "format": "json"
}

Known codes:

  • E_ERROR — General error
  • E_GATE_FAILED — Gate check failed
  • E_LOCK_TIMEOUT — Lock acquisition timed out

Command Groups

GroupPurpose
workspaceInitialize a target workspace and manage phase state
scopeManage scope.yaml
functions / callgraph / types / vtables / constants / strings / importsManage baseline YAML metadata
third-partyManage third-party/identified.yaml, explicit no-third-party reviews, and pristine source metadata
runtimeManage runtime/run-manifest.yaml and runtime/run-records/*.yaml
hotpathManage runtime/hotpaths/call-chain.yaml
metadataManage P3 metadata YAML such as metadata/renames.yaml and metadata/signatures.yaml
substituteManage P4 substitution records under substitution/functions/<fn_id>/
git-checkValidate artifact YAML files are ready for review when a gate asks for it
execution-logAppend and inspect execution records
progressCompatibility helpers for legacy decompilation progress YAML
gateRun aggregate gate checks and inspect gate reports
ghidraDiscover Ghidra, import/analyze, export baseline, apply changes, import custom headers/signatures, decompile, rebuild
fridaDevice, capture, compare, trace, run, and invoke helpers
inspectRead-only binary inspection helpers
contextActive context helpers
pathsShow resolved workspace/runtime paths
validate / helpValidation and help surfaces

Workspace Model

ghidra-agent-cli uses this active workspace layout:

targets/<target-id>/
└── ghidra-projects/

artifacts/<target-id>/
├── pipeline-state.yaml
├── scope.yaml
├── intake/
├── baseline/
│   ├── functions.yaml
│   ├── callgraph.yaml
│   ├── types.yaml
│   ├── vtables.yaml
│   ├── constants.yaml
│   ├── strings.yaml
│   └── imports.yaml
├── runtime/
│   ├── project/
│   ├── fixtures/
│   ├── run-manifest.yaml
│   ├── run-records/
│   └── hotpaths/call-chain.yaml
├── third-party/
│   ├── identified.yaml
│   ├── pristine/<library>@<version>/
│   └── compat/<library>@<version>/
├── metadata/
│   ├── renames.yaml
│   ├── signatures.yaml
│   ├── types.yaml
│   ├── constants.yaml
│   ├── strings.yaml
│   └── apply-records/
├── substitution/
│   ├── template/
│   ├── next-batch.yaml
│   └── functions/<fn_id>/
│       ├── capture.yaml
│       └── substitution.yaml
├── gates/
└── scripts/

workspace init creates the base workspace structure and initializes pipeline-state.yaml plus scope.yaml. Later phases populate the remaining artifacts.

Artifact Semantics

ArtifactMeaning
pipeline-state.yamlCurrent target, current phase, recorded binary path
scope.yamlExplicit scope mode and entry list
baseline/*.yamlBaseline metadata exported from Ghidra or curated through CLI commands
runtime/run-manifest.yamlP1 reproducible runtime manifest and run-record index
runtime/run-records/*.yamlP1 concrete executable or harness run observations
runtime/hotpaths/call-chain.yamlP1 Frida-derived hotpath call-chain priority source
third-party/identified.yamlIdentified libraries, versions, evidence, source paths, pristine paths, and function classifications; libraries: [] records an explicit no-third-party review
third-party/pristine/<library>@<version>/Unmodified third-party source snapshot that must remain pristine
third-party/compat/<library>@<version>/Compatibility modifications separate from pristine source
metadata/*.yamlP3 recovered names, signatures, types, constants, and strings before CLI-mediated Ghidra apply
metadata/apply-records/*.yamlP3 records for serialized metadata apply attempts
substitution/next-batch.yamlP4 substitution worklist
substitution/functions/<fn_id>/*.yamlP4 function fixtures, captures, substitution records, status, and follow-up data
gates/*-report.yamlPersisted gate check reports

Examples

# Initialize a target
ghidra-agent-cli workspace init --target libfoo --binary ./libfoo.so

# Set scope and inspect state
ghidra-agent-cli --target libfoo scope set --mode full --entries 0x1000,0x2000
ghidra-agent-cli --target libfoo workspace state show

# Export and inspect baseline YAML
ghidra-agent-cli --target libfoo ghidra import
ghidra-agent-cli --target libfoo ghidra auto-analyze
ghidra-agent-cli --target libfoo ghidra export-baseline
ghidra-agent-cli --target libfoo functions list

# Import custom headers and signatures into the current Ghidra program
ghidra-agent-cli --target libfoo ghidra import-types-and-signatures --header ./include/custom_types.h --header ./include/custom_api.h

# Runtime, metadata, substitution, and gate checks
ghidra-agent-cli --target libfoo runtime record --key entrypoint --value 0x401000
ghidra-agent-cli --target libfoo hotpath add --addr 0x401000 --reason runtime
ghidra-agent-cli --target libfoo metadata enrich-function --addr 0x401000 --name main --prototype 'int(void)'
ghidra-agent-cli --target libfoo substitute add --fn-id fn_001 --addr 0x401000 --replacement 'return 0;'
ghidra-agent-cli --target libfoo gate check --phase P1

# Frida helpers
ghidra-agent-cli frida device-list
ghidra-agent-cli frida trace --target ./bin/app --functions open,read

Boundary

  • Use this skill to answer: command names, flags, output shape, artifact paths, file semantics, and CLI behavior.
  • Do not use this skill as the source of truth for P0–P4 sequencing, stage ownership, or workflow decisions. Those live in the headless-ghidra skill family.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.11%
按下载量换算43

Claude

30.68%
按下载量换算35

Cursor

19.75%
按下载量换算23

Gemini CLI

10.31%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills