security-bun

Audit Bun runtime security patterns to detect injection and misconfiguration vulnerabilities.

7|2|Updated Jan 18, 2026
One-click install
npx skills add https://github.com/jal-co/jalco-opencode --skill security-bun-jal-co
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-bun
Source: https://github.com/jal-co/jalco-opencode/tree/main/opencode/.config/opencode/skills/security-bun
Command: npx skills add https://github.com/jal-co/jalco-opencode --skill security-bun-jal-co

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Bun security patterns help identify and mitigate vulnerabilities in Bun runtimes, including shell injection, SQL injection, server misconfigurations, and insecure process spawning.

Core Features & Use Cases

  • Audit Bun runtime security against common patterns such as unsafe command execution, unvalidated input, and open network exposure.
  • Provide concrete examples and safeguards for Bun.serve, Bun.spawn, Bun.file, and WebSocket usage to prevent path traversal, command injection, and credential leakage.
  • Reference actionable guidance and safeguards for integration into CI/CD and development workflows.

Quick Start

Run a security audit of a Bun-based project by applying the included patterns to identify shell and command handling issues, path traversal risks, and misconfigurations.

Frequently Asked Questions about security-bun

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit Bun runtime security to detect shell injection and path traversal?

Audit Bun runtime security by applying pattern checks to Bun.serve, Bun.spawn, and Bun.file code paths to detect shell injection, command injection, and path traversal vulnerabilities. This enforces safe input validation and parameterized queries to uncover server misconfigurations.

What are common Bun security vulnerabilities when using Bun.spawn and WebSocket handling?

Common Bun security vulnerabilities include unsafe command execution via Bun.spawn, unvalidated input in WebSocket handling, and path traversal through Bun.file operations. These issues can lead to shell injection, credential leakage, and open network exposure if not properly guarded.

Can I use this security audit to check Bun.serve configurations for misconfigurations?

Yes, you can use this audit to check Bun.serve configurations for misconfigurations. The audit evaluates server settings to identify open network exposure risks and enforces proper authentication before upgrades to prevent unauthorized access and credential leakage.

How do I integrate Bun security pattern checks into a CI/CD pipeline?

Integrate Bun security pattern checks into CI/CD pipelines by running the audit against your Bun-based project code paths. The audit provides actionable guidance and safeguards for development workflows, identifying shell and command handling issues alongside path traversal risks automatically.

What is the best way to prevent command injection in Bun applications?

The best way to prevent command injection in Bun applications is to enforce safe input validation, parameterized queries, and restricted network exposure across Bun.spawn and Bun.serve paths. Applying these security patterns mitigates unsafe command execution and shell injection risks.