Josue Arango
All projects

2026 · Application Security & DevSecOps

Secure E-commerce: DevSecOps Pipeline, Pentest and Cloud Redesign

WordPress / WooCommerce · Docker · Semgrep · Trivy · OWASP ZAP · AWS

A full application-security assessment of a containerised WooCommerce store, from threat model to release gate. A seven-gate DevSecOps pipeline (secrets, SAST, SCA, image, IaC, SBOM and an active DAST scan) blocked the original version on six of its seven gates; the hardened version passes all seven and is the only one allowed to ship. Black-box and grey-box pentests ran against both versions, on localhost with fictitious data.

Technologies

SemgrepTrivyOWASP ZAPgitleaksCheckovCycloneDX SBOMDockerTerraformWordPress / WooCommercePowerShellGitHub ActionsAWS WAFWazuh

My role

Sole author (Master's final project). Built the store and its containers, wrote the pipeline, the gate policy and the custom Semgrep rules, ran the pentest, and wrote the risk analysis and the cloud redesign.

Highlights

  • Threat model: 22 assets rated for confidentiality, integrity and availability (ISO/IEC 27001:2022) and 15 STRIDE threats scored with DREAD
  • Seven gates: gitleaks, Semgrep with custom WordPress taint rules, Trivy (dependencies, image and IaC), Checkov, a CycloneDX SBOM and an OWASP ZAP active scan; one policy script returns exit 1 to block or exit 0 to publish
  • Original version blocked: 11 secrets, 19 high-severity SAST findings, 15 high or critical dependency CVEs, 1,271 fixable image vulnerabilities, 14 IaC errors and 8 DAST alerts
  • Regression test with an injected SQL injection, a reflected XSS and two vulnerable dependencies: SAST caught the injection, DAST caught the XSS the static rules missed, and a 30-line taint rule then closed the SAST gap with no false positives
  • Pentest confirmed reflected XSS, version and file disclosure, XML-RPC password amplification and an exposed MySQL port; in the hardened version a customer cannot read another customer's orders by any of the three routes tested (BOLA/IDOR)
  • Hardened Docker, Apache and Terraform, plus a proposed AWS design (CloudFront, AWS WAF with OWASP CRS, API Gateway, Cognito with MFA, EKS, RDS encrypted with KMS) with RASP and a Wazuh SIEM, documented as a design and not deployed
  • Risk treatment takes the store from one critical and eight high risks to none

Screenshots and diagrams

The seven gates: secrets, SAST, SCA, image, IaC, SBOM and an active DAST scan; one policy script decides exit 1 (block) or exit 0 (publish)
The seven gates: secrets, SAST, SCA, image, IaC, SBOM and an active DAST scan; one policy script decides exit 1 (block) or exit 0 (publish)
Real runs: the original store blocked with 8 ZAP alerts, the hardened store approved with exit 0
Real runs: the original store blocked with 8 ZAP alerts, the hardened store approved with exit 0
Grey-box pentest with two customer accounts: customer B is refused customer A's order by every route tested
Grey-box pentest with two customer accounts: customer B is refused customer A's order by every route tested
Regression test: the injected reflected XSS fails the ZAP gate; the fixed version leaves no failing rule
Regression test: the injected reflected XSS fails the ZAP gate; the fixed version leaves no failing rule