If you discover a security vulnerability, please report it responsibly via the private GitHub Security Advisory channel:
- Do NOT open a public issue (public issues expose the vulnerability before it can be patched).
- Open a GitHub Security Advisory on the public repo. This is the only supported private disclosure channel, so do not email or DM.
- Include: affected version (for example, the output of
python -m claude_ads_core --version), reproduction steps, and impact assessment.
We aim to acknowledge reports within 48 hours and provide an estimated resolution timeline within 7 days.
| Version | Security fixes |
|---|---|
3.0.x (paid-ads) |
Yes |
2.1.1 (legacy claude-ads marketplace entry, frozen) |
No |
| Anything older | No |
Only the 3.0.x line receives security fixes. The legacy claude-ads marketplace entry stays pinned to the frozen v2.1.1 tag until 2027-03-01 so existing installs keep resolving, but it receives no security fixes; move to paid-ads (see the README section "Upgrading from v2").
- No credentials or API keys are stored in this repository.
- Install scripts (
install.sh,install.ps1, backed byplugins/paid-ads/scripts/manage_install.py) write only to configured host roots, canonicalize destinations, reject link escapes and unowned file collisions, and record an atomic ownership manifest (.paid-ads-<target>.manifest.json). The Windows installer preflights its complete plan and rejects reparse-point, managed-environment, and late-file collisions before its first destination write. - Python dependencies install in isolated virtual environments from hash-pinned lockfiles (
plugins/paid-ads/requirements.lock,--require-hashes --only-binary=:all:). - Shared SSRF validation (
plugins/paid-ads/scripts/url_utils.py) rejects non-public IPv4/IPv6 addresses, pins HTTP requests to the validated numeric address while preserving Host/SNI/TLS verification, and re-enters the guard for every redirect. - 3-tier browser and page-fetch boundary (v3.0.0):
- Default HTTP fetch (
plugins/paid-ads/scripts/fetch_page.py): DNS-pinned HTTP with a strict 10 MiB response body cap; Chromium is not launched by default. - Explicit workstation opt-in (
--allow-local-browser): allows local interactive workstation Playwright captures inplugins/paid-ads/scripts/capture_screenshot.pyandplugins/paid-ads/scripts/analyze_landing.pywhile keeping SSRF, redirect, and subresource validation active. Rejected automatically whenCLAUDE_ADS_REQUIRE_EGRESS_ATTESTATION=1is set. - Enterprise / CI attested mode (
CLAUDE_ADS_REQUIRE_EGRESS_ATTESTATION=1): denies browser dispatch unless an external OS/container egress sandbox supplies a short-lived Ed25519-signed attestation bound to the current environment. Screenshot capture writes a digest-bound receipt (control-plane/schemas/browser-capture-receipt.schema.json).
- Default HTTP fetch (
- Hardened PDF rendering: PDF report text is escaped before rendering on both PDF paths, so report values cannot inject markup. The canonical renderer (
plugins/paid-ads/claude_ads_core/reporting.py) HTML-escapes every value and enforces a deny-allurl_fetcherin WeasyPrint so PDF generation can never fetch local files or external network resources. Theplugins/paid-ads/scripts/generate_report.pyhelper passes values, including the health score caption, through one escaping function before ReportLab parses its markup. - Unified redaction (
plugins/paid-ads/claude_ads_core/redaction.py): centralizes secret, bearer-token, provider API key, contact, filesystem-path, and terminal control-character scrubbing across reports, Cockpit views, action receipts, and CLI error handlers (sanitize_error()). - CSV formula-injection protection: Google Ads Editor draft CSV exports sanitize cells starting with
=,+,-,@, tab, or carriage return and mark outputsdraft_for_human_review. - GitHub Actions are pinned to full commit SHAs. Dependabot pull requests are never merged automatically: a human owns every merge decision after required branch checks.
- Exact-version
pip-auditruns viatools/audit_dependencies.pyon every CI build. New, unhandled, stale, or execution-path-relevant advisories fail closed. A reported advisory may pass only through an expiring, exact-versionnot_affectedrecord with verified code-path evidence.
The following endpoints may be contacted at runtime. All user-supplied URLs pass through the SSRF blocklist before any fetch is attempted; trusted vendor endpoints are hardcoded and not user-influenceable.
| Endpoint | Purpose | Script | Gated by |
|---|---|---|---|
generativelanguage.googleapis.com |
Gemini image generation (fallback path) | plugins/paid-ads/scripts/generate_image.py |
API key (env var) |
api.openai.com |
OpenAI image generation (fallback path) | plugins/paid-ads/scripts/generate_image.py |
API key (env var) |
api.stability.ai |
Stability AI image generation (fallback path) | plugins/paid-ads/scripts/generate_image.py |
API key (env var) |
api.replicate.com |
Replicate model invocation (fallback path) | plugins/paid-ads/scripts/generate_image.py |
API key (env var) |
| Replicate-returned result URL | Fetch generated image bytes | plugins/paid-ads/scripts/generate_image.py |
HTTPS check + SSRF revalidation via url_utils.validate_url |
| User-supplied URLs | Landing page analysis, screenshot capture, page fetch | plugins/paid-ads/scripts/analyze_landing.py, capture_screenshot.py, fetch_page.py |
DNS-pinned HTTP (10 MiB cap); browser denied by default unless explicit --allow-local-browser or attested egress sandbox (CLAUDE_ADS_REQUIRE_EGRESS_ATTESTATION=1) |
github.com (read-only, via git clone) |
Skill installation | install.sh, install.ps1 |
Hardcoded repo URL |
PyPI (pypi.org, files.pythonhosted.org) |
Python dependency install | install.sh, install.ps1 |
Hardcoded; hash-pinned wheels |
If you discover any other outbound destination not listed above, please report it via the disclosure channel above.
The Boolean --egress-sandbox-attested escape hatch is not supported. When
running under CLAUDE_ADS_REQUIRE_EGRESS_ATTESTATION=1 (or when an attestation
file is supplied), browser execution accepts only a JSON document conforming to
plugins/paid-ads/control-plane/schemas/egress-sandbox-attestation.schema.json
and authenticated with Ed25519. The signature covers the canonical JSON object
with authentication.signature_b64url omitted: UTF-8, lexicographically sorted
keys, no insignificant whitespace, and no ASCII escaping. Attestations must:
- name the
claude-ads-browser-egressaudience and the exact environment; - expire within 24 hours of issuance;
- assert every required IPv4, IPv6, DNS-rebinding, redirect, subresource, metadata, private-address, and fail-closed control;
- include test or policy evidence references; and
- be signed by a key whose public half, key ID, and environment ID are supplied
outside the document through
CLAUDE_ADS_EGRESS_ATTESTATION_PUBLIC_KEY_B64URL,CLAUDE_ADS_EGRESS_ATTESTATION_KEY_ID, andCLAUDE_ADS_EGRESS_ENVIRONMENT_ID.
The runtime receives only the Ed25519 public key, so it cannot manufacture an attestation. Missing dependencies, trust material, controls, evidence, signature, environment binding, or freshness fail closed before Chromium launches. The schema and signature authenticate the issuer's claim; operators must still configure and test the named network boundary independently.
Screenshots and their receipts are confidential. They use same-directory atomic
replacement, receive mode 0600 where POSIX permissions are available, omit the
URL path and query from the receipt, and must not be committed, attached to public
issues, or included in release packages. Capture requires a validated confidential
data-lifecycle contract; receipts contain its lifecycle fields and only
repository/run-relative artifact locators.
Every persisted run and workflow artifact declares the versioned contract in
plugins/paid-ads/claude_ads_core/schemas/v1/data-lifecycle.schema.json. The
product policy is plugins/paid-ads/control-plane/manifests/data-lifecycle-policy.json.
It records classification, an explicit zero-second product minimum plus an
operator-defined purpose-bound deadline or exception, verified encryption
evidence for non-public data, least-privilege roles, deletion and independent
verification, and private incident handling. These are operational safeguards,
not legal retention requirements or claims of compliance.
Creative-generation JSON stores prompt SHA-256 values and the canonical redacted summary only. Screenshot and generation JSON store relative locators only. Raw prompts, private provider payloads, and resolved local paths remain outside shipped artifacts and should be handled through approved ephemeral/private evidence channels.