{"id":15035277,"url":"https://github.com/api-security/apikit","last_synced_at":"2025-05-15T14:03:31.477Z","repository":{"id":37660669,"uuid":"431364291","full_name":"API-Security/APIKit","owner":"API-Security","description":"APIKit：Discovery, Scan and Audit APIs Toolkit All In One.","archived":false,"fork":false,"pushed_at":"2024-04-02T09:29:56.000Z","size":15778,"stargazers_count":2066,"open_issues_count":10,"forks_count":174,"subscribers_count":22,"default_branch":"main","last_synced_at":"2025-04-15T03:52:23.149Z","etag":null,"topics":["api-sec","api-security","apisec","burp-extensions"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/API-Security.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-24T05:55:47.000Z","updated_at":"2025-04-14T14:24:38.000Z","dependencies_parsed_at":"2023-02-10T02:00:42.118Z","dependency_job_id":"69404902-7861-4ef9-b2ed-feccb0b02f10","html_url":"https://github.com/API-Security/APIKit","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/API-Security%2FAPIKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/API-Security%2FAPIKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/API-Security%2FAPIKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/API-Security%2FAPIKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/API-Security","download_url":"https://codeload.github.com/API-Security/APIKit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249003955,"owners_count":21196794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-sec","api-security","apisec","burp-extensions"],"created_at":"2024-09-24T20:28:02.920Z","updated_at":"2025-04-15T03:52:33.432Z","avatar_url":"https://github.com/API-Security.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"APIKit：Discovery, Scan and Audit APIs Toolkit All In One.\n===\n\n# 介绍\n**APIKit**是[APISecurity社区](https://github.com/API-Security)发布的第一个开源项目。\n\n**APIKit**是基于`BurpSuite`提供的`JavaAPI`开发的插件。 \n\n**APIKit**可以主动/被动扫描发现应用泄露的`API文档`，并将`API文档`解析成`BurpSuite`中的数据包用于**API安全测试**。\n\n![](./img/APIKit_ch.png)\n\n实际使用效果如图：\n![](./img/demo.png)\n\n# API技术指纹支持\nAPIKit v1.0支持的API技术的指纹有：\n- [x] GraphQL\n- [x] OpenAPI-Swagger \n- [x] SpringbootActuator\n- [x] SOAP-WSDL\n- [x] REST-WADL\n\n更多的API指纹正在努力更新~\n\n如有新的API技术可以在issue中反馈。\n\n\n\n# 安装\n打开`BurpSuite`页面,点击Extender然后选择Extensions,添加APIKit.jar。\n![](./img/install.png)\n然后APIKit会对进入到`BurpSuite`的流量进行被动扫描。解析完成后可以在APIKit面板查看结果，同样Burpsuite的DashBoard也会有issue提示。\n![](./img/demo.png)\n![](./img/dashboard.png)\n\n# 配置\n默认情况下Request和Cookie都不开启。\n![](./img/config.png)\n## Send with Cookie\n开启Cookie，可以把包的Cookie存下来，生成请求的时候保留Cookie。\n\n## Auto Request Sending\n开启对API的请求，注意开启API请求后。你需要明确以下几点：\n\n**1. 本工具仅面向合法授权的企业安全建设行为，如您需要测试本工具的可用性，请自行搭建靶机环境。**\n\n**2. 在使用本工具进行检测时，您应确保该行为符合当地的法律法规，并且已经取得了足够的授权。请勿对非授权目标进行请求。**\n\n**3. 如您在使用本工具的过程中存在任何非法行为或造成其他损失，您需自行承担相应后果，我们将不承担任何法律及连带责任。**\n\n**4. 在安装并使用本工具前，请您务必审慎阅读、充分理解各条款内容，限制、免责条款或者其他涉及您重大权益的条款可能会以加粗、加下划线等形式提示您重点注意。 除非您已充分阅读、完全理解并接受本协议所有条款，否则，请您不要安装并使用本工具。您的使用行为或者您以其他任何明示或者默示方式表示接受本协议的，即视为您已阅读并同意本协议的约束。**\n\n选择开启Auto Request Sending后，可以对子API进行自动化鉴权测试，快速发现API未授权访问漏洞。\n![](./img/req.png)\n## Clear history\n点击清除所有API文档记录。\n\n\n# 被动扫描\n默认情况下流经BurpSuite的流量都会进行API探测解析和扫描。\n# 主动扫描\n\n## Do Auto API scan\n\n**Do Auto API scan**可以指定任意一个请求进行API指纹探测。\n\n在任何一个Burpsuite可以右键打开更多选项的页面中，都可以**点击右键**，选择**Do  Auto API scan**来发起一次主动扫描，进行API指纹探测。\n\n![](img/16844677709767.jpg)\n\n\n\n## Do Target API Scan\n\n\n**Do Target API scan**可以指定任意API技术、任意BasePath、任意API文档Path、和任意Header进行API请求的生成和探测。\n\n在任何一个Burpsuite可以右键打开更多选项的页面中，都可以**点击右键**，选择**Do Target API scan**来打开选项框。\n\n![](img/16844675891768.jpg)\n\n填写指定任意API技术、任意BasePath、任意API文档Path、和任意Header，再点击Scan进行API请求的生成和探测。\n\n**注意BasePath要以`/`结尾。**\n![](img/16844681048595.jpg)\n\n\n\n# API漏洞自动扫描\n所有与`BurpSuite`联动的工具均可联动APIKit。比如xray。\n## xray配置\n```shell\n./xray_darwin_amd64 webscan --listen 127.0.0.1:7777  --html-output APIKit.html\n```\n![](./img/xray.png)\n## BurpSuite配置\n![](./img/xrayburp.png)\n\n# 实战案例\n1. 某授权项目站点为/xxgateway/index，APIKit帮助发现/xxgateway/actuator并最后完成RCE。\n2. 某SRC站点使用了swagger，使用APIKit和xray联动遍历所有的API，最终发现多个高危严重漏洞。\n3. 更多白/黑盒测试...\n\n# TODO\n## 更多的API指纹\n- 更多主流API技术...\n## 更多实用功能\n- Fuzz鉴权绕过漏洞\n- 检测请求返回包中敏感信息\n— 发现js中泄露的API \n— 常见数据解析依赖库识别，比如Fastjson等\n- 更多实用功能...\n\n# 项目地址\n\nhttps://github.com/API-Security/APIKit\n![](./img/APISecurity.png)\n**API Security是一个分享一切和API安全相关的工具、漏洞环境、书籍、技术文章、新闻资讯、最佳实践白皮书等资料的社区。**\n\n**API Security知识星球永久免费，欢迎对API安全感兴趣的信息安全爱好者一起学习交流。**\n\n![](./img/zsxq.jpg)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapi-security%2Fapikit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapi-security%2Fapikit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapi-security%2Fapikit/lists"}