Back to skill

Security audit

RFC lookup

Security checks for vulnerabilities and agentic risk

Overview

The skill’s standards lookups, local storage, and user-controlled offline downloads fit its stated purpose.

Routine lookups need no bulk download. Optional offline downloads are large and persist locally; use a dedicated RFC directory because corpus sync can replace or delete RFC-named files. Prefer HTTPS retrieval when source integrity matters: the rsync mirror connection does not authenticate its source, and the prebuilt index relies on the project’s GitHub releases.

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
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (8)

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

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.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
75% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · scripts/rfc.py (reported line 50)May include surrounding context.

python
RFC_URL = "https://www.rfc-editor.org/rfc/rfc{number}.txt"
RSYNC_MODULE = "rsync.rfc-editor.org::rfcs-text-only/"

# How long the index is served without asking the RFC Editor whether it moved.
# Revalidation is a conditional GET the CDN answers 304 to, so a refresh past
# this costs a round trip rather than 2 MB, and a day is as fine-grained as the
# corpus gets: RFCs publish in weekday batches at roughly one a day.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/rfc.py (reported line 977)May include surrounding context.

python
def _run_search(cmd: list[str]) -> list[str]:
    try:
        proc = subprocess.run(
            cmd, capture_output=True, text=True, check=False, timeout=SEARCH_TIMEOUT_SECONDS
        )
    except subprocess.TimeoutExpired as exc:

Tainted flow: 'cmd' from os.environ.get (line 921, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/rfc.py (reported line 977)May include surrounding context.

python
def _run_search(cmd: list[str]) -> list[str]:
    try:
        proc = subprocess.run(
            cmd, capture_output=True, text=True, check=False, timeout=SEARCH_TIMEOUT_SECONDS
        )
    except subprocess.TimeoutExpired as exc:

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/rfc.py (reported line 1034)May include surrounding context.

python
# What `sync --index` costs, for messages written before the release listing
# is fetched. Measured on the build this version was released with.
INDEX_DOWNLOAD_SIZE = "about 270 MB"
INDEX_RELEASES_URL = "https://api.github.com/repos/shbernal/rfc-ai-tooling/releases?per_page=50"
INDEX_TAG_PREFIX = "index-"
INDEX_ASSET = f"{SECTION_INDEX_NAME}.gz"

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
92% confidence
Finding

The subprocess invocation does not use a shell, but the command it executes downloads documents through an unauthenticated rsync daemon connection using rsync.rfc-editor.org::rfcs-text-only/. A network attacker able to intercept that connection could alter the RFC corpus or index without detection; this matters because the skill subsequently presents those documents as authoritative specification text to an agent.

Content

Scanner excerpt · scripts/rfc.py (reported line 1671)May include surrounding context.

python
print("Cancelled.")
            return 1
    mirror.mkdir(parents=True, exist_ok=True)
    result = subprocess.run(cmd, check=False)
    if result.returncode == 0 and not dry_run:
        (mirror / SYNC_STAMP).write_text(f"synced {formatdate(usegmt=True)}\n", encoding="utf-8")
        print(f"\nDone. {count_documents(mirror)} documents in {mirror}")

Tainted flow: 'cmd' from os.environ.get (line 1658, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/rfc.py (reported line 1671)May include surrounding context.

python
print("Cancelled.")
            return 1
    mirror.mkdir(parents=True, exist_ok=True)
    result = subprocess.run(cmd, check=False)
    if result.returncode == 0 and not dry_run:
        (mirror / SYNC_STAMP).write_text(f"synced {formatdate(usegmt=True)}\n", encoding="utf-8")
        print(f"\nDone. {count_documents(mirror)} documents in {mirror}")

Dynamic attribute access via getattr()

Low
Category
Dangerous Code Execution
Confidence
50% confidence
Finding

Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.

Content

Scanner excerpt · scripts/rfc.py (reported line 292)May include surrounding context.

python
for match in _REFS.finditer(metadata):
        refs = [int(n) for n in _RFC_REF.findall(match.group(2))]
        key = match.group(1).lower().replace(" ", "_")
        getattr(record, key).extend(refs)
    for match in _ALSO.finditer(metadata):
        record.also.append(match.group(1).strip())
    status_match = _STATUS.search(metadata)