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

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

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

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

工具目录

分类

查看所有分类
Loading categories
Astra — REST API 的自动化安全测试 | Kitploit
工具/GitHubGitHub/flipkart-incubator/astra
漏洞扫描器API安全测试Web安全渗透测试DevSecOps
GitHubflipkart-incubator/astra

Astra

REST API 的自动化安全测试

查看仓库
2.7k41312年前Kitploit 审核通过

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

Github Release Version Github Release Version

BH 2018 USA

BH 2018 Europe

Astra

alt text

由于现有 API 的持续变更以及新 API 的不断添加,REST API 渗透测试变得复杂。安全工程师或开发者可将 Astra 作为其流程的组成部分,从而在开发周期早期检测并修补漏洞。Astra 能够自动检测和测试登录与登出(身份验证 API),因此任何人都可以轻松将其集成到 CICD 流水线中。Astra 可以接受 API 集合作为输入,因此也可用于独立模式下的 API 测试。

  • SQL 注入
  • 跨站脚本攻击
  • 信息泄露
  • 身份验证与会话管理失效
  • CSRF(包括 Blind CSRF)
  • 速率限制
  • CORS 配置错误(包括 CORS 绕过技术)
  • JWT 攻击
  • CRLF 检测
  • Blind XXE 注入
  • 服务器端请求伪造
  • 模板注入

路线图

https://www.astra-security.info/roadmap/

环境要求

  • Linux 或 macOS
  • Python 3.7+
  • mongoDB
  • Celery
  • RabbitMQ

安装

root@kitploit:~
$ git clone https://github.com/flipkart-incubator/Astra

$ cd Astra
$ sudo pip install -r requirements.txt
$ sudo rabbitmq-server
$ celery -A worker -loglevel=INFO
$ cd API
$ python3 api.py

Docker 安装

运行 Mongo 容器:

root@kitploit:~
$ docker pull mongo
$ docker run --name astra-mongo -d mongo

安装 GUI Docker:

root@kitploit:~
$ git clone https://github.com/flipkart-incubator/Astra.git
$ cd Astra
$ docker build -t astra .
$ docker run --rm -it --link astra-mongo:mongo -p 8094:8094 astra

安装 CLI Docker:

root@kitploit:~
$ git clone -b docker-cli https://github.com/flipkart-incubator/Astra.git
$ cd Astra
$ docker build -t astra-cli .
$ docker run --rm -it --link astra-mongo:mongo astra-cli 

依赖项

root@kitploit:~
- requests
- logger
- pymongo
- ConfigParser
- pyjwt
- flask
- sqlmap
- celery

文档

https://www.astra-security.info

用法:CLI

root@kitploit:~
$ python astra.py --help

                      _
        /\       | |
       /  \   ___| |_ _ __ __ _
      / /\ \ / __| __| '__/ _` |
     / ____ \__ \ |_| | | (_| |
    /_/    \_\___/\__|_|  \__,_|



usage: astra.py [-h] [-c {Postman,Swagger}] [-n COLLECTION_NAME] [-u URL]
                [-headers HEADERS] [-method {GET,POST}] [-b BODY]
                [-l LOGINURL] [-H LOGINHEADERS] [-d LOGINDATA]

REST API Security testing Framework

optional arguments:
  -h, --help            show this help message and exit
  -c {Postman,Swagger}, --collection_type {Postman,Swagger}
                        Type of API collection
  -n COLLECTION_NAME, --collection_name COLLECTION_NAME
                        Type of API collection
  -u URL, --url URL     URL of target API
  -headers HEADERS, --headers HEADERS
                        Custom headers.Example: {"token" : "123"}
  -method {GET,POST}, --method {GET,POST}
                        HTTP request method
  -b BODY, --body BODY  Request body of API
  -l LOGINURL, --loginurl LOGINURL
                        URL of login API
  -H LOGINHEADERS, --loginheaders LOGINHEADERS
                        Headers should be in a dictionary format. Example:
                        {"accesstoken" : "axzvbqdadf"}
  -d LOGINDATA, --logindata LOGINDATA
                        login data of API

用法:Web 界面

运行 api.py 并访问 http://127.0.0.1:8094 进入 Web 界面。

root@kitploit:~
$ cd API
$ python api.py

注意: 在 macOS 10.13+ 上,你必须使用 OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES 标志以防止扫描进程被终止,这是因为 fork() 和 exec() 的工作方式发生了变化。更多信息见此处。

root@kitploit:~
$ cd API
$ OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES python api.py

截图

新建扫描

alt text

扫描报告

alt text

alt text

详细报告

alt text

主要开发者

  • Sagar Popat (@popat_sagar)

致谢

  • Ankur Bhargava
  • Harsh Grover
  • Flipkart 安全团队
  • Pardeep Battu
  • Rajasekar
下载工具