Back to skill

Security audit

odds-api-integration-builder

Security checks for vulnerabilities and agentic risk

Overview

The skill provides a clearly scoped odds API integration, with a data-output limitation to address before production use.

Keep your API key in the server-side runtime and use a dummy key for loopback tests. Preserve bookmaker exclusion headers before treating snapshot output as complete coverage. All bundled files and identified scanner gaps were reviewed; testing used mocked responses without live authenticated API calls.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (16)

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, network.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 26)May include surrounding context.

md
## Use the public contract

Read [references/integration.md](references/integration.md) when selecting routes, filters, or response fields. Read [references/streaming.md](references/streaming.md) when the task needs continuous updates, reconnects, or state reconciliation. Check the current [public API documentation](https://odds-api.net/docs) or [OpenAPI schema](https://api.odds-api.net/v1/openapi.json) before adding routes not covered by the starter.

- Production base URL: `https://api.odds-api.net/v1`. Authentication: server-side `X-API-Key` from `ODDS_API_KEY`. `ODDS_API_BASE_URL` can explicitly select a loopback mock for local testing. The bundled clients refuse other hosts and redirects so credentials cannot silently leave the intended API boundary.
- Never ask for a key in chat, hardcode a credential, place it in a URL or CLI argument, generate a credential value, read unrelated environment files, or expose it in browser code. Document the variable name and let the user configu

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 28)May include surrounding context.

