Prepared by: Jack Rutherford, Chief Technology Officer & Mike Higgo, Head of Offensive Security
Published: 29 July 2026
A large national medical organisation with offices across Australia sought assurance that its newly created web application was protected from cyber threats. The application captures, stores, and processes a considerable amount of sensitive information that must be securely protected. They needed to understand whether a malicious outsider could potentially access or manipulate the stored data, potentially leading to reputational damage, loss of confidentiality, or more alarmingly, lateral movement to other internal infrastructure.
Triskele Labs was engaged to perform a thorough penetration test to evaluate this risk.
During a routine security sweep, testers used automated toolsets to uncover hidden files, folders and APIs. They found a scheduler API that administrators were unaware of, and had not appropriately hardened or restricted access to. Clues pointed to Flask-APScheduler, a tool that lets developers schedule tasks in Python through a built-in web interface.
Further investigation showed the interface would accept a task that called Python’s os.system function. Submitting such a task let the testers run any command on the underlying server.
A simple one-line python command was utilised, which, when interpreted by the host, gave direct command line access to the underlying server.
With that foothold gained, the entire application was effectively compromised. As the application was hosted within AWS, the server was also scanned and enumerated, and a file discovered containing AWS instance metadata. This metadata contained a large swath of sensitive information, including AWS secret keys, granting a foothold on the AWS infrastructure owned by the corporation. Once the AWS infrastructure was effectively compromised, it could be used to launch further attacks against other internal network resources.
While our engagement didn’t include further testing within the AWS infrastructure or the internal network (per the agreed upon scope of work), we were able to show that serious compromise was possible through a single exposed API.
This wasn't just a single server compromise. The exposed API gave testers a direct path into the AWS environment sitting behind the application, the same infrastructure holding the organisation's sensitive medical data.
Access at this level could have supported far wider attacks: reading or altering patient records, pivoting to other AWS-hosted systems, or disrupting services that staff and patients depend on. For a medical organisation, that risk goes beyond data loss. It touches patient safety and public trust.
This engagement showed how a single unhardened, publicly reachable API can lead to full server and cloud compromise. Triskele Labs recommends that organisations running web applications, particularly those handling sensitive data, consider the following controls: