Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
enterpriseattack — A lightweight Python module to interact with the [MITRE ATT&CK®](https://attack.mitre.org/) Enterprise dataset. Built for speed with minimal dependencies. [Read the docs](https://gitlab.com/xakepnz/enterpriseattack/tree/main/docs) for more info. | Kitploit
工具/GitLabGitLab/xakepnz/enterpriseattack
Threat Feeds & AggregatorsUtilities & FrameworksThreat Intelligence
GitLabxakepnz/enterpriseattack

enterpriseattack

A lightweight Python module to interact with the [MITRE ATT&CK®](https://attack.mitre.org/) Enterprise dataset. Built for speed with minimal dependencies. [Read the docs](https://gitlab.com/xakepnz/enterpriseattack/tree/main/docs) for more info.

查看仓库
19个月前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

enterpriseattack - MITRE 的 Enterprise ATT&CK®

一个轻量级的 Python 模块,用于与 MITRE ATT&CK 企业数据集进行交互。由于其速度快且依赖极少,专为生产环境中的应用而构建。更多信息请参阅文档。

MITRE ATT&CK®

MITRE ATT&CK® 是一个全球可访问的知识库,收录了基于真实世界观测得出的对手战术与技术。ATT&CK 知识库被用作私营部门、政府以及网络安全产品和服务社区开发特定威胁模型和方法论的基础。

依赖

  • Python 3.x
  • ujson >= 3.0.0
  • requests >= 2.9.2

安装

通过 Pip 安装:

root@kitploit:~
pip3 install enterpriseattack

或者克隆仓库:

root@kitploit:~
git clone https://gitlab.com/xakepnz/enterpriseattack.git
cd enterpriseattack
python3 setup.py install

(返回顶部)

Docker:

构建 Docker 镜像:

root@kitploit:~
docker build enterpriseattack:0.1.8 .
docker tag enterpriseattack:0.1.8 enterpriseattack:latest

在容器上运行基准测试:

root@kitploit:~
docker run enterpriseattack

(返回顶部)

用法

初始化 Attack 对象:

root@kitploit:~
import enterpriseattack

attack = enterpriseattack.Attack()

示例:下标访问对象

直接从 Attack 类访问任意对象,而无需通过迭代查找特定对象。

root@kitploit:~
attack = enterpriseattack.Attack(subscriptable=True)

wizard_spider = attack.groups.get('Wizard Spider')
print(len(wizard_spider.tactics))

execution = attack.tactics.get('Execution')
print(len(execution.techniques))

示例:传递自定义参数:

在此示例中,你可以选择从何处下载官方 MITRE ATT&CK JSON 文件,包括要使用的代理。或者,如果你希望将 JSON 文件保存到其他位置,可以修改 enterprise_json 参数。默认情况下,该文件会保存到你的默认 site-packages 位置。

  • enterprise_json - (可选)enterprise json 文件的位置(自动保存到 pip 位置)
  • url - (可选)要从中下载 enterprise json 文件的位置。
  • update - (可选)布尔值,强制刷新下载(每次调用时),覆盖之前的文件。
  • include_deprecated - (可选)布尔值,是否包含 MITRE ATT&CK 已弃用的对象(来自之前版本的 ATT&CK)。
  • mitre_version - (可选)指定 MITRE ATT&CK 数据版本。
  • proxies - (可选)用于访问 MITRE GitHub 获取 enterprise-attack.json 的代理字典。
root@kitploit:~
attack = enterpriseattack.Attack(
   enterprise_json=None,
   url='https://raw.githubusercontent.com/mitre/cti/master/enterprise-attack/enterprise-attack.json',
   include_deprecated=False,
   update=False,
   subscriptable=True,
   mitre_version='latest',
   proxies={'http':'http://127.0.0.1:1337'}
)

示例:强制下载/使用较旧版本的 MITRE ATT&CK 数据集:

root@kitploit:~
attack = enterpriseattack.Attack(
   mitre_version='11.3',
   update=True
)

print(attack.mitre_version)

示例:遍历战术/技术/子技术:

root@kitploit:~
attack = enterpriseattack.Attack()

for tactic in attack.tactics:
   print(tactic.name)
   for technique in tactic.techniques:
      print(technique.name)
      print(technique.detection)

for software in attack.software:
    for technique in software.techniques:
        for sub_technique in technique.sub_techniques:
            print(software.name, technique.name, sub_technique.name)

示例:为任意战术/技术/子技术/组织/软件/数据源创建 JSON 对象:

root@kitploit:~
attack = enterpriseattack.Attack()

for tactic in attack.tactics:
   print(tactic.to_json())

for group in attack.groups:
   print(group.to_json())

...

更多示例请参阅文档

(返回顶部)

下载工具