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
| Scanner | Detects |
|---|---|
| SAST | Code-level issues (e.g. XSS, SQLi, insecure functions) |
| Secret Detection | API keys, tokens, passwords in code |
| Container Scan | CVEs in container base images/libraries (via Trivy) |
| IaC Scan | Misconfigurations in Terraform, YAML, Dockerfiles (via Checkov) |
| AWS Inspector | Package vulnerabilities in deployed Lambda functions |
What to Do with Findings
Triage by Severity
- Focus on 🔴 Critical and 🟠 High vulnerabilities first.
Review Details
- Each finding includes file name, CVE or issue ID, severity, and fix suggestion.
Remediate or Dismiss
- ✅ Create JIRA issues for tracking.
- 🔕 Dismiss with documented reason.
Artifact Locations
Trivy (Container Scanning)
- Output file:
baseline-trivy.jsononmain, or${CI_COMMIT_SHORT_SHA}-trivy.jsonon 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.jsononmain, or${CI_COMMIT_SHORT_SHA}-checkov.jsonon 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.
