SuperAPI AI 工具集

hunt-dispatch

安全与审计

查看项目

更新于 10-16 07:46

技能介绍

用途

hunt-dispatch 是 /hunt 编排器的技能集加载器(skill-set loader)。它只解决一个问题:在行动开始时决定该加载哪些技能,并把它们集中在一个地方管理。它本身不执行任何探测,只负责加载上下文,加载完成后把控制权交回 /hunt。

调用契约

支持以下调用形式:

  • hunt-dispatch mode=redteam
  • hunt-dispatch mode=wapt box=blackbox
  • hunt-dispatch mode=wapt box=greybox

主要能力

第一步:指纹识别(仅红队模式)

执行一次性指纹识别,并在存在时解析 recon/<target>/live-hosts.txt:

curl -sI "https://$TARGET" 2>/dev/null | tr -d '\r'
test -f "recon/$TARGET/live-hosts.txt" && cat "recon/$TARGET/live-hosts.txt"

根据信号映射到平台技能:

  • okta.com | auth0.com | pingidentity → okta-attack
  • login.microsoftonline.com | outlook | sts → m365-entra-attack
  • pulse | fortinet | ivanti | citrix → enterprise-vpn-attack
  • vsphere | vcenter | :9443 → vmware-vcenter-attack
  • amazonaws | azure | googleapis | gcp → cloud-iam-deep
  • github.com/<org>/ → supply-chain-attack-recon
  • .apk | play.google.com → apk-redteam-pipeline

多个匹配时,加载所有匹配的平台技能。

第二步:加载技能集

通过 Skill 工具按顺序调用每个技能。

mode=redteam

常驻(最先加载):

  • redteam-mindset
  • mid-engagement-ir-detection

平台(第二加载,依据第一步指纹匹配条件触发):

  • okta-attack
  • m365-entra-attack
  • enterprise-vpn-attack
  • vmware-vcenter-attack
  • cloud-iam-deep
  • supply-chain-attack-recon
  • apk-redteam-pipeline

高影响 hunt-* 集(第三加载):

  • hunt-rce
  • hunt-sqli
  • hunt-ssrf
  • hunt-ato
  • hunt-auth-bypass
  • hunt-saml
  • hunt-oauth
  • hunt-mfa-bypass
  • hunt-file-upload
  • hunt-http-smuggling
  • hunt-cloud-misconfig
  • hunt-sharepoint
  • hunt-aspnet

报告格式:redteam-report-template(subject / observations / description / impact / recommendation / poc)。

mode=wapt

常驻:

  • bb-methodology
  • security-arsenal
  • triage-validation

完整 hunt-* 集(所有 OWASP 相关):

  • hunt-xss、hunt-sqli、hunt-ssrf、hunt-idor
  • hunt-csrf、hunt-xxe、hunt-rce、hunt-graphql
  • hunt-oauth、hunt-saml、hunt-mfa-bypass、hunt-auth-bypass
  • hunt-ato、hunt-file-upload、hunt-business-logic、hunt-race-condition
  • hunt-race-condition、hunt-llm-ai、hunt-api-misconfig、hunt-ssti
  • hunt-cache-poison、hunt-cache-poison、hunt-http-smuggling、hunt-subdomain
  • hunt-subdomain、hunt-cloud-misconfig、hunt-misc、hunt-aspnet
  • hunt-sharepoint、hunt-ntlm-info

报告格式:report-writing(若目标在 bugcrowd 上则用 bugcrowd-reporting)。

box=greybox:凭据已由 /hunt 捕获,保存在会话内存中,将其应用于每个已认证测试。

第三步:分类清单打印(会话开始时执行一次)

输出一个确定性文本块,纯文本、小写、冒号分隔、无装饰。

mode=redteam

loaded for red team: {N} skills
  mindset:    redteam-mindset
  platform:   {fingerprint-matched skills, or "none detected"}
  auth:       hunt-ato, hunt-auth-bypass, hunt-saml, hunt-oauth, hunt-mfa-bypass
  inj:        hunt-rce, hunt-sqli, hunt-ssrf, hunt-file-upload
  infra:      hunt-http-smuggling, hunt-cloud-misconfig
  stack:      hunt-sharepoint, hunt-aspnet
  ir:         mid-engagement-ir-detection

mode=wapt

loaded for wapt ({blackbox|greybox}): {N} skills
  inj:        hunt-xss, hunt-sqli, hunt-ssrf, hunt-rce, hunt-xxe, hunt-ssti, hunt-file-upload
  authz:      hunt-idor, hunt-auth-bypass, hunt-ato
  auth:       hunt-oauth, hunt-saml, hunt-mfa-bypass
  api:        hunt-graphql, hunt-api-misconfig
  logic:      hunt-business-logic, hunt-race-condition, hunt-race-condition
  infra:      hunt-http-smuggling, hunt-cache-poison, hunt-cache-poison
  recon:      hunt-subdomain, hunt-subdomain
  cloud:      hunt-cloud-misconfig
  ai:         hunt-llm-ai
  stack:      hunt-aspnet, hunt-sharepoint, hunt-ntlm-info
  misc:       hunt-misc, hunt-csrf
  reporting:  bb-methodology, security-arsenal, triage-validation

第四步:将控制权交回 /hunt

分类清单打印后,把控制权交回 /hunt 执行第三步(同级委派)和第四步(主动测试)。此处不运行探测——本技能只加载上下文。

隐私

绝不回显、记录或持久化:

  • SOW / 工作范围 / 委托书内容
  • 灰盒凭据(由 /hunt 保存在会话内存中,绝不写入磁盘)
  • 用户级内存中的客户标识符

相关技能与链路

  • bb-methodology:当 PART 0 模式确认完成时。工作流原语:bb-methodology 确认行动类型(红队 vs WAPT vs 漏洞赏金),其结果直接决定本技能以 mode=redteam 还是 mode=wapt 调用。
  • redteam-mindset + mid-engagement-ir-detection:当加载 mode=redteam 时。工作流原语:这两个是红队流程第二步最先加载的常驻技能,先于任何平台技能或 hunt-* 技能。
  • okta-attack / m365-entra-attack / enterprise-vpn-attack / vmware-vcenter-attack / cloud-iam-deep / supply-chain-attack-recon / apk-redteam-pipeline:当指纹信号匹配时。工作流原语:第一步针对 recon/<target>/live-hosts.txt 的 curl 指纹扫描,将 banner / 域名信号映射到一个或多个平台技能。
  • hunt-rce / hunt-sqli / hunt-ssrf / hunt-ato / 所有其他 hunt-* 技能:当打印模式专属技能集时。工作流原语:本技能是加载器,它列出 hunt-* 技能但不运行探测——实际狩猎在第四步将控制权交回 /hunt 之后进行。
  • report-writing 与 redteam-report-template:当分类清单指定报告格式时。工作流原语:mode=wapt 以 report-writing 作为交付格式;mode=redteam 则以 redteam-report-template 收尾。

适用场景

适用于红队行动或 Web 应用渗透测试(WAPT)的启动阶段,需要根据目标指纹或行动类型自动装配对应攻击技能集的场景。

限制

本技能不执行任何探测,仅加载上下文;指纹识别仅在红队模式下进行;灰盒凭据仅保存在会话内存中,不写入磁盘;不记录 SOW、工作范围、委托书内容及客户标识符。