Skip to content
Back to skills

Broken Link Hijack

ASecurity

Detection of broken/abandoned external resources the target still references (dead JS/CSS src, expired domains, unregistered social handles) that an attacker can re-register to inject content or impersonate. Tier 1. Use after crawling when external dependencies and handles are known.

  • 16 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added November 17, 2026
securityrustgitapibackend

Works with

  • api

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill broken-link-hijack --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Broken Link Hijack?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Broken Link Hijack
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-broken-link-hijack/badge)](https://www.skillsdirectory.com/skills/anandjogawade-broken-link-hijack)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: broken-link-hijack
description: Detection of broken/abandoned external resources the target still references (dead JS/CSS src, expired domains, unregistered social handles) that an attacker can re-register to inject content or impersonate. Tier 1. Use after crawling when external dependencies and handles are known.
---

# Broken Link Hijacking (BLH)

The target trusts a resource it no longer controls — a script from an expired domain, an unclaimed social handle, a dead CDN path. Re-registering it lets an attacker run JS in the page or impersonate the brand.

## Trigger phrases
`broken link hijack, blh, expired domain, dangling script, unclaimed handle, dead resource, abandoned cdn`

## Method
1. Crawl and extract every external reference: `<script src>`, `<link href>`, `<img>`, iframe/object src, CSS `url()`, and social links. Tools: `katana`/`hakrawler` + `getjs`/`xnLinkFinder`; `gau` for historical refs.
2. For each external host: resolve it; check for NXDOMAIN, expired/parked domain, or deprovisioned storage/CDN (same fingerprints as `subdomain-takeover`).
3. Domain availability: `whois`/registrar lookup on each external domain → expired or available = hijackable (highest impact when it feeds a `<script src>` = JS execution in the app).
4. **Social/handle BLH**: collect linked Twitter/X, GitHub, Medium, Telegram, LinkedIn, YouTube, npm handles; check which resolve to nonexistent/available accounts → register to impersonate.
5. Safe PoC for a script dependency: register the domain, serve a harmless, logging-free marker (e.g., `console.log('zazy-poc')` or a benign 1x1) to prove execution — never capture user data.

## Modern / rare techniques
- **JS-referenced endpoints**: dead API/analytics hosts hardcoded in bundles still get fetched → re-register for data interception or XSS pivot.
- **Dependency-confusion cousin**: an unclaimed npm/package name referenced in exposed `package.json` → see `exposed-files`/supply chain.
- **Wayback diffing** reveals resources removed from the live page but still loaded on deep/stale routes.

## Escalation / chaining
Controllable `<script src>` → effectively `stored-xss` on every page that loads it → session/account takeover. Chains with `subdomain-takeover`, `secrets-disclosure`. Handle hijack → phishing/social-engineering reporting.

## Backend & tooling
Kali/HexStrike + headless browser (to catch dynamically-loaded refs). Registrar/provider only to claim within RoE.

## Verification (background, before reporting)
Re-crawl to confirm the live page still references the dead resource; confirm registrability independently; prove execution/impersonation with the benign marker before reporting.

## Evidence
Referencing page, the dead resource/handle, availability proof, PoC marker (if claimed), impact + remediation (remove/replace reference, use SRI, reclaim handles).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.