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.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Broken Link Hijack?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-broken-link-hijack)
---
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).