AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Recon Js Analysis

skill-zhaji2333-ckskills-recon-js-analysis · by zhaji2333

当开始新目标、攻击面不清晰、需要资产测绘/信息收集/前端JS分析/接口与敏感信息提取时调用。负责webpack拆解、source map还原、API端点与密钥提取、隐藏子域名与历史资产发现、高价值入口定位。命中场景:找不到接口、需要找密钥/隐藏功能/旧版本接口、JS加密与签名逻辑需要还原。

No reviews yet
0 installs
0 views
view→install

Install

$ agentstack add skill-zhaji2333-ckskills-recon-js-analysis

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-zhaji2333-ckskills-recon-js-analysis)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
today

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Recon Js Analysis? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

recon-js-analysis — 资产测绘与前端 JS 深度分析

何时调用(触发条件)

  • 开始测试新目标,攻击面不清晰
  • 需要提取 API 端点、参数结构、鉴权逻辑、隐藏功能
  • 需要还原 webpack chunk / source map / 混淆代码
  • 需要找硬编码密钥、AK/SK、内部域名、测试账号
  • 需要发现隐藏子域名、历史资产、旧版本接口
  • 需要确定高价值入口点(用户中心/支付/后台/API)

一、资产测绘与信息收集

子域名:subfinder / amass / OneForAll / 证书透明度
端口服务:nmap / masscan / 云资产API
目录扫描:dirsearch / ffuf / 403绕过
JS分析:LinkFinder / SecretFinder / API端点提取
APP逆向:jadx / frida / 抓包分析隐藏接口

二、信息收集要"脏"(历史与周边)

必须尝试的信息源:

  • Wayback Machine:翻旧版本页面/JS(可能有已删除的接口和功能)
  • GitHub/GitLab搜索:目标域名、内部接口、泄露的密钥/配置
  • Google Dork:site:target.com filetype:pdf/xls/doc/sql/log/bak
  • 证书透明度日志:发现隐藏子域名
  • 招聘JD:推断技术栈(用了什么框架→对应什么已知漏洞)
  • JS中的注释/TODO:开发者留下的线索
  • robots.txt / sitemap.xml:暴露的隐藏路径
  • 前端source map:还原完整前端源码
  • APK/IPA反编译:提取硬编码的接口和密钥
  • 更新日志/Changelog:新功能=新攻击面

三、JS 分析方法论(必须吃透再动手)

原则:JS不吃透,不发包。

3.1 完整还原

  • webpack chunk拆解、source map还原(如有)
  • 自动化工具:Packer-InfoFinder(开源 webpack 资产提取工具,可自动发现 JS、拆解 chunk、提取接口与敏感信息)
# 单目标扫描(自动发现JS、拆解chunk、提取接口和敏感信息)
python Packer-InfoFinder.py -u https://target.com --finder

# 批量扫描
python Packer-InfoFinder.py -l urls.txt --finder

# 指定JS文件分析(跳过HTML入口,直接分析JS)
python Packer-InfoFinder.py -j "https://target.com/app.js,https://target.com/chunk.js"

# 无头浏览器模式(捕获动态加载的JS)
python Packer-InfoFinder.py -u https://target.com --browser --finder

# 带代理扫描
python Packer-InfoFinder.py -u https://target.com --finder -p http://127.0.0.1:7890
  • 格式化/美化混淆代码,逐模块阅读
  • 优先定位:路由定义、API调用、请求拦截器、响应处理器

3.2 必须提取的信息

  • 所有API端点(包括注释掉的、条件判断里的、环境变量控制的)
  • 请求参数结构(必填/选填/隐藏参数/调试参数)
  • 鉴权机制(token生成逻辑、签名算法、加密方式、刷新机制)
  • 前端路由表(React Router / Vue Router / Angular Routes)
  • 角色/权限判断逻辑(哪些功能对哪些角色开放)
  • 硬编码的密钥、AK/SK、内部域名、测试账号
  • Feature Flag / Debug开关 / 环境判断(dev/test/prod)
  • WebSocket端点和消息格式
  • 错误处理逻辑(哪些错误会泄露信息)

3.3 分析输出格式

[JS分析报告]
接口清单:(列出所有发现的API端点)
参数结构:(每个接口的完整参数)
鉴权逻辑:(签名/加密/token机制)
隐藏功能:(debug接口/未启用功能/旧版接口)
可测试点:(按优先级排序)

3.4 测试执行

  • 每个接口必须测试全部HTTP方法(GET/POST/PUT/DELETE/PATCH/OPTIONS)
  • 每个参数必须测试:正常值、空值、边界值、类型混淆、数组化、超长、特殊字符
  • 鉴权接口:有token测、无token测、过期token测、其他用户token测
  • 发现的隐藏参数/调试参数全部尝试

四、高价值入口点定位

  • 用户中心:注册/登录/找回密码/绑定手机/实名认证
  • 支付流程:下单→支付→回调→退款→提现
  • 文件功能:头像上传/附件上传/导入导出/报表下载
  • 管理后台:/admin /manager /console /backstage
  • API接口:/api/v1 /graphql /swagger /actuator

五、冷门但高价值的漏洞点(攻击面速查)

| 场景 | 漏洞类型 | 挖掘思路 | |---|---|---| | 客服/工单系统 | 存储XSS→钓鱼客服 | 提交工单内容含XSS,客服后台触发 | | 邮件/消息通知 | 邮件头注入/SMTP注入 | 收件人、主题可控时注入换行符 | | 二维码/短链生成 | SSRF/重定向 | URL参数可控,探测内网或钓鱼 | | 地图/定位服务 | 信息泄露 | 泄露内部POI、员工位置 | | 日志/监控接口 | 未授权+敏感信息 | /actuator /metrics /debug | | 第三方登录 | OAuth劫持 | redirect_uri校验不严 | | 分享/邀请功能 | 越权/信息泄露 | 分享链接可遍历、权限过大 | | 数据导出 | 注入/越权 | 导出条件可控、无归属校验 |

六、输出与交接

完成本技能后,将提取的接口清单、参数结构、鉴权机制、隐藏功能整理为可测试清单,按类型分发给对应专项技能:

  • 接口/鉴权问题 → api-protocol-security / auth-access-control
  • 参数拼接/注入点 → injection-vulns
  • 文件相关功能 → file-handling
  • URL可控功能 → ssrf-internal-network

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.