Archive SHA-256 c9dd6f5e6e9c4f59523536b81d78efcc1a79eeba97feaa1027e027d5be03e6c5 · 49.6 KB · built Nov 27, 2026
SECURITY.md
# Security and data handling: social-publisher
## Permissions (from `agent.json`)
| Permission | Value | Used by |
| --- | --- | --- |
| filesystem | `none` | No tool reads or writes files. The queue is returned as JSON; you decide where to save it. (The CLI reads the `--input` file you name; that is the SDK runner, not a tool.) |
| network | `api.x.com`, `api.linkedin.com`, `graph.facebook.com`, `www.googleapis.com` (https only) | `publish` only, and only the host of the item's platform. The SDK context rejects every other host and plain http. Redirects are refused (`redirect: "error"`). |
| credentials | `X_USER_ACCESS_TOKEN`, `LINKEDIN_ACCESS_TOKEN`, `FACEBOOK_PAGE_ACCESS_TOKEN`, `YOUTUBE_ACCESS_TOKEN` | `publish` only. Each token is sent only to its own platform: as a Bearer header (X, LinkedIn, YouTube) or in the POST body (Facebook, never in the URL). Tokens are never returned, logged or written. |
## Side effects and safeguards
- `draft_posts`, `schedule_queue`: none. Pure functions over your input.
- `publish`: **external write** that creates a public post (or, for YouTube, an upload session).
It runs only when all of these hold:
1. the input has `"confirm": true` (enforced by the SDK before the handler runs);
2. `item.approved` is `true` (the owner approved this content in the queue);
3. the item is due (not more than 5 minutes in the future) or `publish_now` is set;
4. the content fits the platform limit, and the platform's token is present.
- One call publishes one item to one account. There is no bulk mode, no background scheduler,
no follow/like/comment/DM, no account creation, no scraping and no engagement automation.
- Identical content is de-duplicated per account; identical X posts across several accounts are
refused in the queue (X automation rules). The deterministic idempotency key plus `published_keys`
prevents repeat posts on retries. 5xx and network errors are never retried automatically.
- YouTube uploads default to `private`. The returned `upload_url` is a capability for your channel:
keep it secret.
- Over MCP, the calling model supplies `confirm`. Keep your MCP client's per-tool approval prompt on
for `publish`, and only approve posts you have read.
## Data handling
- Brief, script and queue text are treated as untrusted data: never executed, and instructions found
inside them are not followed. Control and bidirectional-override characters are stripped from drafts.
- Nothing is stored. No telemetry, no analytics, no calls to AgentRove services.
- `publish` sends only the item's text, title, link (and YouTube metadata) to the chosen platform.
## Reporting
Report vulnerabilities through the AgentRove listing's report button or the responsible-disclosure
channel published on the AgentRove site. Do not include real tokens in reports.