Cyberlium
Cyberlium
Cyberlium on Android·Google Play Store

Learn cybersecurity with hands-on labs and AI mentor support on your phone.

Mod 7 · Les 2/5
In progress
Module 7•Lesson 2 of 5•⏱️ 15 min read•Beginner+39 XP

Trivy Named

Trivy literacy — scan command stub, vulnerability table, misconfig scan, secret scan flag, report format — named Trivy rows on YOUR `$DEVSEC_LAB` images.

Trivy Named
00:00/03:15

Visual · t36_trivy_named

Trivy = named scan tool literacy. $DEVSEC_LAB. Original Cyberlium.

Trivy scans YOUR images and IaC — name command and report rows on YOUR lab artifacts, never weaponize Trivy output against stranger pipelines.

Trivy named literacy names: image scan command stub category, vulnerability table column category (CVE, severity, fixed version literacy), misconfiguration scan mode category, secret scan flag category, and report format category (JSON, SARIF literacy stub). Analyst documents Trivy scan card on `$DEVSEC_LAB` lab image from 7-1 — command stub, three vulnerability rows, report format — without running Trivy against stranger org images, without publishing scan dumps to shame third parties, without pipeline sabotage using scan output. Cyberlium teaches Trivy vocabulary on YOUR notes — shift-left container literacy. Refused: stranger org scans, forged CVE reports, sabotage recipes. Lab row: Trivy scan card (command stub, three vuln rows, report format).

1. Named Trivy rows

Scan command, vuln table columns, misconfig mode, secret flag, report format — five literacy anchors.

Each vuln row cites YOUR lab image output — not copied stranger reports.

Command guide

Try these commands — Named Trivy rows

═══ DOCKER & CONTAINER AUDIT ═══

Check container running state and port bindings

Command — copy this

docker ps --format "table {{.ID}}	{{.Image}}	{{.Status}}	{{.Ports}}" 2>/dev/null || echo "docker ps"

Inspect container for elevated capabilities and root user

Command — copy this

docker inspect --format '{{json .HostConfig.Privileged}}' <container_id> 2>/dev/null || true

Run security vulnerability scan on container image using Trivy

Command — copy this

trivy image --severity HIGH,CRITICAL alpine:3.19 2>/dev/null || echo "trivy image alpine:3.19"

═══ KUBERNETES RBAC AUDIT ═══ Check current permissions in namespace

Command — copy this

kubectl auth can-i --list 2>/dev/null || echo "kubectl auth can-i"

Primary tools to practice this lesson: grep, python3. Reference sites: OWASP ZAP (https://www.zaproxy.org/); ZAP baseline scan (https://www.zaproxy.org/docs/docker/baseline-scan/); NIST SSDF RV.1 (https://csrc.nist.gov/Projects/ssdf). Run every command in the box — install first, then the usage lines — only on YOUR lab / program scope.

2. Multi-target literacy

Trivy scans images, filesystems, and IaC — link Module 6 Checkov as complementary stub.

Secret scan flag documented — not optional on lab CI gate literacy.

3. Refused

No Trivy against stranger org images; no forged reports; no pipeline sabotage.

Trivy literacy supports YOUR container hygiene — not offensive registry abuse.

4. What you ship: Trivy scan card

Command stub + three vuln rows + report format + NEVER stranger org scan line.

5. What you record before the next lesson

Trivy scan card path.

6. Wrong vs right: stranger orgs vs YOUR repos

Worked failure — same MSF word, opposite target. Right never needs a café Wi-Fi or classmate laptop.

  • Wrong: Run Trivy against stranger org Docker Hub images and publish CVE dump publicly as 'awareness.'
  • Right: Trivy scan card from `$DEVSEC_LAB` lab image. Next: Base Image Hygiene.
Hands-on Exercise

Mission: Trivy scan card

1) Name five Trivy literacy rows. 2) Scan command stub for lab image. 3) Three vulnerability rows with severity. 4) Write NEVER stranger org scan line.

Pro Tip

Stuck? Ask Cyberlium AI Mentor

Ask Mentor: “SARIF vs JSON — literacy handoff stub?”

Practice QuizQuestion 1
Multiple choice
Q1

APPLY: Trivy literacy on Cyberlium uses:

Practice QuizQuestion 2
True or False
Q2

APPLY: True or False: Publishing stranger org Trivy dumps is course lab.

Practice QuizQuestion 3
Multiple choice
Q3

APPLY: Trivy scan card includes:

←Previous: Image Scanning
Answer 3 practice quiz questions to unlock XP reward. (0/3 answered)
Skip quiz & read next →