Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计异常

malware-analysis恶意软件分析

Agent Skill

malware-analysis 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

470

周安装

19

GitHub Stars

4

下载量

147
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill malware-analysis

简介

该技能用于恶意软件静态与动态分析,支持二进制反汇编与行为监控。

  • 适用于零日威胁检测、样本 IOC 提取及逆向工程辅助场景。
  • 通过 GitHub 仓库安装,适用于 Codex、Claude、Cursor、Gemini CLI。
  • 需在隔离沙箱环境中运行,避免真实系统感染风险。
  • 输出报告仅供参考,需结合人工研判确认结论有效性。

SKILL.md

Purpose

This skill enables OpenClaw to perform malware analysis on provided samples, using static techniques (e.g., binary disassembly, signature matching) and dynamic techniques (e.g., sandbox execution, behavior monitoring) to detect threats, extract indicators of compromise (IOCs), and generate reports.

When to Use

Use this skill during incident response for suspicious files, in threat hunting to identify zero-day malware, or in reverse engineering workflows to understand malware behavior. Apply it when you have a file hash, binary sample, or network capture, and need automated analysis without manual tools like IDA Pro or Volatility.

Key Capabilities

  • Static analysis: Parse PE/ELF files, extract strings, and match against YARA rules for signatures.
  • Dynamic analysis: Execute samples in an isolated VM, monitor API calls (e.g., via Windows API hooking), and detect persistence mechanisms.
  • Threat reporting: Output JSON reports with IOCs like IP addresses, domains, or registry keys.
  • Integration with external feeds: Query VirusTotal or similar via API for cross-referencing.
  • Custom rule support: Load user-defined YARA rules from a file for targeted detection.

Usage Patterns

Invoke this skill via OpenClaw's CLI or API. Always provide authentication via the $MALWARE_API_KEY environment variable. For CLI, use subcommands like "analyze" with required flags. In code, import the OpenClaw SDK and call methods with parameters. Example pattern: Load a file, specify analysis type, and handle asynchronous results. If analysis fails due to file type, fallback to metadata extraction.

Common Commands/API

Use the OpenClaw CLI for quick tasks:

  • Command: oc malware analyze --file /path/to/sample.exe --type static --yara-rules rules.yar

- Flags: --file (required, path to sample), --type (static or dynamic), --yara-rules (optional, path to YARA file).

  • Command: oc malware dynamic --file sample.zip --timeout 300 --output report.json

- Flags: --timeout (in seconds, e.g., 300 for 5 minutes), --output (path for JSON report).

For API integration:

  • Endpoint: POST /api/malware/analyze

- Body: JSON like {"file": "base64encoded_sample", "type": "dynamic", "rules": ["rule1", "rule2"]} - Headers: Authorization: Bearer $MALWARE_API_KEY - Response: JSON with keys like {"ioc": ["192.168.1.1"], "behavior": "network exfiltration"}

Code snippet for SDK use (Python):

import openclaw
client = openclaw.Client(api_key=os.environ['MALWARE_API_KEY'])
result = client.analyze(file_path='sample.exe', analysis_type='static')
print(result['threats'])  # Output: list of detected threats

Config format for custom setups (YAML file, e.g., config.yaml):

apiKey: $MALWARE_API_KEY
sandbox:
  url: https://sandbox.openclaw.ai
  timeout: 600
yaraRules: /path/to/rules.yar

Integration Notes

Integrate this skill into OpenClaw workflows by adding it as a module in your agent's script. Set $MALWARE_API_KEY in your environment before runtime. For example, in a larger blue-team pipeline, chain this with "reverse-engineering" skills by passing outputs (e.g., feed detected strings to a decompiler). Use the SDK's event hooks for real-time updates, like:

client.on_analysis_complete(lambda data: process_iocs(data['ioc']))

Ensure compatibility with OpenClaw versions >=2.5. If using external tools, map outputs to this skill's JSON format (e.g., {"file_hash": "sha256_value"}).

Error Handling

Always wrap calls in try-except blocks to catch common errors like invalid file types or API failures. For CLI: Check exit codes (e.g., code 1 for authentication errors). For API: Parse HTTP responses (e.g., 401 for missing $MALWARE_API_KEY, 400 for malformed input). Example:

try:
    result = client.analyze(file_path='invalid.file', type='static')
except openclaw.AuthError as e:
    print(f"Auth failed: {e} — Ensure $MALWARE_API_KEY is set")
except openclaw.FileError as e:
    fallback_to_hash_analysis(e.file_path)  # Custom function for metadata only

Log errors with details like error codes and retry transient issues (e.g., network errors) up to 3 times with exponential backoff.

Concrete Usage Examples

  1. Static Analysis of a PE File: To analyze a Windows executable for embedded strings and signatures, run: oc malware analyze --file suspicious.exe --type static --yara-rules default.yar. This outputs a JSON report with strings like "cmd.exe" and threats like "Trojan.Downloader". In code: Use the SDK to process the report and alert if IOCs match known threats.
  2. Dynamic Analysis of a Script: For behavioral analysis of a potential script-based malware, execute: oc malware dynamic --file script.py --timeout 120 --output results.json. This runs the script in a sandbox, monitors for outbound connections, and logs behaviors like "connects to 1.2.3.4". Integrate by parsing results.json in your workflow to block IPs.

Graph Relationships

  • Related to: blue-team cluster (e.g., shares data with intrusion-detection skills).
  • Links to: reverse-engineering (inputs file hashes), cybersecurity (outputs to threat-intelligence tools).
  • Depends on: authentication services (via $MALWARE_API_KEY).
  • Connected via: OpenClaw API endpoints for data flow.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.37%
按下载量换算53

Claude

28.52%
按下载量换算42

Cursor

20.09%
按下载量换算30

Gemini CLI

9.98%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills