api-mitmproxy
Interactive HTTPS proxy for API security testing with traffic interception, modification, and replay capabilities. Supports…
Software Bill of Materials (SBOM) generation using Syft for container images, filesystems, and archives. Detects packages across 28+ ecosystems with multi-format output support (CycloneDX, SPDX, syft-json). Enables vulnerability assessment, license compliance, and supply chain
Claude Code
$ npx -y skills add AgentSecOps/SecOpsAgentKit --skill sbom-syft --agent claude-code
Codex
$ npx skills add AgentSecOps/SecOpsAgentKit --skill sbom-syft -a codex -y
Cursor
$ npx skills add AgentSecOps/SecOpsAgentKit --skill sbom-syft -a cursor -y
Gemini CLI
$ npx skills add AgentSecOps/SecOpsAgentKit --skill sbom-syft -a gemini-cli -y
GitHub Copilot
$ npx skills add AgentSecOps/SecOpsAgentKit --skill sbom-syft -a github-copilot -y
OpenCode
$ npx skills add AgentSecOps/SecOpsAgentKit --skill sbom-syft -a opencode -y
Windsurf
$ npx skills add AgentSecOps/SecOpsAgentKit --skill sbom-syft -a windsurf -y
name: sbom-syft description: > Software Bill of Materials (SBOM) generation using Syft for container images, filesystems, and archives. Detects packages across 28+ ecosystems with multi-format output support (CycloneDX, SPDX, syft-json). Enables vulnerability assessment, license compliance, and supply chain security. Use when: (1) Generating SBOMs for container images or applications, (2) Analyzing software dependencies and packages for vulnerability scanning, (3) Tracking license compliance across dependencies, (4) Integrating SBOM generation into CI/CD for supply chain security, (5) Creating signed SBOM attestations for software provenance. version: 0.1.0 maintainer: SirAppSec category: secsdlc tags: [sbom, syft, supply-chain, dependencies, cyclonedx, spdx, vulnerability-management, license-compliance] frameworks: [NIST, OWASP] dependencies: tools: [docker] references: - https://github.com/anchore/syft - https://anchore.com/sbom/
Syft is a CLI tool and Go library for generating comprehensive Software Bills of Materials (SBOMs) from container images and filesystems. It provides visibility into packages and dependencies across 28+ ecosystems, supporting multiple SBOM formats (CycloneDX, SPDX) for vulnerability management, license compliance, and supply chain security.
**Languages & Package Managers:** Alpine (apk), C/C++ (conan), Dart (pub), Debian/Ubuntu (dpkg), Dotnet (deps.json), Go (go.mod), Java (JAR/WAR/EAR/Maven/Gradle), JavaScript (npm/yarn), PHP (composer), Python (pip/poetry/setup.py), Red Hat (RPM), Ruby (gem), Rust (cargo), Swift (cocoapods)
**Container & System:** OCI images, Docker images, Singularity, container layers, Linux distributions
Generate SBOM for container image:
# Using Docker docker run --rm -v $(pwd):/out anchore/syft:latest <image> -o cyclonedx-json=/out/sbom.json # Local installation syft <image> -o cyclonedx-json=sbom.json # Examples syft alpine:latest -o cyclonedx-json syft docker.io/nginx:latest -o spdx-json syft dir:/path/to/project -o cyclonedx-json
For creating SBOMs of container images:
1. Identify target container image (local or registry) 2. Run Syft to generate SBOM:
syft <image-name:tag> -o cyclonedx-json=sbom-cyclonedx.json
3. Optionally generate multiple formats:
syft <image-name:tag> \
-o cyclonedx-json=sbom-cyclonedx.json \
-o spdx-json=sbom-spdx.json \
-o syft-json=sbom-syft.json4. Store SBOM artifacts with image for traceability 5. Use SBOM for vulnerability scanning with Grype or other tools 6. Track SBOM versions alongside image releases
Progress: [ ] 1. Add Syft to build pipeline after image creation [ ] 2. Generate SBOM in standard format (CycloneDX or SPDX) [ ] 3. Store SBOM as build artifact [ ] 4. Scan SBOM for vulnerabilities (using Grype or similar) [ ] 5. Fail build on critical vulnerabilities or license violations [ ] 6. Publish SBOM alongside container image [ ] 7. Integrate with vulnerability management platform
Work through each step systematically. Check off completed items.
For generating SBOMs from source code or filesystems:
1. Navigate to project root or specify path 2. Scan directory structure:
syft dir:/path/to/project -o cyclonedx-json=app-sbom.json
3. Review detected packages and dependencies 4. Validate package detection accuracy (check for false positives/negatives) 5. Configure exclusions if needed (using `.syft.yaml`) 6. Generate SBOM for each release version 7. Track dependency changes between versions
Combining SBOM generation with vulnerability assessment:
1. Generate SBOM with Syft:
syft <target> -o cyclonedx-json=sbom.json
2. Scan SBOM for vulnerabilities using Grype:
grype sbom:sbom.json -o json --file vulnerabilities.json
3. Review vulnerability findings by severity 4. Filter by exploitability and fix availability 5. Prioritize remediation based on:
6. Update dependencies and regenerate SBOM 7. Re-scan to verify vulnerability remediation
For creating cryptographically signed SBOM attestations:
1. Install cosign (for signing):
# macOS brew install cosign # Linux wget https://github.com/sigstore/cosign/releases/latest/download/cosign-linux-amd64 chmod +x cosign-linux-amd64 mv cosign-linux-amd64 /usr/local/bin/cosign
2. Generate SBOM:
syft <image> -o cyclonedx-json=sbom.json
3. Create attestation and sign:
cosign attest --predicate sbom.json --type cyclonedx <image>
4. Verify attestation:
cosign verify-attestation --type cyclonedx <image>
5. Store signature alongside SBOM for provenance verification
Syft supports multiple SBOM formats for different use cases:
| Format | Use Case | Specification | |--------|----------|---------------| | `cyclonedx-json` | Modern SBOM standard, wide tool support | CycloneDX 1.4+ | | `cyclonedx-xml` | CycloneDX XML variant | CycloneDX 1.4+ | | `spdx-json` | Linux Foundation standard | SPDX 2.3 | | `spdx-tag-value` | SPDX text format | SPDX 2.3 | | `syft-json` | Syft native format (most detail) | Syft-specific | | `syft-text` | Human-readable console output | Syft-specific | | `github-json` | GitHub dependency submission | GitHub-specific | | `template` | Custom Go template output | User-defined |
Specify with `-o` flag:
syft <target> -o cyclonedx-json=output.json
Create `.syft.yaml` in project root or home directory:
# Cat
An assortment of security operations skills for AI coding agents. A collaborative approach to shift-left security using Claude Code skills.
Interactive HTTPS proxy for API security testing with traffic interception, modification, and replay capabilities. Supports…
API specification linting and security validation using Stoplight's Spectral with support for OpenAPI, AsyncAPI, and Arazzo…
Fast web fuzzer for DAST testing with directory enumeration, parameter fuzzing, and virtual host discovery. Written in Go for…
Fast, template-based vulnerability scanning using ProjectDiscovery's Nuclei with extensive community templates covering CVEs,…
Dynamic application security testing (DAST) using OWASP ZAP (Zed Attack Proxy) with passive and active scanning, API testing, and…
Python security vulnerability detection using Bandit SAST with CWE and OWASP mapping. Use when: (1) Scanning Python code for…
Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…
Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys)…
Clean and finalize authorized natural-language text intended for readers by auditing suspicious invisible Unicode and rewriting…