XingLo SkillSearch

恶意行为分类与ATT&CK映射

用于把沙箱、系统监控或动态分析得到的行为日志进一步分类,识别持久化、命令控制、侦察、横向移动、防御规避和数据窃取等行为,并映射到MITRE ATT&CK技术。Skill内置行为分类脚本,可按行为类别筛选和汇总事件,适合把零散运行痕迹转换成结构化攻击能力画像,便于案件研判、威胁狩猎和分析报告编写。

在 AI 中使用此 Skill将本页链接复制给 AI,即可让 AI 获取完整 Skill 内容并按此执行
安全提示: 本站 Skill 均经 ChatGPT 最新模型扫描,未发现恶意脚本及危险指令、未检出已知恶意行为特征,但不保证绝对安全,使用即表示接受此风险

Skill 文件

版本 20260301 · b8362ea33c13633a95dd03343109c8c3

scripts/
SKILL.md
---
name: behavioral-analysis
description: Classify observed malware behaviors into categories (persistence, C2, lateral movement, evasion, data theft) and map them to MITRE ATT&CK techniques for structured threat characterization.
---

# Behavioral Analysis

Analyze observed malware behaviors from dynamic analysis results, classify them into tactical categories, and map to the MITRE ATT&CK framework for standardized reporting and threat correlation.

## Prerequisites

- Behavioral logs from dynamic analysis (JSON format from sandbox or monitoring tools)
- Python 3.8+ with standard library
- Familiarity with MITRE ATT&CK framework (see `references/behavioral-indicators.md`)

## Steps

### 1. Collect Behavioral Data

Gather behavioral logs from dynamic analysis. Expected input is JSON with events covering:
- Process creation and injection
- File system modifications
- Registry changes
- Network connections and DNS queries
- API call sequences

### 2. Classify Behaviors

Run the behavior classifier on collected logs:

```bash
python scripts/behavior_classifier.py --input /analysis/results/events.json --output /analysis/results/classification.json
```

The classifier identifies and categorizes behaviors into:
- **Persistence** - Mechanisms to survive reboot (see `references/persistence-mechanisms.md`)
- **Command & Control** - C2 communication patterns (see `references/c2-patterns.md`)
- **Defense Evasion** - Anti-analysis, anti-AV, obfuscation techniques
- **Discovery** - System and network reconnaissance
- **Lateral Movement** - Techniques to spread through the network
- **Collection** - Data gathering and staging
- **Exfiltration** - Data theft mechanisms
- **Impact** - Destructive actions (ransomware, wipers)
- **Execution** - Code execution methods
- **Credential Access** - Credential harvesting

### 3. Review ATT&CK Mapping

The classifier maps each detected behavior to MITRE ATT&CK technique IDs:

```bash
python scripts/behavior_classifier.py --input /analysis/results/events.json --format attack-matrix
```

This produces a structured mapping showing:
- Tactic (why) - The adversary's goal
- Technique ID (how) - The specific method used
- Confidence level - How certain the classification is
- Supporting evidence - The specific events that triggered the classification

### 4. Analyze Persistence Mechanisms

Review detected persistence with the persistence reference:

```bash
python scripts/behavior_classifier.py --input /analysis/results/events.json --filter persistence
```

Cross-reference findings with `references/persistence-mechanisms.md` for detection and remediation guidance.

### 5. Analyze C2 Communication

Review network-based behaviors for C2 patterns:

```bash
python scripts/behavior_classifier.py --input /analysis/results/events.json --filter c2
```

Compare with known patterns in `references/c2-patterns.md`.

### 6. Generate Behavioral Profile

Create a comprehensive behavioral profile:

```bash
python scripts/behavior_classifier.py --input /analysis/results/events.json --format report --output /analysis/results/behavioral_profile.json
```

The profile includes:
- Malware type classification (trojan, ransomware, worm, etc.)
- Full ATT&CK technique mapping
- Behavioral severity assessment
- Recommended response actions

### 7. Cross-Reference with Threat Intelligence

Use the behavioral profile to:
1. Search for known malware families with similar behavior patterns
2. Correlate ATT&CK techniques with known threat groups
3. Identify campaign-level patterns across multiple samples

## Tips

- Run multiple behavioral analysis passes with different sandbox configurations
- Some behaviors only manifest under specific conditions (time, locale, domain membership)
- Weight network-based indicators higher for attribution
- Consider behavioral overlap - many techniques are shared across threat groups
- Use the ATT&CK Navigator to visualize technique coverage

## References

- `references/persistence-mechanisms.md` - Persistence techniques and detection
- `references/c2-patterns.md` - C2 communication patterns
- `references/behavioral-indicators.md` - Behavioral indicators by malware type