security-review

Audit Terraform provider Go code, dependencies, and secrets with gosec, trunk, osv-scanner, and trivy.

16|5|Updated Jul 19, 2023
One-click install
npx skills add https://github.com/ubie-oss/terraform-provider-lightdash --skill security-review-ubie-oss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-review
Source: https://github.com/ubie-oss/terraform-provider-lightdash/tree/main/.claude/skills/security-review
Command: npx skills add https://github.com/ubie-oss/terraform-provider-lightdash --skill security-review-ubie-oss

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Comprehensive security review of the Terraform Provider for Lightdash focusing on Go source code, dependencies, and secrets to identify risks early.

Core Features & Use Cases

  • Static Analysis for Go using gosec to detect common vulnerabilities.
  • Integrated security checks with trunk (Semgrep and Gitleaks) and explicit exclusion of checkov.
  • Open source vulnerability scanning of dependencies with osv-scanner.
  • Filesystem, secret, and config scanning with trivy to detect secrets and misconfigurations.
  • Structured reporting including summary, detailed findings, false positives, and remediation planning.

Quick Start

Run the security-review workflow to audit the Terraform provider's codebase for Go security, dependencies, and secrets.

Frequently Asked Questions about security-review

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

FAQPage Schema
How do I scan a Terraform provider codebase for Go security vulnerabilities?

To scan a Terraform provider codebase for Go security vulnerabilities, run the security-review workflow to execute gosec static analysis. It detects common vulnerabilities directly within Go sources and produces a structured report detailing findings and severities.

What is the best way to detect secrets and misconfigurations in Terraform provider code?

The best way to detect secrets and misconfigurations in Terraform provider code is using trivy filesystem, secret, and config scanning. This process identifies exposed risks early and outputs remediation steps to secure the codebase.

Does osv-scanner work with trunk for dependency vulnerability scanning?

Yes, osv-scanner works alongside trunk for dependency vulnerability scanning. While trunk integrates Semgrep and Gitleaks checks, osv-scanner specifically scans open source dependencies to identify known vulnerabilities across the Terraform provider codebase.

How does the security review handle false positives from gosec and trivy?

The security review handles false positives from gosec and trivy by applying explicit guardrails during analysis. It produces a structured report that separates verified threats from false positives and includes planning for remediation steps.

When should I exclude checkov during Terraform provider security audits?

You should exclude checkov during Terraform provider security audits when using the integrated trunk workflow, which explicitly omits checkov to streamline Semgrep and Gitleaks checks. This prevents overlapping infrastructure as code scans during development and CI.

Can I run gosec and trivy checks during pre-release CI pipelines?

Yes, you can run gosec and trivy checks during pre-release CI pipelines. The security review workflow applies static analysis, dependency, and secret scanning across development, CI, and pre-release stages to identify risks early.