SuperAPI AI 工具集

stix2-generator

安全与审计

查看项目

更新于 10-16 09:31

技能介绍

用途:生成符合 STIX 2.1 规范的威胁情报对象与 bundle,用于情报共享,来源可包括 IOC 列表、威胁描述和 MITRE ATT&CK 映射。

主要能力:支持生成 indicator(IP、域名、文件哈希等混合 IOC,可自动检测)、malware、attack-pattern(按 MITRE ATT&CK ID,如 T1055,支持多个 ID)、threat-actor、campaign,并可生成对象间 relationship、包装为 bundle、进行校验。输出格式支持 json、yaml,也提及 misp 与 TAXII 准备。提供标签、pattern 类型(stix、snort、yara)、有效期、置信度、identity 等参数,支持交互模式与批处理。

使用方式:先安装依赖 pip install stix2。再用脚本 scripts/generate_stix.py 运行,例如:python scripts/generate_stix.py --iocs examples/ioc_list.txt --output bundle.json;python scripts/generate_stix.py --threat examples/threat_description.json --output bundle.json;python scripts/generate_stix.py --attack-pattern T1055 --output bundle.json;python scripts/generate_stix.py --interactive;python scripts/generate_stix.py --batch examples/batch_input.json --output-dir ./output/。可加 --validate 校验,--relationships 生成关系。

适用场景:安全团队整理 IOC、编写恶意软件与攻击模式情报、构建威胁行为体与 campaign 画像、批量为多个对象建立关系并打包用于共享。

限制:需自行安装 stix2 库;输入格式需符合示例结构,否则报错;生成的 STIX 建议共享前校验,敏感信息与 TLP 标记需人工审查;性能上批处理优于逐个生成。收费、价格、平台和支持的模型信息暂未提供。