Malware Analysis & Sandboxing

Malware Analysis & Sandboxing is a skill for Claude Code from Masriyan/Claude-Code-CyberSecurity-Skill. It costs 28 tokens per session (3,688 once invoked), scanned A, original, MIT.

A method for examining suspicious files safely and understanding what they do. Static analysis studies a file without running it, while dynamic analysis observes it inside an isolated sandbox.

In plain words
What is it for?
Use it to inspect suspicious binaries or scripts, interpret sandbox reports, create YARA rules and indicators of compromise, configure isolated analysis environments, and study processes, files, registries, or network activity.
Why use it?
It helps identify malware behaviour, family similarities, and detection clues without exposing the main computer to the sample.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/yara_generator.py --samples ./malware_samples/ --output rules.yar.

Part of the cybersecurity plugin — 20 skills shipped together

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Masriyan/Claude-Code-CyberSecurity-Skill
agentmods
npx agentmods add skills/masriyan/claude-code-cybersecurity-skill/05-malware-analysis

Made for: Claude Code.

Or install cybersecurity, the plugin that ships this one along with the rest of its 20 skills.

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 Malware Analysis & Sandboxing

README.md
[![agentmods](https://agentmods.dev/badge/skills/masriyan/claude-code-cybersecurity-skill/05-malware-analysis.svg)](https://agentmods.dev/skills/masriyan/claude-code-cybersecurity-skill/05-malware-analysis)
Your own site
<a href="https://agentmods.dev/skills/masriyan/claude-code-cybersecurity-skill/05-malware-analysis"><img src="https://agentmods.dev/badge/skills/masriyan/claude-code-cybersecurity-skill/05-malware-analysis.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,688 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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.00028 $0.03688
Opus 5 $0.00014 $0.01844
Sonnet 5 $0.00006 $0.00738
Haiku 4.5 $0.00003 $0.00369

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

Security

Grade A, and why

Malware Analysis & Sandboxing scanned grade A with 1 finding 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 6d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/static_analyzer.py, scripts/yara_generator.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl "https://www.virustotal.com/api/v3/files/<sha256>" -H "x-apikey: YOUR_KEY"
skills/05-malware-analysis/SKILL.md · 400 lines

How it starts

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

Malware Analysis & Sandboxing

Purpose

Enable Claude to assist with malware analysis workflows including static analysis of file properties and code, dynamic behavioral analysis interpretation, YARA rule generation, sandbox configuration, and malware family identification. Claude analyzes provided artifacts directly and orchestrates scripts for automated processing.

Safety Warning: Never execute suspicious files outside of isolated, controlled environments. Use dedicated VMs or sandboxes with network isolation and snapshot capability.


Activation Triggers

This skill activates when the user asks about:

  • Analyzing a suspicious file, binary, or script
  • Generating YARA rules for malware detection
  • Setting up a malware analysis sandbox
  • Interpreting Cuckoo/CAPE/AnyRun sandbox reports
  • Identifying malware family or behavior
  • Creating IOCs from malware samples
  • Static analysis of PE/ELF files
  • Memory forensics for malware artifacts
  • Behavioral analysis (process creation, network, registry, file changes)

Prerequisites

pip install yara-python pefile python-magic requests ssdeep

Recommended analysis tools:

  • Cuckoo Sandbox / CAPE — Automated dynamic analysis
  • VirusTotal API — Multi-engine scanning and intel
  • YARA — Pattern matching engine
  • Ghidra / IDA Pro — Deep binary analysis (→ Skill 04)
  • Volatility 3 — Memory forensics
  • DIE (Detect-It-Easy) — Packer/compiler detection
  • Pestudio — Windows PE static analysis

Core Capabilities

1. Static Malware Analysis

When the user provides a suspicious file or hash for analysis:

Claude performs analysis in this order:

Step 1 — File Identification:

file malware.exe              # File type from magic bytes
md5sum malware.exe            # MD5 hash (legacy, for lookups)
sha256sum malware.exe         # SHA-256 (primary identifier)
python scripts/static_analyzer.py --file malware.exe --hashes

Step 2 — Threat Intelligence Lookup:

  • Query VirusTotal (requires API key or paste hash in browser)
  • Check MalwareBazaar, AbuseIPDB, URLhaus
  • Search for existing analysis reports
# VirusTotal hash lookup via API
curl "https://www.virustotal.com/api/v3/files/<sha256>" -H "x-apikey: YOUR_KEY"

Read the full file on GitHub · 400 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 400 lines · 28 tokens per session scan A 09ec71d6300d

Subscribe to this mod's changes

Malware Analysis & Sandboxing is a skill published in the GitHub repository Masriyan/Claude-Code-CyberSecurity-Skill (397 stars, last pushed 3d ago), licensed MIT. It adds 28 tokens to every session and 3,688 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

analyzing-malware-behavior-with-cuckoo-sandbox

Detonate malware samples in Cuckoo Sandbox to observe runtime behavior — process creation, file system and registry changes, network communications, and API calls — and generate behavioral reports for classification and IOC extraction. Use when a sample has passed static triage and needs dynamic/behavioral analysis…

mukul975/Anthropic-Cybersecurity-Skills · 93 tokens

analyzing-packed-malware-with-upx-unpacker

Identifies and unpacks UPX-packed malware samples, including binaries with modified UPX magic bytes or headers that block automated decompression, to recover the original executable for static analysis. Use when a sample shows high entropy, minimal imports, or only LoadLibrary/GetProcAddress in its import table, or…

mukul975/Anthropic-Cybersecurity-Skills · 88 tokens

analyzing-pdf-malware-with-pdfid

Analyzes malicious PDF files using PDFiD, pdf-parser, and peepdf to identify embedded JavaScript, shellcode, exploits, and suspicious objects without opening the document. Determines the attack vector and extracts embedded payloads for further analysis. Activates for requests involving PDF malware analysis, malicious…

mukul975/Anthropic-Cybersecurity-Skills · 84 tokens

performing-dynamic-analysis-in-a-sandbox

Runs a sample in an instrumented sandbox to observe behavior: process tree, file and registry changes, network activity, and persistence, then summarizes the behavioral report into capabilities and IOCs. Activates for requests to detonate a sample, do dynamic or behavioral analysis, or interpret sandbox output.

meltedinhex/analyst-ai-pack · 68 tokens

analyzing-packed-malware-with-upx-unpacker

Identifies and unpacks UPX-packed and other packed malware samples to expose the original executable code for static analysis. Covers both standard UPX unpacking and handling modified UPX headers that prevent automated decompression. Activates for requests involving malware unpacking, UPX decompression, packer…

26zl/cybersec-toolkit · 79 tokens

analyzing-malware-behavior-with-cuckoo-sandbox

Executes malware samples in Cuckoo Sandbox to observe runtime behavior including process creation, file system modifications, registry changes, network communications, and API calls. Generates comprehensive behavioral reports for malware classification and IOC extraction. Activates for requests involving dynamic…

26zl/cybersec-toolkit · 78 tokens