Skip to content

Rule Reference

SEC418lintai-ai-securitygovernancehardeningstableclaude_settingswarn

Claude settings: shared raw.githubusercontent.com WebFetch permissions

Claude settings permissions allow `WebFetch(domain:raw.githubusercontent.com)` in a shared committed config

Public lane
governance
Category
hardening
Provider
lintai-ai-security
Scope
per-file
Surface
claude_settings
Tier
stable
Severity
warn
Confidence
high
Detection
structural
Remediation
message only
How to read this lane

Shared authority and workflow policy review.

How to read this category

Least-privilege, provenance, or operational hygiene signal.

Activation Model

Preset Activation

These presets explain where this rule appears in the product experience.

Lifecycle

Stable Lifecycle Contract

State

stable

Graduation rationale

Checks shared Claude settings permissions for explicit raw GitHub content fetch grants.

Deterministic signal basis

ClaudeSettingsSignals exact string detection for `WebFetch(domain:raw.githubusercontent.com)` inside permissions.allow on parsed Claude settings JSON.

Malicious corpus
claude-settings-webfetch-raw-github-permission
Benign corpus
claude-settings-webfetch-raw-github-fixture-safe
structured evidence required remediation reviewed
Canonical note

Structural stable rule intended as a high-precision check with deterministic evidence.

Nearby Signals

Related Rules

SEC418 / CLAUDE-WEBFETCH-RAW-GITHUB

Claude settings permissions allow WebFetch(domain:raw.githubusercontent.com) in a shared committed config.

Why It Matters

raw.githubusercontent.com serves direct repository file contents. Granting fetch access to that domain in shared Claude settings makes it easy for an agent to pull mutable remote content outside the normal repository review path.

Trigger Shape

This rule applies to committed shared Claude settings files and triggers only on the exact permission token:

  • WebFetch(domain:raw.githubusercontent.com)

Clean Cases

  • WebFetch(domain:developers.openai.com)
  • WebFetch(domain:github.com)
  • no WebFetch grants at all

Example Trigger

json
{
  "permissions": {
    "allow": [
      "WebFetch(domain:raw.githubusercontent.com)"
    ]
  }
}

How To Fix

  • remove the raw-content fetch grant
  • or replace it with a narrower reviewed documentation source