MCPcopy Index your code
hub / github.com/HXSecurity/DongTai

github.com/HXSecurity/DongTai @v1.16.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.16.0 ↗ · + Follow
2,355 symbols 9,602 edges 541 files 117 documented · 5% updated 13mo agov1.16.0 · 2023-11-03★ 1,31643 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

DongTai

django-project license Apache-2.0 GitHub release

GitHub release GitHub release GitHub release GitHub release GitHub release GitHub release

English

DongTai是什么?

洞态IAST是一款开源的交互式安全测试(IAST)产品,可通过被动插桩模式实现JAVA应用的通用漏洞及第三方组件漏洞的实时检测,非常适合在开发流水线的测试阶段使用。

项目结构

.
├── deploy
├── dongtai_common 各个服务调用的常用函数和类
├── dongtai_conf 配置文件
├── dongtai_engine 漏洞检测与漏洞处理部分
├── dongtai_protocol dongtai-server和agent交互的协议
├── dongtai_web 与web交互的api
├── static 静态文件
└── test 测试用例

技术架构

"火线-洞态IAST"具有多个基础服务,包括:DongTai-webDongTaiagentDongTai-Base-ImageDongTai-Plugin-IDEA,其中:

  • DongTai-web是DongTai的产品页面,用于处理用户与洞态的交互
  • DongTai>>dongtai_web负责处理用户的相关操作的API
  • DongTai>>dongtai_protocol用于处理agent上报的注册/心跳/调用方法/第三方组件/错误日志等数据,下发hook策略,下发探针控制指令等
  • DongTai>>dongtai_engine 根据调用方法数据和污点跟踪算法分析HTTP/HTTPS/RPC请求中是否存在漏洞,同时负责其它相关的定时任务
  • agent是DongTai的探针模块,包含不同编程语言的数据采集端,用于采集应用运行时的数据并上报至DongTai-OpenAPI服务
  • DongTai-Base-Image包含洞态运行时依赖的基础服务,包括:MySql、Redis
  • DongTai-Plugin-IDEA是Java探针对应的IDEA插件,可通过插件直接运行Java探针,直接在IDEA中检测漏洞

应用场景

"火线-洞态IAST"的应用场景包括但不限于:

  • 嵌入DevSecOps流程,实现应用漏洞的自动化检测/第三方组件梳理/第三方组件漏洞检测
  • 针对开源软件/开源组件进行通用漏洞挖掘
  • 上线前安全测试等

快速开始

洞态IAST支持SaaS服务本地化部署,本地化部署的详细部署方案见部署文档

1. SaaS版本

2. 本地化部署版本

洞态IAST支持多种部署方案,可通过部署文档了解部署方案详情,方案如下:

docker-compose部署

shell script git clone git@github.com:HXSecurity/DongTai.git cd DongTai chmod u+x build_with_docker_compose.sh ./build_with_docker_compose.sh

贡献

欢迎并非常感谢您的贡献, 请参阅contribution.md了解如何向项目贡献

文档

Stats

Alt

Core symbols most depended-on inside this repo

get
called by 278
dongtai_web/views/demo.py
failure
called by 236
dongtai_common/endpoint/__init__.py
success
called by 196
dongtai_common/endpoint/__init__.py
get
called by 177
dongtai_protocol/views/health.py
get_managed
called by 97
dongtai_common/utils/settings.py
save
called by 87
dongtai_protocol/report/handler/sca_handler.py
get_response_serializer
called by 75
dongtai_web/utils.py
update
called by 70
dongtai_web/scaupload/views.py

Shape

Class 863
Method 788
Function 619
Route 85

Languages

Python89%
TypeScript11%

Modules by API surface

static/static/rest_framework/js/jquery-3.5.1.min.js83 symbols
static/static/rest_framework/js/coreapi-0.1.1.js55 symbols
dongtai_web/views/sensitive_info_rule.py38 symbols
dongtai_web/scaupload/views.py29 symbols
dongtai_common/endpoint/__init__.py26 symbols
dongtai_web/dongtai_sca/scan/tests.py25 symbols
dongtai_web/utils.py24 symbols
dongtai_web/dongtai_sca/scan/utils.py24 symbols
dongtai_protocol/views/agent_download.py24 symbols
dongtai_web/views/details_id.py22 symbols
dongtai_protocol/report/handler/saas_method_pool_handler.py22 symbols
dongtai_web/serializers/vul.py21 symbols

Datastores touched

(mysql)Database · 1 repos

For agents

$ claude mcp add DongTai \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact