EmanuProds/dotfiles / skills/skills/bash-secure-scripting
bash-secure-scripting"
VerifiedAuthors, reviews, and hardens Bash scripts for the stability and security properties a linter cannot verify on its own, including strict-mode semantics and the cases errexit ignores, cleanup and locking on every exit path, injection-safe handling of untrusted input and filenames, PATH and environment control, temporary files and permissions, and credential handling, verified with shellcheck, bash -n, and the repository's formatter in a bounded loop. Use when creating or editing a shell script, a sourced shell library, or shell embedded in CI steps, container entrypoints, systemd units, cron jobs, or git hooks, and when reviewing quoting, eval, set -euo pipefail, traps, temporary files, privilege or sudo use, or secrets in shell code.
Security report
VerifiedStatic analysis of one exact version. It reduces risk and shows evidence; it does not certify that a skill is safe.
- Commit
3cc96df050e1332fa5a400c26d5545d471c51a27- Content hash
7ac69e933b6df6f57113ff856cd411728d82de049e09f70889e7c4ab478495ba- Scanned
- 2026-11-17
- Scanner version
- skillxone-scan-1.0.0
- Policy version
- 0.1-draft
- Decision
- Every required check completed with no open blocking or medium findings.
- Verification expires
- 2026-12-17
Findings (5 low, 2 info)
- low
INT-MISSING-LICENSENeither the skill nor its repository states a license, so the terms of use are unclear.
Suggested fix: Add a LICENSE file to the repository or a `license` field to SKILL.md.
A script is downloaded and run in one step, so whatever the server returns at that moment is executed without review. Severity lowered from high because the surrounding text warns against it.
- Never `curl … | bash`, `wget -O - … | sh`, or any variant. The shell executes whatever arrives,Suggested fix: Download the script, check it (and its checksum or signature), then run the saved copy. Prefer a package manager.
A command runs with administrator privileges.
description: Authors, reviews, and hardens Bash scripts for the stability and security properties a linter cannot verify on its own, including strict-mode semantics and the cases errexit ignores, cleanup and locking on every exit path, inj…Suggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
A script is downloaded and run in one step, so whatever the server returns at that moment is executed without review. Severity lowered from high because the surrounding text warns against it.
- **Never pipe a downloaded artifact into a shell.** `curl … | bash` executes whatever the serverSuggested fix: Download the script, check it (and its checksum or signature), then run the saved copy. Prefer a package manager.
A link uses unencrypted http:// (redsymbol.net), so its content can be altered in transit.
- Aaron Maxwell, [Unofficial Bash Strict Mode](http://redsymbol.net/articles/unofficial-bash-strict-mode/)Suggested fix: Use https://.
A command runs with administrator privileges. Severity lowered from low because the surrounding text warns against it.
- **Do not prompt for a password inside a loop of `sudo` calls.** Use `sudo -n` and fail with aSuggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
A command runs with administrator privileges. Severity lowered from low because the surrounding text warns against it.
sudo sh -c "install ${package}" # parsed by sh, running as rootSuggested fix: Avoid sudo where possible. If it is required, explain why so the user can decide.
Checks run
- prompt-injection
- dangerous-commands
- credentials
- network
- file-access
- integrity
Checks skipped
- dependencies: No dependency manifest in the skill directory.
- gitleaks: gitleaks is not installed on this host.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |