MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / checkShellMetacharacters

Function checkShellMetacharacters

tools/bash/security.go:309–315  ·  view source on GitHub ↗
(command string)

Source from the content-addressed store, hash-verified

307}
308
309func checkShellMetacharacters(command string) []SecurityFinding {
310 target := ExtractQuotedContent(command).FullyUnquoted
311 if strings.Count(target, "`") >= 2 {
312 return []SecurityFinding{{ID: CheckShellMetacharacters, Description: "Backtick command substitution detected"}}
313 }
314 return nil
315}
316
317func checkNewlines(command string) []SecurityFinding {
318 target := ExtractQuotedContent(command).FullyUnquoted

Callers 1

RunAllSecurityChecksFunction · 0.85

Calls 2

ExtractQuotedContentFunction · 0.85
CountMethod · 0.80

Tested by

no test coverage detected