ssrf-internal-network

Invoked when features that accept controllable URLs are found, such as fetch/proxy/forward/crawler/document preview/image preview/QR code/short link/webhook/callback/online unzip. Responsible for SSRF detection and exploitation, including cloud metadata abuse, internal asset discovery, DNS rebinding, protocol bypass (file/gopher/dict), and exploration of attack techniques against internal services (e.g., Redis).

Last repository push
GitHub Stars
169
Forks
29
Issues / PRs
0

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "ssrf-internal-network" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-67a6805f3c14baf06143c1e48f96367da4c961b0a5ab8bace1305a94f5c0262c. Verify the upstream source and version against https://github.com/zhaji2333/CkSKILLS before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Invoked when features that accept controllable URLs are found, such as fetch/proxy/forward/crawler/document preview/image preview/QR code/short link/webhook/callback/online unzip. Responsible for SSRF detection and exploitation, including cloud metadata abuse, internal asset discovery, DNS rebinding, protocol bypass (file/gopher/dict), and exploration of attack techniques against internal services (e.g., Redis).

0 Downloads

Introduction source: third_party · zhaji2333 · 0.0.1 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: ssrf-internal-network
description: 当发现URL参数可控的抓取/代理/转发/爬虫/文档预览/图片预览/二维码/短链/Webhook/回调/在线解压等功能时调用。负责SSRF探测、云元数据利用、内网资产发现、DNS重绑定、协议绕过(file/gopher/dict)、Redis等内网服务攻击。

ssrf-internal-network — SSRF 与内网横向专项深度挖掘

何时调用(触发条件)

  • 请求中存在 URL 参数(url、link、img、redirect、callback、webhook、notify_url)
  • 服务端抓取/代理/转发功能(爬虫、采集、预览、转码)
  • 回调类功能(支付回调、Webhook 配置、回调验证)
  • 二维码/短链生成、在线解压(远程 URL)
  • 图片/文档/音视频在线预览

一、SSRF 场景清单

场景 漏洞类型 挖掘要点
二维码生成 SSRF/XSS/钓鱼 URL参数可控、二维码内容可控
短链服务 重定向/SSRF/遍历 短链可预测、目标URL可控
代理/转发服务 SSRF/内网穿透 目标地址可控、协议可控
爬虫/采集功能 SSRF/RCE 采集URL可控、解析引擎漏洞
在线预览(文档/代码) SSRF/XSS/RCE 远程URL加载、渲染引擎漏洞
模板/报表生成 SSTI/任意文件读取 用户输入进入模板引擎
Webhook/回调配置 SSRF/信息泄露 回调URL可控、内网探测
文件预览(PDF/Office) SSRF/XXE/RCE 远程URL加载、OLE对象
图片处理 SSRF url:协议(ImageMagick)
视频/音频处理 SSRF/文件读取 concat协议、HLS playlist(FFmpeg)

二、云元数据(打内网核心)

AWS:     http://169.254.169.254/latest/meta-data/
阿里云:  http://100.100.100.200/latest/meta-data/
腾讯云:  http://metadata.tencentyun.com/latest/meta-data/

目标:获取临时凭证(IAM Role)、实例元数据、网络配置,进一步接管云资产。

三、内网探测思路

  1. 先验证可控性:请求外网可控地址(Burp Collaborator / DNSLog / 自己的 VPS)确认请求发出
  2. 内网网段探测:扫描 127.0.0.1、10.x、172.16-31.x、192.168.x 常见端口
  3. Redis 未授权:gopher:// 写入 crontab/SSH key/主从复制 RCE
  4. 管理面板:内网 Jenkins/ES/Grafana/MySQL 等
  5. 协议利用:
    file:///etc/passwd
    gopher://127.0.0.1:6379/_<redis命令>
    dict://127.0.0.1:6379/info
  6. DNS 重绑定:注册域名解析到 127.0.0.1/内网 IP,绕过 IP 校验
  7. 重定向绕过:302 跳转至内网/云元数据,绕过 URL 白名单

