Apache License 2.0

项目介绍

HXSecurity/DongTai-agent-java 是一个托管在 GitHub 上的开源项目,主要使用 Java 编写,采用 Apache License 2.0 许可证,目前获得 699 个 Star、196 次 Fork。

仓库全名
HXSecurity/DongTai-agent-java
开源许可证
Apache License 2.0
Star 数
699
Fork 数
196
未关闭 Issue
11

README 摘要

DongTai-agent-java 中文版本(Chinese version) Project Introduction Dongtai-agent-java is DongTai Iast's data acquisition tool for Java applications. In a Java application with the iast agent added, the required data is collected by rewriting class bytecode, and then the data is sent to dongtai-OpenAPI service, and then the cloud engine processes the data to determine whether there are security holes. Dongtai-agent-java…

完整内容见 GitHub 原始 README 或本页 。

常见问题

DongTai-agent-java 用什么语言开发?

主要使用 Java 编写,采用 Apache License 2.0 许可证,目前有 699 个 Star。

DongTai-agent-java 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 DongTai-agent-java 的源码?

可以直接克隆仓库:git clone https://github.com/HXSecurity/DongTai-agent-java.git,默认分支为 beta;安装与运行步骤见仓库 README。

DongTai-agent-java 最近还在维护吗?

仓库最近一次更新为 2023年12月25日,当前有 11 个未关闭 Issue;Star 数为 699,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Java Agent is a Java application probe of DongTai IAST, which collects method invocation data during runtime of Java application by dynamic hooks.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
1111
价值分
479
活跃状态
活跃

语言占比

Java

Release

README

DongTai-agent-java


中文版本(Chinese version)

license Apache-2.0 GitHub stars GitHub forks GitHub Contributors

CI Github Version Release downloads

Project Introduction

Dongtai-agent-java is DongTai Iast’s data acquisition tool for Java applications. In a Java application with the iast agent added, the required data is collected by rewriting class bytecode, and then the data is sent to dongtai-OpenAPI service, and then the cloud engine processes the data to determine whether there are security holes.

Dongtai-agent-java consists of agent.jar, dongtai-core-jar, dongtai-spy. Jar and dongtai-servlet.jar:

  • agent.jar It is used to manage agent life cycle and configuration. The life cycle of the Agent includes downloading, installing, starting, stopping, restarting, and uninstalling the agent. Agent configuration includes application startup mode, vulnerability verification mode, whether to enable agent, etc.
  • dongtai-core.jar The main functions of dongtai-core.jar are: bytecode piling, data collection, data preprocessing, data reporting, third-party component management, etc.
  • dongtai-inject.jar It is used to inject into the BootStrap ClassLoader. The data collection method in ‘iast-core.jar’ is then invoked in the target application.
  • dongtai-servlet.jar It is used to obtain the requests sent by the application and the responses received. It is used for data display and request replay.

Application Scenarios

  • DevOps
  • Security test the application before it goes online
  • Third-party Component Management
  • Code audit
  • 0 Day digging

Quick Start

Please refer to the Quick Start.

Quick Development

  1. Fork the DongTai-agent-java , clone your fork:

    git clone https://github.com/<your-username>/DongTai-agent-java
    
  2. Write code to your needs.

  3. Compile Dongtai-agent-Java using Maven:

    mvn clean package -Dmaven.test.skip=true
    
    • notice: JDK version is 1.8.
  4. folder ./release is generated in the project root directory after compilation:

    release
    ├── dongtai-agent.jar
    └── lib
        ├── dongtai-servlet.jar
        ├── dongtai-core.jar
        └── dongtai-spy.jar
    
  5. Copy dongtai-core.jar、dongtai-spy.jar、dongtai-servlet.jar to the system temporary directory. Get the system temporary directory to run the following Java code:

    System.getProperty("java.io.tmpdir.dongtai");
    
  6. Run the application and test the code (for example, SpringBoot) : java -javaagent:/path/to/dongtai-agent.jar -Ddongtai.debug=true -jar app.jar

  7. Contribute code. If you want to contribute code to the DongTai IAST team, please read the full contribution guide.

Supported Java versions and middleware

  • Java 1.8+
  • Tomcat, Jetty, WebLogic, WebSphere, SpringBoot and Mainstream software and middleware.

评论

暂无评论