Files
s41r4j-cybot/rules/semgrep-security.yaml
T
s41r4j 0f03d49514
CI / contracts (push) Canceled after 0s
Website / deploy (push) Canceled after 0s
CI / test (macos-latest) (push) Canceled after 0s
CI / test (ubuntu-24.04) (push) Canceled after 0s
CI / test (ubuntu-24.04-arm) (push) Canceled after 0s
CI / test (windows-latest) (push) Canceled after 0s
CI / Compact real-tool fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Compact real-tool fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
CI / Code analysis fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Code analysis fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
CI / Web engine fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Web engine fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
CI / Chromium operation fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Chromium operation fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
CI / operation-readiness (push) Canceled after 0s
CI / Supply chain fixtures (ubuntu-24.04) (push) Canceled after 0s
CI / Supply chain fixtures (ubuntu-24.04-arm) (push) Canceled after 0s
Initial commit
2026-11-01 09:14:18 +05:30

43 lines
1.2 KiB
YAML

rules:
- id: cybot.javascript.dynamic-eval
message: Dynamic code evaluation can execute attacker-controlled JavaScript.
severity: ERROR
languages: [javascript, typescript]
pattern-either:
- pattern: eval(...)
- pattern: new Function(...)
metadata:
category: security
cwe: CWE-95
- id: cybot.javascript.command-execution
message: Review command execution and ensure arguments cannot be attacker controlled.
severity: WARNING
languages: [javascript, typescript]
pattern-either:
- pattern: $CP.exec(...)
- pattern: $CP.execSync(...)
metadata:
category: security
cwe: CWE-78
- id: cybot.go.insecure-tls
message: TLS certificate verification is disabled.
severity: ERROR
languages: [go]
pattern: 'tls.Config{..., InsecureSkipVerify: true, ...}'
metadata:
category: security
cwe: CWE-295
- id: cybot.go.shell-command
message: Review shell command construction and prevent untrusted input from reaching the shell.
severity: WARNING
languages: [go]
pattern-either:
- pattern: exec.Command("sh", "-c", ...)
- pattern: exec.Command("bash", "-c", ...)
metadata:
category: security
cwe: CWE-78