/install go-security-vulnerability
Go Security Vulnerability Skill
Use Go tooling to identify, assess, and fix security vulnerabilities in Go modules. This skill helps detect and remediate vulnerabilities while maintaining application functionality.
Vulnerability Detection
Scan for vulnerabilities in your Go project:
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
Check specific modules for known vulnerabilities:
govulncheck -show verbose ./...
Assessment Process
- Identify Affected Packages: Determine which dependencies contain vulnerabilities
- Check Severity: Review the CVE details and potential impact
- Verify Usage: Confirm if the vulnerable functions are actually used in your code
- Plan Remediation: Choose the appropriate fix strategy
Common Fix Strategies
Direct Dependency Update
Update vulnerable packages to secure versions:
go get -u vulnerable/package@latest
go mod tidy
Transitive Dependency Handling
For vulnerabilities in transitive dependencies:
go mod why vulnerable/package # Understand why it's included
go mod edit -replace vulnerable/package=newer-version # Replace if needed
go mod tidy
Removal Strategy
If a dependency is unused or can be replaced:
- Remove direct imports of the vulnerable code
- Run
go mod tidyto clean up unused dependencies - Verify application functionality remains intact
Verification Steps
After applying fixes:
# Verify no vulnerabilities remain
govulncheck ./...
# Ensure application still builds
go build ./...
# Run tests to verify functionality
go test ./...
Common Vulnerabilities
JWT Libraries
- Issue:
github.com/golang-jwt/jwtGO-2025-3553 (excessive memory allocation) - Fix: Update to newer version or switch to
golang.org/x/oauth2alternatives
Standard Library Updates
- Keep Go version updated for security patches
- Run
go vulnto check for stdlib vulnerabilities
Best Practices
- Regularly scan dependencies with
govulncheck - Keep dependencies updated with
go get -u - Use
go mod tidyto remove unused dependencies - Test thoroughly after vulnerability fixes
- Monitor for new vulnerabilities with automated tools
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install go-security-vulnerability - 安装完成后,直接呼叫该 Skill 的名称或使用
/go-security-vulnerability触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Go Security Vulnerability 是什么?
Identify, assess, and fix security vulnerabilities in Go modules using govulncheck. Handle common vulnerabilities like JWT issues and ensure application stability during fixes. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1888 次。
如何安装 Go Security Vulnerability?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install go-security-vulnerability」即可一键安装,无需额外配置。
Go Security Vulnerability 是免费的吗?
是的,Go Security Vulnerability 完全免费(开源免费),可自由下载、安装和使用。
Go Security Vulnerability 支持哪些平台?
Go Security Vulnerability 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Go Security Vulnerability?
由 irook661(@irook661)开发并维护,当前版本 v0.1.0。