mcp-server-semgrep
Version:
MCP Server for Semgrep Integration - static code analysis with AI
33 lines (32 loc) • 802 B
YAML
rules:
- id: detected-npm-registry-auth-token
patterns:
- pattern: $AUTHTOKEN = $VALUE
- metavariable-regex:
metavariable: $AUTHTOKEN
regex: _(authToken|auth|password)
- pattern-not: $AUTHTOKEN = ${...}
languages: [generic]
message: NPM registry authentication token detected
paths:
include:
- '*npmrc*'
severity: ERROR
metadata:
cwe:
- 'CWE-798: Use of Hard-coded Credentials'
category: security
technology:
- secrets
- npm
confidence: LOW
owasp:
- A07:2021 - Identification and Authentication Failures
references:
- https://owasp.org/Top10/A07_2021-Identification_and_Authentication_Failures
cwe2022-top25: true
cwe2021-top25: true
subcategory:
- audit
likelihood: LOW
impact: MEDIUM