md
Read [references/integration.md](references/integration.md) when selecting routes, filters, or response fields. Read [references/streaming.md](references/streaming.md) when the task needs continuous updates, reconnects, or state reconciliation. Check the current [public API documentation](https://odds-api.net/docs) or [OpenAPI schema](https://api.odds-api.net/v1/openapi.json) before adding routes not covered by the starter.

- Production base URL: `https://api.odds-api.net/v1`. Authentication: server-side `X-API-Key` from `ODDS_API_KEY`. `ODDS_API_BASE_URL` can explicitly select a loopback mock for local testing. The bundled clients refuse other hosts and redirects so credentials cannot silently leave the intended API boundary.
- Never ask for a key in chat, hardcode a credential, place it in a URL or CLI argument, generate a credential value, read unrelated environment files, or expose it in browser code. Document the variable name and let the user configure it in their runtime. Do n

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · assets/javascript/README.md (reported line 19)May include surrounding context.

md
`api.mjs` handles authentication, bounded rate-limit retries, safe errors, host checks, and pagination. `discovery.mjs` provides catalogs, bounded event discovery, and complete snapshot pages. `main.mjs` prints JSON including each page's freshness metadata. `stream.mjs` emits snapshot, delta, heartbeat, and resync frames as JSON lines; it is a finite transport consumer, not a cache, notifier, or trading application.

`ODDS_API_BASE_URL` defaults to `https://api.odds-api.net/v1`; an explicit loopback `/v1` URL is allowed for mocked tests. Other hosts and redirects are refused. API keys belong on the backend, never in browser-visible code or URLs.

Sequential snapshot pages are not atomic. For a cache, preserve market identity, process ordered semantic delta batches idempotently, and commit data plus resume tokens together. Reload the snapshot on `resync`.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · assets/javascript/api.mjs (reported line 2)May include surrounding context.

js
// Node.js 22+. Uses the public API only; never loads environment files.
export const DEFAULT_BASE = 'https://api.odds-api.net/v1';
export class SkillError extends Error {}

export function baseUrl(value = DEFAULT_BASE) {

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · assets/python/README.md (reported line 18)May include surrounding context.

md
`odds_client.py` provides a read-only client with bounded retries, cursor pagination, complete snapshot checks, safe error messages, host checks, and redirect refusal. `example.py` prints JSON. Snapshot results retain separate page metadata because sequential pages are not an atomic capture.

The production base is `https://api.odds-api.net/v1`. Set `ODDS_API_BASE_URL` only when intentionally using an explicit loopback `/v1` mock. Keep authenticated calls on the backend.

This starter implements REST. For continuous updates, fetch the initial snapshot, connect to the matching SSE/WebSocket route with its resume token, reconcile ordered deltas idempotently, and reload the snapshot on resync. See the integration skill's streaming reference before implementing that state machine.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · assets/python/odds_client.py (reported line 14)May include surrounding context.

python
from email.utils import parsedate_to_datetime


DEFAULT_BASE = "https://api.odds-api.net/v1"


class ClientError(Exception):

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · references/streaming.md (reported line 19)May include surrounding context.

md
WebSocket messages mirror SSE with JSON envelopes such as `{"event":"delta","data":{...}}`. Prefer header authentication in server-side clients. Browser WebSocket APIs cannot attach arbitrary headers; proxy through a backend so API keys never enter browser code or URL query strings. On `resync`, reload the corresponding snapshot before processing more updates.

References: [streaming guide and endpoint contracts](https://odds-api.net/docs), [public OpenAPI](https://api.odds-api.net/v1/openapi.json).

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/lib/api.mjs (reported line 2)May include surrounding context.

js
// Node.js 22+. Uses the public API only; never loads environment files.
export const DEFAULT_BASE = 'https://api.odds-api.net/v1';
export class SkillError extends Error {}

export function baseUrl(value = DEFAULT_BASE) {

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · assets/javascript/api.mjs (reported line 11)May include surrounding context.

js
const official = url.protocol === 'https:' && url.hostname === 'api.odds-api.net' && !url.port;
  const loopback = ['localhost', '127.0.0.1', '[::1]'].includes(url.hostname) && ['http:', 'https:'].includes(url.protocol);
  if ((!official && !loopback) || url.username || url.password || url.search || url.hash || url.pathname.replace(/\/$/, '') !== '/v1') {
    throw new SkillError('Use https://api.odds-api.net/v1 or an explicit loopback /v1 mock server.');
  }
  return url.href.replace(/\/$/, '');
}

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · assets/python/odds_client.py (reported line 35)May include surrounding context.

python
official = url.scheme == "https" and url.hostname == "api.odds-api.net" and port in (None, 443)
    loopback = url.scheme in ("http", "https") and url.hostname in ("localhost", "127.0.0.1", "::1")
    if not (official or loopback) or url.username or url.password or url.query or url.fragment or url.path.rstrip("/") != "/v1":
        raise ClientError("Use https://api.odds-api.net/v1 or an explicit loopback /v1 mock server.")
    return value.rstrip("/")

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/lib/api.mjs (reported line 11)May include surrounding context.

js
const official = url.protocol === 'https:' && url.hostname === 'api.odds-api.net' && !url.port;
  const loopback = ['localhost', '127.0.0.1', '[::1]'].includes(url.hostname) && ['http:', 'https:'].includes(url.protocol);
  if ((!official && !loopback) || url.username || url.password || url.search || url.hash || url.pathname.replace(/\/$/, '') !== '/v1') {
    throw new SkillError('Use https://api.odds-api.net/v1 or an explicit loopback /v1 mock server.');
  }
  return url.href.replace(/\/$/, '');
}

Snapshot output strips page envelopes despite the comment promising to preserve page-level metadata.

Medium
Category
Excessive Agency
Confidence
92% confidence
Finding

Mapping each page to page.data preserves body-level freshness fields but drops envelope metadata, including the client's captured excluded-bookmaker header. Downstream consumers can therefore receive an output labeled complete without visibility into header-reported exclusions, undermining the reliability of odds comparisons.

Content

No source excerpt is available for this finding.

Scope Creep

Low
Category
Excessive Agency
Confidence
70% confidence
Finding

Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.

Content

Scanner excerpt · LICENSE (reported line 12)May include surrounding context.

text
permit persons to whom the Software is furnished to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE

Scope Creep

Low
Category
Excessive Agency
Confidence
70% confidence
Finding

Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.

Content

Scanner excerpt · assets/javascript/LICENSE (reported line 12)May include surrounding context.

text
permit persons to whom the Software is furnished to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE

Scope Creep

Low
Category
Excessive Agency
Confidence
70% confidence
Finding

Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.

Content

Scanner excerpt · assets/python/LICENSE (reported line 12)May include surrounding context.

text
permit persons to whom the Software is furnished to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE