DevOps Hub/Next.js 16.3 · Docker · Port 3008
All systems operational
Cybersecurity & AppSec Track14 Interactive Modules

Application Security & Vulnerability Management

Master SAST/DAST container scanning, OWASP Top 10 remediation, secrets management, WAF and TLS hardening, threat modeling, IAM least privilege, API security, Zero Trust, incident response, SIEM detection, SBOM supply chains, container security, cloud posture, and privacy compliance.

S1 · SAST/DAST & Container Scans

1. SAST / DAST & Container Vulnerability Scanner

Simulate Trivy container image scans, Snyk SAST code analysis, and OWASP ZAP DAST web inspection. Identify CVEs, misconfigurations, and dependency risks before they reach production.

Scanner Controls

Select a scanner engine and target to begin vulnerability analysis.

Critical CVEs
2
Immediate Patch Required
High Severity
3
Fix within 7 days
Medium Severity
2
Scheduled Maintenance
Low / Info
1
Best practice hardening

Detected Vulnerabilities (8)

CVE / IDSeverityScannerComponentCVSS
CVE-2024-21626CRITICALTrivyrunc10.0
CVE-2023-44487HIGHTrivynghttp2 / envoy7.5
SNYK-JS-EXPRESS-594238HIGHSnyk Codesrc/api/auth.ts:428.6
CVE-2024-3094CRITICALTrivyliblzma510.0
ZAP-2026-001MEDIUMOWASP ZAPHTTPS Response Header5.3
SNYK-JS-LODASH-567746MEDIUMSnyk Codelodash6.5
CVE-2023-38545HIGHTrivylibcurl48.1
ZAP-2026-002LOWOWASP ZAP/search?q=3.8

🔬 Vulnerability Details & Fix

CVE-2024-21626 (Trivy)
Leaky Vessels Container Breakout in runc
Affected:
v1.1.11
Remediated:
v1.1.12

File descriptor leak in runc allows container process to access host filesystem and escape container boundary.

Upgrade base container image OS packages or update runc to >= 1.1.12 via Dockerfile / k8s node image.
S2 · OWASP Top 10 Matrix

OWASP Top 10 Vulnerability Matrix & Remediation Lab

Select any OWASP Top 10 category to view real-world exploit scenarios, compare vulnerable vs remediated code, and run interactive exploit tests.

A01:2021

Broken Access Control

Impact: Data exfiltration, vertical/horizontal privilege escalation, unauthorized API access.

Failures allow unauthorized users to view, edit, or delete data belonging to other users (IDOR, privilege escalation).

Vulnerable ImplementationUNSECURE
// VULNERABLE: Trusting user-supplied ID parameter directly
app.get('/api/invoice/:id', async (req, res) => {
  const invoice = await db.query('SELECT * FROM invoices WHERE id = ' + req.params.id);
  res.json(invoice); // No authorization check!
});
Remediated Secure ImplementationHARDENED
// SECURE: Enforce authorization against authenticated session
app.get('/api/invoice/:id', authMiddleware, async (req, res) => {
  const invoice = await db.query(
    'SELECT * FROM invoices WHERE id = $1 AND owner_id = $2',
    [req.params.id, req.user.id]
  );
  if (!invoice) return res.status(403).json({ error: 'Forbidden' });
  res.json(invoice);
});
🛡️ Key Architectural Defenses:
  • Enforce RBAC/ABAC at domain model layer
  • Deny access by default (Principle of Least Privilege)
  • Log access control failures and alert on repeated violations
🧪 Exploit / Defense Interactive Tester
S3 · Secrets & Vault Flow

3. Secret Management Workflow (HashiCorp Vault vs AWS Secrets Manager)

Compare enterprise secret engine architecture, dynamic credential generation, token TTL leases, and automated rotation.

🔐

HashiCorp Vault

MULTI-CLOUD / ON-PREM
  • Encryption: Shamir Secret Sharing, Transit Secrets Engine (EaaS).
  • Dynamic Secrets: Generates short-lived DB credentials (e.g. 1h TTL) on-demand.
  • Auth Methods: AppRole, Kubernetes ServiceAccount JWT, TLS Certificates.
☁️

AWS Secrets Manager

AWS NATIVE
  • Encryption: Envelope Encryption integrated with AWS KMS keys.
  • Automated Rotation: Native AWS Lambda rotation templates for RDS, Redshift, DocumentDB.
  • Auth Methods: IAM Policies, STS Temporary Credentials, VPC Endpoints.

Secret Lifecycle Pipeline

Storage & KMS Encryption: Secrets are encrypted using AES-256-GCM. In Vault, master keys are unsealed via Shamir threshold key shares. In AWS, KMS Envelope Encryption wraps data keys.

💻 Secret Fetch & Rotation Simulator

Lease TTL: 3600s remaining
S4 · WAF & TLS Hardening

Web Application Firewall (WAF) & SSL/TLS Hardening Lab

Configure L7 WAF protection rulesets, test attack payloads, and audit SSL/TLS cipher suites & security response headers.

WAF Rule Table (4 Active Rules)

StateRule NameTypeActionBlocked Hits
OWASP Core Rule Set - SQL InjectionSQLiBLOCK1420
OWASP Core Rule Set - Cross Site Scripting (XSS)XSSBLOCK890
Rate Limit: Max 100 Reqs / 5 MinRateLimitBLOCK310
Geo-IP Filter: Block Tor Exit NodesGeoBlockCAPTCHA145
+ Add Custom WAF Rule:

📡 WAF Live Traffic Tester

SSL/TLS Protocol Hardening & Response Header Audit

Configure SSL Labs target grading settings and test header compliance.

SSL Rating:Grade A+
TLS Protocols & Ciphers:
HTTP Security Headers:
Audit Evaluation Result: Optimal TLS 1.3 & Security Headers Hardening!
S5 · STRIDE Threat Modeling

Threat model canvas

Select an architecture asset, apply mitigations, and compare the remaining STRIDE risk. Findings are deterministic so each control change is easy to inspect.

Public request and application boundary

Applied mitigations

Web API findings

STRIDE threats ordered by severity.

Residual riskHigh
Risk score18 / 18
Open findings6
High or critical remaining5
Elevation of privilege
criticalOpen

A compromised endpoint may grant actions beyond the caller role.

Control: Least Privilege

Spoofing
highOpen

An attacker may impersonate a caller when identity checks are weak.

Control: Strong Authentication

Tampering
highOpen

Untrusted request data can alter application state.

Control: Input Validation

Information disclosure
highOpen

Overly broad responses can expose data to unauthorized callers.

Control: Object Authorization

Denial of service
highOpen

Unbounded requests can exhaust API capacity.

Control: Rate Limiting

Repudiation
mediumOpen

Without an audit trail, actions cannot be reliably attributed.

Control: Audit Logging

S6 · IAM, RBAC & Least Privilege

IAM policy evaluator

Build an access request and evaluate it against a local policy set. Explicit Deny rules, wildcard matching, and MFA conditions are handled by the shared evaluator.

Submit the request to see the evaluator decision, matched rule, and reason.

Local policy set

Deny rules are evaluated before matching Allow rules.

