Red-Teaming Cloud Infrastructure with Neo

· Source: ProjectDiscovery Blog · Field: Technology & Digital — Cybersecurity & Data Privacy, Artificial Intelligence & Machine Learning, Cloud Computing & IT Infrastructure · Depth: Advanced, long

Summary

ProjectDiscovery's AI security engineer, Neo, successfully executed a full red-teaming engagement against a simulated AWS environment in approximately two and a half hours. The setup involved a vulnerable TeamCity CI/CD server (version 2023.11.2, build 147486) in a public subnet, mirroring common misconfigurations like overpermissive cloud credentials and scattered secrets. Neo exploited CVE-2024-27198, a path traversal flaw with a CVSS of 9.8, to gain administrative access. Subsequently, it harvested temporary AWS credentials via IMDSv1, enumerated S3 buckets to retrieve 1,000 customer PII records and static IAM keys, and accessed SSM Parameter Store for production secrets. Pivoting into the private subnet through the build agent, Neo forged a JWT to access an internal API, confirming 847,295 customer records and exposing executive compensation data. The engagement also uncovered a debug SQL endpoint in TeamCity, revealing user password hashes.

Key takeaway

For security engineers and MLOps teams evaluating cloud infrastructure security, this demonstration highlights that traditional annual pentests are insufficient for environments with daily changes. You should implement continuous, autonomous red-teaming for internet-facing CI/CD servers and admin panels to validate security posture between formal assessments. Prioritize patching critical vulnerabilities like CVE-2024-27198 immediately. Also, enforce IMDSv2 (`HttpTokens=required`) across all EC2 instances to prevent credential theft. A single exposed port can lead to full production database compromise.

Key insights

AI can autonomously execute complex red-teaming chains from initial access to business impact in cloud environments.

Principles

Method

Neo's procedure involved fingerprinting, exploiting CVE-2024-27198, credential harvesting via IMDSv1 and build configs, cloud enumeration, lateral movement via build agents, and JWT forging to access internal services.

In practice

Topics

Code references

Best for: AI Security Engineer, Security Engineer, MLOps Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by ProjectDiscovery Blog.