STIX 2.1威胁情报报告生成
用于把恶意样本、IOC、威胁主体、攻击活动和关系信息转换为STIX 2.1标准情报对象,生成结构正确的Bundle并用于TAXII或MISP等平台交换。适合需要把分析结果机器可读化、跨平台共享或纳入威胁情报系统的场景,可减少手工构造STIX对象和关系的工作。
在 AI 中使用此 Skill将本页链接复制给 AI,即可让 AI 获取完整 Skill 内容并按此执行
安全提示: 本站 Skill 均经 ChatGPT 最新模型扫描,未发现恶意脚本及危险指令、未检出已知恶意行为特征,但不保证绝对安全,使用即表示接受此风险
Skill 文件
版本 20260301 · 3c26c949fd266a803b678327f534d3b4
SKILL.md
---
name: stix-report-generation
description: Generate STIX 2.1 threat intelligence reports with proper SDOs, SROs, marking definitions, and validated bundles for sharing via TAXII or direct exchange.
---
# STIX Report Generation
Generate STIX 2.1 compliant threat intelligence reports from malware analysis findings. Create Structured Threat Information Expression (STIX) bundles with proper domain objects, relationships, and Traffic Light Protocol (TLP) markings.
## Prerequisites
- **Python 3.10+** for running the generator and validator scripts
- **python-stix2**: STIX 2.1 Python library for object creation and serialization (`pip install stix2`)
- **TAXII client**: For pushing reports to a TAXII 2.1 server (optional, `pip install taxii2-client`)
- **MISP** instance: For importing STIX bundles for correlation (optional)
## Steps
### 1. Identify Report Components
From your analysis, identify the STIX Domain Objects (SDOs) needed:
- **Malware**: The malware sample and family information
- **Indicator**: Observable patterns (file hashes, network IOCs, YARA rules)
- **Attack Pattern**: TTPs mapped to ATT&CK techniques
- **Threat Actor**: Attribution information (if available)
- **Campaign**: Campaign context (if applicable)
- **Relationship**: Links between objects (e.g., Indicator "indicates" Malware)
Consult `references/stix-objects.md` for object schemas and examples.
### 2. Generate STIX Bundle
Use the generator script to create a STIX 2.1 bundle:
```bash
python3 scripts/stix_generator.py \
--malware-name "TrojanX" \
--malware-type trojan \
--hashes md5:abc123,sha256:def456 \
--network-iocs "evil.com,192.168.1.100" \
--attack-patterns T1055,T1071.001,T1547.001 \
--tlp green \
--output report.json
```
For more complex reports with descriptions and custom indicators:
```bash
python3 scripts/stix_generator.py \
--malware-name "APT-Backdoor" \
--malware-type backdoor \
--description "Custom backdoor used by APT group for long-term access" \
--hashes sha256:aabbccdd \
--network-iocs "c2.example.com:443,10.0.0.1" \
--file-indicators "dropper.exe,payload.dll" \
--attack-patterns T1055.012,T1071.001,T1082,T1547.001 \
--threat-actor "APT-X" \
--campaign "Operation Shadow" \
--tlp amber \
--output apt_report.json
```
### 3. Add Custom STIX Indicators
For STIX pattern-based indicators (using the STIX Patterning Language):
```bash
python3 scripts/stix_generator.py \
--malware-name "RansomY" \
--custom-pattern "[file:hashes.'SHA-256' = 'abc123'] OR [network-traffic:dst_ref.type = 'domain-name' AND network-traffic:dst_ref.value = 'ransom.evil']" \
--output ransom_report.json
```
See `references/stix-patterns.md` for the STIX patterning language reference.
### 4. Validate the Bundle
Validate the generated STIX bundle:
```bash
python3 scripts/stix_validator.py --input report.json
```
The validator checks:
- Valid STIX 2.1 JSON structure
- Required properties on all objects
- Valid STIX identifiers (type--UUID format)
- Relationship reference integrity
- STIX pattern syntax validity
- TLP marking correctness
### 5. Share the Report
- **TAXII**: Push to a TAXII 2.1 server for automated sharing
- **Direct Exchange**: Share the JSON file via secure channels
- **MISP**: Import into MISP for correlation with other intelligence
Use `assets/stix-bundle-template.json` as a starting point for manual report creation.
## References
- `references/stix-objects.md` — STIX 2.1 object reference with examples
- `references/stix-patterns.md` — STIX patterning language reference
- `assets/stix-bundle-template.json` — Template STIX bundle
此文件不提供内嵌文本预览
请使用左侧文件行末尾的外链图标打开原始文件。
