Skip to content

Scanning ​

Luna currently has the following tools for vulnerability scanning:

  • GitLab Security Scanning Tools (integrated into the CI/CD pipeline)
    • Secret Detection
    • Container Scanning (Trivy)
    • IaC Scanning (Checkov)
    • SAST
  • AWS Inspector — scans deployed Lambdas for package vulnerabilities

GitLab Security Scans: Viewing & Using Results ​

This section outlines where to view results of SAST, Secret Detection, Container Scanning, and IaC Scanning in GitLab, and how to act on them.

Where to View Results ​

1. Merge Request (Security Widget) ​

  • In MRs, there now exists a Security section.
  • Expand findings to see affected files, severity, and remediation tips.
  • Alternatively find the uploaded artifacts for the full detailed list.

2. Pipeline Security Tab ​

  • Go to CI/CD > Pipelines, open a pipeline.
  • Click the "Security" tab.
  • View grouped findings by scanner and severity.

3. Vulnerability Report ​

  • Go to Security & Compliance > Vulnerability Report.
  • Shows all findings across branches.
  • Filter by scanner (SAST, Container, Secret Detection, IaC) or status.

What Each Scanner Detects ​

ScannerDetects
SASTCode-level issues (e.g. XSS, SQLi, insecure functions)
Secret DetectionAPI keys, tokens, passwords in code
Container ScanCVEs in container base images/libraries (via Trivy)
IaC ScanMisconfigurations in Terraform, YAML, Dockerfiles (via Checkov)
AWS InspectorPackage vulnerabilities in deployed Lambda functions

What to Do with Findings ​

  1. Triage by Severity

    • Focus on 🔴 Critical and 🟠 High vulnerabilities first.
  2. Review Details

    • Each finding includes file name, CVE or issue ID, severity, and fix suggestion.
  3. Remediate or Dismiss

    • ✅ Create JIRA issues for tracking.
    • 🔕 Dismiss with documented reason.

Artifact Locations ​

Trivy (Container Scanning) ​

  • Output file: baseline-trivy.json on main, or ${CI_COMMIT_SHORT_SHA}-trivy.json on merge requests
  • Found under: Job Artifacts of the container scanning job
  • Retained: 1 week (customizable in .gitlab-ci.yml)

Checkov (IaC Scanning) ​

  • Output file: baseline-checkov.json on main, or ${CI_COMMIT_SHORT_SHA}-checkov.json on merge requests
  • Found under: Job Artifacts of the IaC scanning job
  • Retained: 1 week

Artifacts can be downloaded directly from the job page in CI/CD > Pipelines > [Job] > Download artifacts.

AWS Inspector ​

  • Findings are not published as a pipeline artifact — Inspector scans deployed Lambdas continuously rather than in CI.
  • Findings and their severity can be viewed directly in the AWS console.
  • In production, HIGH/CRITICAL findings are also forwarded via SNS to a dedicated Slack alert channel.

GitLab Docs ​

Made with ❤️ by the Luna team