Sca blackduck

From aiskillstore/marketplace · View interactive version

Sca blackduck is an AI agent skill from the GitHub repository aiskillstore/marketplace. Software Composition Analysis (SCA) using Synopsys Black Duck for identifying open source vulnerabilities, license compliance risks, and supply chain security threats with CVE, CWE, and OWASP framework mapping. Use when: (1) Scanning dependencies for known vulnerabilities and security risks, (2) Ana

How to use this skill

Skill file

Software Composition Analysis with Black Duck

Overview

Perform comprehensive Software Composition Analysis (SCA) using Synopsys Black Duck to identify

security vulnerabilities, license compliance risks, and supply chain threats in open source

dependencies. This skill provides automated dependency scanning, vulnerability detection with

CVE mapping, license risk analysis, and remediation guidance aligned with OWASP and NIST standards.

Quick Start

Scan a project for dependency vulnerabilities:

# Using Black Duck Detect (recommended)
bash <(curl -s -L https://detect.synopsys.com/detect.sh) \
  --blackduck.url=$BLACKDUCK_URL \
  --blackduck.api.token=$BLACKDUCK_TOKEN \
  --detect.project.name="MyProject" \
  --detect.project.version.name="1.0.0"

Scan with policy violation enforcement:

# Fail build on policy violations
bash <(curl -s -L https://detect.synopsys.com/detect.sh) \
  --blackduck.url=$BLACKDUCK_URL \
  --blackduck.api.token=$BLACKDUCK_TOKEN \
  --detect.policy.check.fail.on.severities=BLOCKER,CRITICAL

Core Workflows

Workflow 1: Initial Dependency Security Assessment

Progress:

[ ] 1. Identify package managers and dependency manifests in codebase

[ ] 2. Run scripts/blackduck_scan.py with project detection

[ ] 3. Analyze vulnerability findings categorized by severity (CRITICAL, HIGH, MEDIUM, LOW)

[ ] 4. Map CVE findings to CWE and OWASP Top 10 categories

[ ] 5. Review license compliance risks and policy violations

[ ] 6. Generate prioritized remediation report with upgrade recommendations

Work through each step systematically. Check off completed items.

Workflow 2: Vulnerability Remediation

  1. Review scan results and identify critical/high severity vulnerabilities
  2. For each vulnerability:
  1. Apply dependency updates using package manager
  2. Re-scan to validate fixes
  3. Document any vulnerabilities accepted as risk with justification

Workflow 3: License Compliance Analysis

  1. Run Black Duck scan with license risk detection enabled
  2. Review components flagged with license compliance issues
  3. Categorize by risk level:
  1. Consult legal team for high-risk license violations
  2. Document license decisions and create policy exceptions if approved

Workflow 4: CI/CD Integration

  1. Add Black Duck Detect to CI/CD pipeline using assets/ci_integration/
  2. Configure environment variables for Black Duck URL and API token
  3. Set policy thresholds (fail on CRITICAL/HIGH vulnerabilities)
  4. Enable SBOM generation for supply chain transparency
  5. Configure alerts for new vulnerabilities in production dependencies

Workflow 5: Supply Chain Risk Assessment

  1. Identify direct and transitive dependencies
  2. Analyze component quality metrics:
  1. Flag high-risk components (unmaintained, few maintainers, security issues)
  2. Review alternative components with better security posture
  3. Document supply chain risks and mitigation strategies

Security Considerations

Store credentials securely in secrets management (Vault, AWS Secrets Manager).

Never commit tokens to version control.

Use role-based access control (RBAC) for scan result visibility and policy management.

findings count for compliance auditing. Enable Black Duck's built-in audit trail.

tracking third-party component risks. Generate SBOM for regulatory requirements.

vulnerabilities. Use allowlists sparingly with documented business justification.

Supported Package Managers

Black Duck Detect automatically identifies and scans:

Bundled Resources

Scripts

References

Assets

Common Patterns

Pattern 1: Daily Dependency Security Baseline

# Run comprehensive scan and generate SBOM
scripts/blackduck_scan.py \
  --project "MyApp" \
  --version "1.0.0" \
  --output results.json \
  --generate-sbom \
  --severity CRITICAL HIGH

Pattern 2: Pull Request Dependency Gate

# Scan PR changes, fail on new high-severity vulnerabilities
bash <(curl -s -L https://detect.synopsys.com/detect.sh) \
  --blackduck.url=$BLACKDUCK_URL \
  --blackduck.api.token=$BLACKDUCK_TOKEN \
  --detect.policy.check.fail.on.severities=CRITICAL,HIGH \
  --detect.wait.for.results=true

Pattern 3: License Compliance Audit

# Generate license compliance report
scripts/blackduck_scan.py \
  --project "MyApp" \
  --version "1.0.0" \
  --report-type license \
  --output license-report.pdf

Pattern 4: Vulnerability Research and Triage

# Extract CVE details and remediation guidance
scripts/analyze_results.py \
  --input scan-results.json \
  --filter-severity CRITICAL HIGH \
  --include-remediation \
  --output vulnerability-report.md

Pattern 5: SBOM Generation for Compliance

# Generate Software Bill of Materials (CycloneDX format)
scripts/sbom_generator.sh \
  --project "MyApp" \
  --version "1.0.0" \
  --format cyclonedx \
  --output sbom.json

Integration Points

CI/CD Integration

See assets/ci_integration/ for ready-to-use pipeline configurations.

Security Tool Integration

SDLC Integration

Severity Classification

Black Duck classifies vulnerabilities by CVSS score and severity:

Policy Management

Creating Security Policies

  1. Define organizational risk thresholds (e.g., fail on CVSS >= 7.0)
  2. Configure license compliance rules using assets/policy_templates/
  3. Set component usage policies (blocklists for known malicious packages)
  4. Enable operational risk policies (unmaintained dependencies, age thresholds)
  5. Document policy exceptions with business justification and expiration dates

Policy Enforcement

# Enforce custom policy during scan
bash <(curl -s -L https://detect.synopsys.com/detect.sh) \
  --blackduck.url=$BLACKDUCK_URL \
  --blackduck.api.token=$BLACKDUCK_TOKEN \
  --detect.policy.check.fail.on.severities=BLOCKER,CRITICAL \
  --detect.wait.for.results=true

Performance Optimization

For large projects with many dependencies:

# Use intelligent scan mode (incremental)
bash <(curl -s -L https://detect.synopsys.com/detect.sh) \
  --detect.detector.search.depth=3 \
  --detect.blackduck.signature.scanner.snippet.matching=SNIPPET_MATCHING \
  --detect.parallel.processors=4

# Exclude test and development dependencies
bash <(curl -s -L https://detect.synopsys.com/detect.sh) \
  --detect.excluded.detector.types=PIP,NPM_PACKAGE_LOCK \
  --detect.npm.include.dev.dependencies=false

Troubleshooting

Issue: Too Many False Positives

Solution:

Issue: License Compliance Violations

Solution:

Issue: Scan Not Detecting Dependencies

Solution:

Issue: Slow Scan Performance

Solution:

Advanced Usage

Vulnerability Analysis

For detailed vulnerability research, consult references/remediation_strategies.md.

Key remediation strategies:

  1. Upgrade: Update to fixed version (preferred)
  2. Patch: Apply security patch if upgrade not feasible
  3. Replace: Switch to alternative component without vulnerability
  4. Mitigate: Implement workarounds or compensating controls
  5. Accept: Document risk acceptance with business justification

Supply Chain Security

See references/supply_chain_threats.md for comprehensive coverage of:

SBOM Generation and Management

Black Duck supports standard SBOM formats:

Use SBOMs for:

Best Practices

  1. Shift Left: Integrate SCA early in development lifecycle
  2. Policy-Driven: Define clear policies for vulnerabilities and licenses
  3. Continuous Monitoring: Run scans on every commit and nightly for production
  4. Remediation Prioritization: Focus on exploitable vulnerabilities first
  5. SBOM Management: Maintain up-to-date SBOM for all production applications
  6. Supply Chain Hygiene: Regularly review dependency health and maintainability
  7. License Compliance: Establish license approval process before adoption
  8. Defense in Depth: Combine SCA with SAST, DAST, and security testing

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.