Skip to content

Universal SEO skill for Claude Code. 26 sub-skills + 19 sub-agents covering technical SEO, E-E-A-T, schema, GEO/AEO, agent readiness (Lighthouse Agentic Browsing, WebMCP, llms.txt), backlinks, local SEO, e-commerce, international SEO, Google APIs, and PDF/Excel reporting. 9 optional extensions for live SEO data.

chore(governance): SSS+ tier repo hygiene — CODEOWNERS, npm Dependabot, v2 workflow, SECURITY.md uplift

Daniel77b27feba6f4
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
new file mode 100644
index 0000000..6613d26
--- /dev/null
+++ b/.github/CODEOWNERS
@@ -0,0 +1,33 @@
+# CODEOWNERS for claude-seo
+#
+# Every change to this repository routes review to @AgriciDaniel.
+# Sections below let us call out security-critical paths so a future
+# co-maintainer cannot accidentally land a change without the right
+# eyes on it.
+
+# Default owner — every file unless overridden below.
+* @AgriciDaniel
+
+# Security-critical: SSRF + DNS rebinding + credential handling.
+scripts/url_safety.py @AgriciDaniel
+scripts/google_auth.py @AgriciDaniel
+scripts/backlinks_auth.py @AgriciDaniel
+scripts/render_page.py @AgriciDaniel
+scripts/fetch_page.py @AgriciDaniel
+scripts/capture_screenshot.py @AgriciDaniel
+tests/test_url_safety.py @AgriciDaniel
+SECURITY.md @AgriciDaniel
+
+# Release + distribution: install scripts and version pinning are the
+# supply-chain surface.
+install.sh @AgriciDaniel
+install.ps1 @AgriciDaniel
+.claude-plugin/plugin.json @AgriciDaniel
+.claude-plugin/marketplace.json @AgriciDaniel
+requirements.txt @AgriciDaniel
+pyproject.toml @AgriciDaniel
+CITATION.cff @AgriciDaniel
+
+# CI / governance.
+.github/ @AgriciDaniel
+tests/test_manifest_consistency.py @AgriciDaniel
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index 09bf9f4..e50f4d8 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -30,3 +30,24 @@ updates:
commit-message:
prefix: "deps"
include: "scope"
+
+ # v2 added MCP-backed extensions (DataForSEO, Firecrawl, Ahrefs, etc.)
+ # which install npm packages via `npx`. Dependabot's npm watcher tracks
+ # the pinned versions in each extension's install script through any
+ # package.json we ship; today the closest we have is the root, so
+ # Dependabot scans it without requiring a manifest to exist.
+ - package-ecosystem: "npm"
+ directory: "/"
+ schedule:
+ interval: "weekly"
+ day: "monday"
+ time: "06:00"
+ timezone: "UTC"
+ open-pull-requests-limit: 5
+ labels:
+ - "dependencies"
+ - "npm"
+ - "extensions"
+ commit-message:
+ prefix: "deps"
+ include: "scope"
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e5b476e..f61c3c7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -23,6 +23,8 @@ jobs:
- name: Check Python syntax
run: |
+ python3 -m py_compile scripts/url_safety.py
+ python3 -m py_compile scripts/render_page.py
python3 -m py_compile scripts/fetch_page.py
python3 -m py_compile scripts/parse_html.py
python3 -m py_compile scripts/analyze_visual.py
@@ -53,7 +55,7 @@ jobs:
python3 -m py_compile scripts/drift_history.py
python3 -m py_compile scripts/sync_flow.py
python3 -m py_compile scripts/release_report.py
- echo "All 30 scripts passed syntax check"
+ echo "All 32 scripts passed syntax check"
test:
name: Test suite (manifests + sync_flow)
diff --git a/.github/workflows/v2.yml b/.github/workflows/v2.yml
new file mode 100644
index 0000000..acf2947
--- /dev/null
+++ b/.github/workflows/v2.yml
@@ -0,0 +1,109 @@
+name: v2 audit
+
+# Local-only by design: this workflow is wired up so the v2.0.0 audit
+# pass is ready to fire the moment we authorize a push, but it never
+# runs on a push or pull_request event. The two triggers are:
+#
+# - workflow_dispatch (manual button in the Actions UI)
+# - workflow_call (so future workflows can chain it in)
+#
+# Until the v2 branch is pushed, this file lives on the branch but
+# GitHub never schedules it. After we push, the maintainer triggers it
+# manually from the Actions tab to gate the v2.0.0 tag.
+on:
+ workflow_dispatch:
+ inputs:
+ reason:
+ description: "Why this audit run is happening (free text, goes to summary)"
+ required: false
+ default: "manual v2 audit"
+ workflow_call:
+
+permissions:
+ contents: read
+
+jobs:
+ manifest:
+ name: Manifest consistency (13 assertions)
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v6
+
+ - name: Set up Python 3.10
+ uses: actions/setup-python@v6
+ with:
+ python-version: "3.10"
+
+ - name: Install pytest + test deps
+ run: pip install pytest beautifulsoup4
+
+ - name: Run manifest consistency tests
+ run: pytest tests/test_manifest_consistency.py -v
+
+ security:
+ name: SSRF + DNS rebinding suite
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v6
+
+ - name: Set up Python 3.10
+ uses: actions/setup-python@v6
+ with:
+ python-version: "3.10"
+
+ - name: Install runtime + test deps
+ run: |
+ pip install pytest
+ pip install -r requirements.txt
+
+ - name: Run url_safety regression battery
+ run: pytest tests/test_url_safety.py -v
+
+ - name: Confirm syntactic integrity of safety + renderer modules
+ run: |
+ python3 -m py_compile scripts/url_safety.py
+ python3 -m py_compile scripts/render_page.py
+ python3 -m py_compile scripts/fetch_page.py
+ python3 -m py_compile scripts/capture_screenshot.py
+ python3 -m py_compile scripts/google_auth.py
+ python3 -m py_compile scripts/backlinks_auth.py
+
+ full_pytest:
+ name: Full pytest suite
+ runs-on: ubuntu-latest
+ env:
+ # sync_flow tests need an authenticated gh CLI to bypass the
+ # 60/hr anonymous rate limit. Identical to ci.yml.
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ steps:
+ - uses: actions/checkout@v6
+
+ - name: Set up Python 3.10
+ uses: actions/setup-python@v6
+ with:
+ python-version: "3.10"
+
+ - name: Install pytest + test deps
+ run: |
+ pip install pytest beautifulsoup4
+ pip install -r requirements.txt || true
+
+ - name: Run pytest
+ run: pytest tests/ -v
+
+ audit_summary:
+ name: Audit summary
+ runs-on: ubuntu-latest
+ needs: [manifest, security, full_pytest]
+ if: always()
+ steps:
+ - name: Emit summary
+ run: |
+ echo "## v2 audit summary" >> $GITHUB_STEP_SUMMARY
+ echo "" >> $GITHUB_STEP_SUMMARY
+ echo "- Reason: ${{ inputs.reason }}" >> $GITHUB_STEP_SUMMARY
+ echo "- Manifest: ${{ needs.manifest.result }}" >> $GITHUB_STEP_SUMMARY
+ echo "- Security: ${{ needs.security.result }}" >> $GITHUB_STEP_SUMMARY
+ echo "- Full pytest: ${{ needs.full_pytest.result }}" >> $GITHUB_STEP_SUMMARY
+ echo "" >> $GITHUB_STEP_SUMMARY
+ echo "All three must report 'success' before tagging v2.0.0." >> $GITHUB_STEP_SUMMARY
diff --git a/SECURITY.md b/SECURITY.md
index 68a6022..7491387 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -2,24 +2,86 @@
## Reporting a Vulnerability
-If you discover a security vulnerability, please report it responsibly:
+If you discover a security vulnerability, please report it responsibly. Do **not** open a public issue.
-1. **Do NOT open a public issue**
-2. Open a [GitHub Security Advisory](https://github.com/AgriciDaniel/claude-seo/security/advisories/new) on this repo
-3. Or contact the maintainer directly
+1. Open a private [GitHub Security Advisory](https://github.com/AgriciDaniel/claude-seo/security/advisories/new) on this repository (preferred channel).
+2. As a fallback, email the maintainer at the address listed in [`CITATION.cff`](CITATION.cff).
+3. Encrypt sensitive disclosures if you can. Request the maintainer's PGP key in the advisory or email — the key fingerprint is published in advisory threads on first request and is rotated yearly.
-## Response Timeline
+When reporting, please include:
-- **Acknowledgment**: Within 72 hours of report
-- **Status update**: Within 7 days with initial assessment
-- **Resolution**: We aim to release a fix within 30 days for confirmed vulnerabilities
+- A short description of the issue and the impact you believe it has.
+- A minimal reproducer (URL, command line, payload, or short script).
+- Affected versions and platforms.
+- Whether you have a suggested fix.
-## Supported Versions
+## Coordinated disclosure
-Only the latest version receives security updates.
+claude-seo follows a **90-day coordinated disclosure** policy.
-## Security Practices
+| Day | Event |
+|---:|---|
+| 0 | Maintainer acknowledges receipt. |
+| ≤ 3 | Initial triage: severity classification (CVSS v3.1) and reproducibility confirmation. |
+| ≤ 14 | Mitigation or fix candidate proposed. |
+| ≤ 30 | Fix released in a patch version or backport; reporter credited in the release notes (opt-out available). |
+| ≤ 90 | Public advisory published if not earlier. |
-- No credentials or API keys are stored in this repository
-- Install scripts write only to user-level directories (`~/.claude/`)
-- Python dependencies install in isolated virtual environments
+If a fix cannot be shipped within 90 days, the maintainer will request an extension with a clear technical reason. The reporter retains the right to disclose at the 90-day mark.
+
+## Supported versions
+
+| Version line | Status | Notes |
+|---|---|---|
+| **2.x** | ✅ Fully supported | Active development; security and bug fixes. |
+| **1.9.x** | ✅ Patch-only for security | Final 1.x line; only CVSS ≥ High issues backported. |
+| < 1.9 | ❌ Unsupported | Please upgrade. |
+
+## Threat model
+
+claude-seo is a research and audit toolkit that runs on a user's workstation. It accepts user-supplied URLs and credentials, and issues HTTP requests against arbitrary internet hosts. The threat model has three primary attacker types:
+
+1. **Malicious audit target.** A site the user points claude-seo at attempts to leak local-network or cloud-metadata data via SSRF chains: private IP literals, decimal/hex/octal IPv4, FQDN trailing dot, 30x redirects to private IPs, DNS rebinding (initial public resolution → later private), IPv4-mapped IPv6, dual-stack hosts with one private record.
+
+ **Mitigation:** `scripts/url_safety.py` is the canonical pre-flight + DNS-pinned fetch layer. Every URL-fetching script in this repository validates through it. See `tests/test_url_safety.py` for the regression suite (52+ cases covering each bypass class).
+
+2. **Tampered install.** A modified install script delivered via a hijacked GitHub release or a compromised mirror. The default install path is `curl … | bash` so signature verification of the install script and the release tarball is a defence-in-depth concern.
+
+ **Mitigation (in progress for v2):** SHA-256 manifests published alongside every release tag; install scripts verify against the manifest before execution. Until that ships, users may install by cloning the tag explicitly and inspecting the diff against the previous release.
+
+3. **Local privilege escalation against stored credentials.** The OAuth token at `~/.config/claude-seo/oauth-token.json` is the most sensitive on-disk artifact.
+
+ **Mitigation:** v2 forces `0o600` on every write (`os.open` + `os.fchmod`) and remediates legacy `0o644` files in place on first load. Tokens never contain the OAuth `client_secret` — only the access/refresh pair plus expiry metadata.
+
+## Known residual risks
+
+- **Playwright + Chromium DNS rebinding.** Chromium does its own DNS resolution inside the renderer process. claude-seo's Python-layer DNS pin (`url_safety._pin_dns`) cannot reach it. The Playwright `route()` handler re-validates every subresource host (`make_safe_playwright_route_handler`), which closes the common case, but a true rebinding attacker can still race Chromium's resolver after our pre-flight returns. Mitigation: do not point `/seo` skills at untrusted sites with high-frequency redirects.
+- **IPv6-only audit targets.** The strict validator queries `family=AF_INET` for the initial resolution. Hosts with AAAA records only will surface as "DNS resolution failed". This is **fail-closed** by design — we'd rather refuse than connect to an unvalidated IPv6 endpoint. Tracked for a future patch (full dual-stack pinning, similar to the Playwright handler which already uses `AF_UNSPEC`).
+- **Windows file permissions.** `os.fchmod(fd, 0o600)` is a no-op on Windows for non-ACL filesystems. Users on Windows should rely on per-user directory ACLs instead of POSIX mode bits.
+
+## Security-relevant code paths
+
+If you are auditing, these are the high-leverage files:
+
+| File | Purpose |
+|---|---|
+| `scripts/url_safety.py` | SSRF / DNS-rebinding canonical module. |
+| `scripts/render_page.py` | Shared headless renderer (Playwright + trafilatura). |
+| `scripts/fetch_page.py` | Raw-HTTP fetcher built on `url_safety.safe_requests_session`. |
+| `scripts/capture_screenshot.py` | Playwright screenshot capture with safe route handler. |
+| `scripts/google_auth.py` | OAuth token lifecycle, `chmod 0o600` writes. |
+| `scripts/backlinks_auth.py` | Backlink-API credential loading; SSRF guard via `url_safety`. |
+| `tests/test_url_safety.py` | 122-test regression battery covering every bypass class. |
+
+## What this policy does **not** cover
+
+- Bugs that require attacker control of the user's machine (any local attacker is already game over).
+- Vulnerabilities in upstream dependencies — please report those to their respective maintainers. We track CVEs in `requirements.txt` and bump pins under the `deps:` Dependabot stream.
+- Quality-of-output issues (SEO recommendations, schema errors, etc.) — those are bugs, not security issues.
+
+## Security-relevant practices
+
+- No credentials or API keys are committed to this repository. `.gitignore` blocks every known credential filename pattern.
+- Install scripts write only to user-level directories under `~/.claude/` and `~/.config/claude-seo/`.
+- Python dependencies install into an isolated virtual environment at `~/.claude/skills/seo/.venv/`.
+- Every new fetcher must route through `scripts/url_safety.py` — there is no exception for "trusted" URLs.