6 rules
IAM policy rules used by the evaluator
EffectPrincipalActionResourceCondition
Denyuser/*orders:Deleteorders/*
Allowrole/api-readerorders:Getorders/*
Allowrole/api-readerorders:Listorders/*
Allowrole/ops-adminadmin:*admin/*MFA required
Allowservice/orders-workerorders:Updateorders/prod
Allowrole/ops-adminorders:*orders/*MFA required
S7 · API SECURITY

Layered API request lab

Test the controls that protect an API boundary: identity, object ownership, schema validation, and endpoint rate limits. The shared evaluator returns the first control that needs attention.

Read an order owned by the caller

Request controls

Evaluate the request to see the decision, matched concern, and recommended control.

Safe example request

This illustrative request is display-only. The lab never executes entered payload text or sends network traffic.

DISPLAY ONLY
GET /v1/orders/order_2048
Authorization: Bearer <short-lived-token>
IdentityVerified
PayloadSchema-valid
TrafficWithin limit
S8 · ZERO TRUST

Zero Trust policy path

Model a request using identity, device posture, source zone, destination zone, MFA, and action. The policy engine evaluates every request instead of trusting the network location alone.

Managed employee access zone

Sensitive data store

Retrieve permitted information

Trust signals

Evaluate the path to see whether policy will Allow, require Step-up MFA, or Deny the request.

Request path visualization

Static policy stages make the trust boundary explicit before any decision is applied.

Source zoneWorkforceRequest origin
Policy engineEvaluate signalsVerify every signal
Destination zoneDataProtected resource
Current pathworkforcedata · read

Every hop is evaluated with the same signals; being on a workforce or workload network does not grant implicit access.

S9 · Incident Response & SOC Triage

Seeded alert investigation

Practice a repeatable incident lifecycle against safe, synthetic alerts. Classify the signal, preserve evidence, contain affected assets, and score response readiness with the shared evaluator.

Credential stuffing burst

Identity gateway

A concentrated authentication failure pattern is targeting several customer accounts from rotating source addresses.

  • 78 failed sign-ins in 10 minutes
  • 12 accounts targeted
  • No successful privileged login observed
Severity classification
0 assets10 assets
Incident lifecycle

Complete the controls, then score the response to see priority and the evaluator’s next action.

SOC handoff checklist

  • • Keep alert notes factual and timestamped.
  • • Preserve evidence before removing persistence.
  • • Escalate based on business impact, not signal volume alone.
S10 · SIEM Detection & Log Analysis

Event filtering and detection rules

Query deterministic authentication, API, WAF, and cloud audit events. Filters narrow analyst scope; the shared evaluator determines which events match the selected detection rule.

Find events with five or more failed attempts.

Structured event stream

Synthetic events only; source addresses use documentation ranges.

8 of 8 events
Synthetic SIEM events filtered by source and severity
Event IDSourceSeverityKind / summaryUserFailedPrivilegeBytes out
auth-001authenticationhighlogin-failureRepeated sign-in failures for one accountalex8
auth-002authenticationlowlogin-successSuccessful sign-in after one retrymorgan1
api-014apilowtoken-refreshRoutine service token refreshservice-orders0.0 MB
api-033apicriticalbulk-exportLarge response volume from customer export endpointjordan1.85 MB
waf-009wafmediumblocked-requestBurst of rejected authentication-shaped requestsanonymous6
waf-010waflowblocked-requestSingle malformed request blocked at edgeanonymous2
cloud-021cloud-audithighrole-changeProduction role granted outside maintenance windowsamYes
cloud-022cloud-auditlowpolicy-readRead-only policy inspectionauditor0.0 MB

Choose a rule and optional filters, then run detection to see evaluator-matched event IDs and the analyst conclusion.

S11 · Software Supply Chain

Dependency and SBOM analyzer

Inspect package provenance, vulnerability severity, immutable versions, signatures, and license policy before an artifact enters the release pipeline.

Package inventory

The evaluator re-checks every row whenever the license policy changes.

5 packages
Software bill of materials package inventory
PackageVersionSeverityProvenanceLicense
express4.19.2highSignedMIT
lodash4.17.21mediumSignedApache-2.0
axios^1.7.2(unpinned)lowSignedMIT
internal-plugin2.1.0noneUnsignedApache-2.0
legacy-parser1.4.0noneSignedGPL-3.0
License allowlist

Only selected SPDX licenses may ship. Toggle a license to re-run the SBOM policy.

Release policyBlock
BLOCK

6 findings require attention before release.

Evaluator findings

  • express has a high vulnerability.
  • lodash has a medium vulnerability.
  • axios has a low vulnerability.
  • axios is not pinned to an immutable version.
  • internal-plugin is not signed.
  • legacy-parser uses disallowed license GPL-3.0.

Allowlist currently contains 2 of 3 licenses seen in the inventory.

S12 · Container Security

Container admission simulator

Toggle workload controls to model a Kubernetes admission decision. The shared evaluator rejects unsafe privileges, host access, unsigned images, and unconstrained resources.

Pod security controls

Enable each control that is enforced by your workload policy. Host access controls are secure when their toggles remain off.

Admission decisionRejected
DENY

6 controls failed and must be remediated.

Failed controls

  • Container must run as a non-root user.

    Remediation: Set a pod or image securityContext with runAsNonRoot: true and a non-zero runAsUser.

  • Container root filesystem must be read-only.

    Remediation: Set securityContext.readOnlyRootFilesystem: true and mount explicit writable volumes where needed.

  • Host networking is not permitted.

    Remediation: Remove hostNetwork: true and expose the service through a cluster Service or ingress.

  • Host path mounts are not permitted.

    Remediation: Remove hostPath volumes and use an approved persistent volume or projected secret instead.

  • Image signature verification is required.

    Remediation: Sign the image in CI and configure admission policy to verify its registry signature.

  • CPU and memory limits are required.

    Remediation: Declare CPU and memory requests and limits in the workload specification.

Controls passing1
Controls failed6
Policy modeStrict admission
S13 · CLOUD SECURITY POSTURE

13. Cloud Security Posture Scanner

Review a local AWS account snapshot across identity, storage, network, logging, key management, and firewall controls. Findings are educational examples, not a live cloud scan.

Posture score

0

Grade F

Open findings

7

Evaluator-calculated risk

Resolved findings

0

Marked fixed locally

Last recalculation

Not run yet

AWS findings (7)

Select a finding to inspect evidence and remediation.

Cloud security posture findings
ControlFindingSeverityStatus
IAM

arn:aws:iam::000000000000:root

critical
S3

s3://acme-prod-invoices

high
VPC

vpc-0f42a1e9 / subnet-07b3c4d1

medium
CloudTrail

arn:aws:cloudtrail:us-east-1:000000000000:trail/example-audit

high
KMS

key/7e6d0d5c-4dcb-4ae5-9a19-prod-data

medium
Security groups

sg-0a8d66bd / prod-postgres

critical
IAM

user/example-deploy / EXAMPLE_KEY_ID

low
S14 · PRIVACY & DATA CONTROLS

14. Data Classification & Privacy Controls

Classify example fields, inspect the protection controls mapped to each class, and complete a practical privacy readiness checklist.

Educational guidance only: this exercise is not formal legal compliance advice and does not determine obligations under any specific privacy law or contract.

Example data inventory

Choose a field, then classify it according to its sensitivity and use.

Example fields and data classifications
FieldExample valueClassification

Link activity to a customer account

acct_7F29D1internal

Send account notifications

alex@example.testconfidential

Reference a vaulted payment method

tok_visa_••••4242restricted

Display a catalog item

Network Fundamentalspublic
Classify email_address

Privacy readiness checklist

Use the checklist to turn classification into operating controls.

0/5 complete