Skip to content

Rule Reference

SEC376lintai-ai-securitygovernancehardeningstableclaude_settingswarn

Claude settings: wildcard Grep permissions

Claude settings permissions allow `Grep(*)` 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 wildcard `Grep(*)` grants.

Deterministic signal basis

ClaudeSettingsSignals exact string detection for `Grep(*)` inside permissions.allow on parsed Claude settings JSON.

Malicious corpus
claude-settings-grep-wildcard
Benign corpus
claude-settings-grep-specific-safe
structured evidence required remediation reviewed
Canonical note

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

Nearby Signals

Related Rules

Why It Matters

SEC376 flags committed Claude settings files when permissions.allow contains the exact wildcard search grant Grep(*).

This is useful because:

  • shared Claude settings often become team-wide defaults by copy/paste
  • Grep(*) grants broad content-search capability instead of a reviewed scoped pattern set
  • broad content-search access is harder to defend in code review when a workflow only needs narrow, documented search scopes

Trigger Shape

  • artifact kind is committed Claude settings
  • permissions.allow contains the exact string Grep(*)
  • file is not under a fixture-like path

Clean Cases

  • scoped patterns like Grep(todo:)
  • fixture/test/example copies
  • unrelated markdown or non-Claude config files

Example Trigger

json
{
  "permissions": {
    "allow": ["Grep(*)", "Read(*)"]
  }
}

Safer Example

json
{
  "permissions": {
    "allow": ["Grep(todo:)", "Read(./docs/**)"]
  }
}

How To Fix

  • replace Grep(*) with specific reviewed grep scopes
  • remove broad content-search access from the shared Claude settings file if it is not required