四、绕过技术

  • IP 混淆:十进制/十六进制/八进制(2130706433、0x7f000001、0177.0.0.1)
  • 短域名/URL 解析差异(http://127.0.0.1@evil.com)
  • 重定向(http://evil.com/redirect?to=169.254.169.254)
  • DNS 重绑定
  • 编码(双重 URL 编码、Unicode)
  • 协议差异(代理与后端解析不一致)

五、验证要点

  • 先证明出网(DNSLog 外带),再证明内网可达
  • 云元数据:能读取即为严重(临时凭证可能接管云账号)
  • 内网 Redis/数据库:未授权可交互即为严重
  • 响应差异:端口开放/关闭、服务指纹、错误信息
  • 报告标注:网络位置、出网方向、可达内网网段

六、修复建议

  • URL 白名单(协议+域名+端口),禁止私网地址
  • 禁用重定向跟随、禁用危险协议(file/gopher/dict)
  • DNS 解析后二次校验 IP,防 DNS 重绑定
  • 出口流量隔离、最小权限网络策略
  • 云元数据服务:IMDSv2 + 限制访问

Version history

  1. v2.1.0 GitHub ↗
    Original release notes

    ## 一句话 新增 **`kb/` 结构化数据层**(664 CVE / 237 字典 / 69 载荷)与 **内网/域技能包 `internal-network`**(10 块),`cloud-infra` 扩充 10 块;全局路由、纪律、索引同步接线,并修掉 7 个超限知识块与存量死链。 ## 新增 - **数据层 `kb/`**:`vuln/` 664 条 CVE(ai/cloud/middleware/network/web)、`dict/` 237 个字典(368 万行)、`payload/` 69 个载荷;4 个自动索引 + `tools/kb_index.py`(`--check` 做一致性闸,不参与默认加载) - **`internal-network`(内网/域)**:域侦察与决策树、Kerberos、委派/ACL/ADCS、凭据/中继/投毒、横向移动、隧道多跳、后渗透提权、持久化、内网基础设施(Exchange/SCCM/OA/DB/中间件)、工具投递 - **`kb-security-data`**:CVE / 字典 / payload 检索入口(30 秒分诊 + 证据纪律) - **`cloud-infra` +10 块**:多云概览、AWS IAM 提权、Azure/GCP、国内云、云凭据/IAM/元数据、K8s 逃逸与集群、K8s 组件/网络/存储、容器运行时、对象存储/Serverless、CI-CD/供应链/IaC - **战法索引-08-内网与域**(22 行首枪表)、`rules/55-kb-usage.md`、`templates/SEEDS.template.md` - **`docs/CHANGELOG.md`**:v2.1 完整更新记录 ## 变更 - `AGENTS.md`(10 秒决策 + 文件地图)、`rules/70`、`docs/TRIGGER-MATRIX.md`、`ck-router`(分诊/索引/进站决策)、`README.md`、`docs/ARCHITECTURE.md`(六层结构)全部接线 - 技能包 16 → **18**,知识块 **501**,规则 11 → **12** ## 修复 - 7 个超过 12KB 的知识块按「索引 + 分段」拆分(原文件名保留,新增 `-b` 分段) - 存量死链、kb 相对路径、索引兜底计数、CTF 导向表述清理 ## 验收 - 单块 ≤12KB:0 超限;SKILL.md 全部达标;死链 0 - `python3 tools/kb_index.py --check` → OK(664 / 237 / 69) - 常驻层 `AGENTS.md` 5.4KB(限 6.5KB) ## 升级方式 更新仓库后运行 `python3 tools/kb_index.py --check` 确认索引一致;用法见 `docs/CHANGELOG.md` 第 5 节与 `README.md`「数据层 kb/」小节。

Current listing version

0.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 高价值网络安全测试工具,覆盖 SSRF 完整攻击链
  • 精准定位云元数据利用与内网横向渗透实战需求
Trigger Precision90/100

Highlights

  • 触发条件清晰覆盖 URL 参数与功能场景,边界明确
Structure and Standards90/100

Highlights

  • 结构完整,含场景清单、绕过技术、验证要点与修复建议
  • 提供表格化场景与代码示例,具备强指导性
Execution Reliability88/100

Highlights

  • 基于标准协议与服务,参数准确,覆盖主要异常处理
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • 100.100.100.200
  • 169.254.169.254
  • evil.com
  • metadata.tencentyun.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.