All case studies

Case 01 See · Secure 2026

Cloud and CI/CD security review of a healthcare queue platform

As the only security member of a volunteer team, I reviewed the AWS account, GitHub Actions pipeline, Terraform and backend code of a patient queue system, and found a way an outsider could have taken full control of the cloud account.

Role
Cybersecurity lead (volunteer)
Scope
AWS, GitHub CI/CD, Terraform, backend code
Window
30 Oct – 2 Nov 2026
Authorization
Written, from the project lead
Result
19 findings · 1 Critical · 6 High

Context

The platform let hospital patients join an outpatient queue from their phone, by web or WhatsApp. It handled phone numbers, one-time codes and the department each patient was waiting for, which can reveal a health condition. Nigeria’s Data Protection Act 2023 applies.

Constraint

Read-only access, a four-day window, and an environment that had already been torn down when testing began. I could not test the running system, so I changed method: configuration and code review, with every finding marked “confirmed live” or “confirmed in code”.

What I did

  • See: drew a data-flow threat model with four trust zones and 14 flows before any code existed.
  • Secure: reviewed MFA enforcement, IAM groups and policies, the password policy, root-user activity and CloudTrail in the AWS console; traced how GitHub Actions signs in to AWS through OIDC, what the deploy role could do, and how its trust policy changed across seven branch snapshots; reviewed the backend’s sign-up, one-time-code and webhook logic.
  • Explain: wrote a severity-rated report with evidence for every finding and a prioritised fix list.

What I found

19 findings: 1 Critical, 6 High, 7 Medium, 3 Low, 2 informational.

SeverityFinding
CriticalThe deploy role trusted a wildcard pattern that look-alike GitHub organisations could match, and it held full administrator rights.
HighPull-request builds could fall back to that same administrator role.
HighPublic sign-up let anyone choose their own role, including Doctor or Admin.
HighOne-time codes were stored in plain text, written to logs, and had no limit on guesses.
HighNo CloudTrail trail, so account activity was not kept beyond 90 days.
HighThe root user was in routine use.
MediumThe MFA policy blocked authenticator-app enrolment and trapped half-created devices.

What worked well

MFA enforcement blocked everything until MFA was set up; GitHub Actions were pinned to exact commit SHAs; the pipeline used OIDC, not long-lived keys; the database, cache and container registry were encrypted with rotating keys.

Outcome

The project ended before fixes were made. The team received the full report with a prioritised plan: fix the pipeline trust before any redeploy; fix sign-up and one-time codes before merging the backend; then the account baseline (CloudTrail, root use, password policy).

What I would do next

Get security into design reviews from day one. The riskiest path, the deploy pipeline, was never on any diagram.

Evidence

All screenshots are redacted.

Data-flow diagram with four dashed trust zones: public internet, third-party messaging provider, app cloud and hospital devices, connected by 14 numbered flows. Flows that cross a zone boundary are drawn in red.
Evidence H1 · My threat model: four trust zones, 14 flows; red lines cross a trust boundary
AWS IAM console showing an access-denied message for iam:ListUsers because an identity-based policy explicitly denies the action. User, resource and policy names are redacted.
Evidence A2 · MFA enforcement working: an IAM action explicitly denied until MFA is set up
AWS MFA set-up screen with two errors: not authorized to perform iam:DeleteVirtualMFADevice because of an explicit deny, and MFA device already exists. Names are redacted.
Evidence F6 · The MFA policy denied deleting a half-created device
AWS CloudTrail Trails page showing an empty table with the message No trails to display.
Evidence C1 · No CloudTrail trail configured
Workflow file excerpt where actions/cache and hashicorp/setup-terraform are referenced by full 40-character commit SHAs, with the version number in a comment.
Evidence G4 · Good practice: GitHub Actions pinned to exact commit SHAs