extracting-iocs-from-malware-samples

Extract IOCs from malware samples and export STIX 2.1 and CSV artifacts.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/YukiIto1999/ctf-sleuth --skill extracting-iocs-from-malware-samples
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extracting-iocs-from-malware-samples
Source: https://github.com/YukiIto1999/ctf-sleuth/tree/main/.claude/skills/extracting-iocs-from-malware-samples
Command: npx skills add https://github.com/YukiIto1999/ctf-sleuth --skill extracting-iocs-from-malware-samples

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pefile, yara-python, requests, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Extracts indicators of compromise (IOCs) from malware samples, including file hashes, network indicators (IPs, domains, URLs), host artifacts (file paths, registry keys, mutexes), and behavioral patterns for threat intelligence sharing and defense automation.

Core Features & Use Cases

  • File hash extraction (MD5/SHA-1/SHA-256) and Imphash from PE files
  • Network IOC extraction: IPs, domains, URLs, and emails
  • Host IOC discovery: file paths, registry keys, and mutexes; supports output in STIX and CSV
  • Optional defanging and VirusTotal validation for credible sharing

Quick Start

Run the IOC Extraction Agent on a malware sample path to generate iocs_stix.json and iocs.csv outputs.

Frequently Asked Questions about extracting-iocs-from-malware-samples

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract IOCs from malware samples for threat intelligence?

You can extract network IOCs like IPs, domains, and URLs by applying the analysis to PCAPs and sandbox reports. The Skill aggregates these network indicators alongside host artifacts and exports them as structured CSV files and STIX 2.1 bundles.

Can I validate extracted IOCs with VirusTotal before sharing?

Yes, the Skill optionally validates extracted IOCs with VirusTotal to ensure credibility. It also defangs indicators during processing to ensure safe sharing of STIX 2.1 bundles and CSV files across threat intelligence platforms.

Does this IOC extraction tool require YARA and pefile dependencies?

Yes, the IOC extraction tool requires pefile for PE file analysis and yara-python for rule matching. It also uses requests to optionally validate the extracted file hashes, network indicators, and host artifacts with external threat intelligence sources.

What is the best way to export malware threat intelligence as a STIX 2.1 bundle?

The best way to export malware threat intelligence as a STIX 2.1 bundle is to run the IOC extraction on a malware sample path. The Skill collects hashes, network IOCs, and host artifacts, automatically generating defanged STIX 2.1 and CSV outputs.

How do I extract file hashes and Imphash from PE files?

You extract file hashes and Imphash from PE files by processing the malware sample through the Skill. It computes MD5, SHA-1, and SHA-256 hashes alongside PE import hashes, adding them to your structured CSV and STIX 2.1 threat intelligence artifacts.