Skip to content

Rule Reference

SEC418lintai-ai-securitystableclaude_settingswarn

Claude settings: shared raw.githubusercontent.com WebFetch permissions

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

Provider
lintai-ai-security
Surface
claude_settings
Scope
per_file
Tier
stable
Severity
warn
Confidence
high
Detection
structural
Remediation
message_only

Activation Model

Preset Membership

This rule is part of the builtin activation graph through these preset memberships.

Lifecycle

Stable Lifecycle Contract

State

stable_gated

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