The Scarleteel risk targets AWS Fargate environments for knowledge theft and extra malicious kinds of assaults equivalent to cryptojacking and DDoS. Learn to mitigate this risk.

Sysdig, a cloud and container safety firm, has launched a new report on the Scarleteel risk that targets particular AWS environments for knowledge theft and extra malicious actions. Find out how the Scarleteel risk operates and safe your online business from this risk.
Bounce to:
What’s the Scarleteel risk?
Scarleteel is a complicated assault on AWS cloud environments that was found in February 2023 by Sysdig. That operation began by compromising Kubernetes containers to unfold to the sufferer’s AWS account with one purpose in thoughts: stealing proprietary software program. The assault additionally dropped a cryptominer on the compromised atmosphere, but Sysdig’s Risk Analysis Group estimated the cryptojacking operation was most likely used as a decoy to evade the detection of the info theft operation.
The assault confirmed that the risk actor had stable data of AWS cloud mechanics together with Elastic Compute Cloud roles, lambda serverless features and Terraform, an open-source infrastructure as code device that is ready to automate operations on infrastructures on any sort of cloud resolution.
Scarleteel’s new operation
Scarleteel’s Ways, Methods and Procedures has improved, in keeping with the Sysdig Risk Analysis Group. As within the earlier operation, the ultimate purpose of the risk actor right here appears to be knowledge theft, though the actor nonetheless crops cryptominers throughout its assault (Determine A).
Determine A

How Scarleteel targets AWS Fargate credentials
This time, the assault begins with the risk actor exploiting JupyterLab pocket book containers deployed in a Kubernetes cluster. Then, the attacker focuses on credential stealing, utilizing a number of scripts to attempt to get AWS Fargate credentials within the occasion metadata service (IMDSv1 and IMDSv2) within the filesystem and within the Docker containers created within the focused machine. The stolen credentials are despatched to an IP deal with that was beforehand utilized by Scarleteel.
The attacker managed to steal AWS credentials in containers that have been utilizing IMDSv1. IMDSv2 password theft extremely will depend on the precise atmosphere. Relying on the configuration, it won’t be doable for an attacker to steal credentials on IMDSv2.
To evade detections based mostly on using the curl and wget command-line instruments, which are sometimes monitored by safety options, the risk actor determined to make use of a customized script to exfiltrate the obtained credentials (Determine B). The information is base64-encoded, so it wouldn’t be despatched as clear textual content.
Determine B

As soon as the attacker is in possession of the credentials, they set up the AWS Command-Line Interface with Pacu, an open-source AWS exploitation framework designed for offensive safety testing.
The attacker then used the AWS CLI to hook up with Amazon S3-compatible Russian methods utilizing the –endpoint-url choice, which permits the attackers to obtain their instruments and exfiltrate knowledge with out being logged by the sufferer’s CloudTrail.
After the risk actor carried out automated reconnaissance within the goal’s AWS atmosphere, they obtained admin entry and created a person named “aws_support,” switching to it to proceed the operation.
How Scarleteel targets Kubernetes
The risk actor actively targets Kubernetes within the sufferer’s atmosphere. The attacker has used Peirates, a Kubernetes penetration device that permits an attacker to escalate privileges and pivot by a Kubernetes cluster. It additionally automates recognized strategies to steal and acquire tokens and secrets and techniques.
The risk actor additionally executed Pandora, a Mirai-like malware that runs DDoS assaults utilizing Linux methods and IoT methods to particular targets. As said by the researchers, “This assault is probably going a part of a DDoS-as-a-Service marketing campaign, the place the attacker offers DDoS capabilities for cash.”
Cryptojacking probably used as a decoy
Throughout the assault, the risk actor created 42 cases of the XMRig cryptominer, which is a authentic device typically used by attackers in cryptojacking operations. This large variety of cases all working the miner was caught rapidly, however the risk actor then created different accounts to attain the identical function by stealing secrets and techniques from the Secret Supervisor or updating SSH keys to run new cases. It failed as a consequence of inadequate privileges.
It’s intriguing to see a risk actor working a stealth operation all of the sudden begin such a loud exercise. This as soon as once more leads us to consider that the cryptomining a part of the operation would possibly simply be a decoy to cover all the info theft exercise.
The right way to defend from this cybersecurity risk
- Container photos ought to all the time come from trusted sources and consistently up to date with the newest safety patches.
- Pointless providers ought to all the time be disabled so the assault floor isn’t elevated. Privileges must also be minimized, and useful resource limitations ought to be enforced.
- Utilizing AWS IMDSv2 as an alternative of IMDSv1 is a advisable safety finest observe for containers as a result of it makes credential stealing tougher for attackers, relying on the configuration.
- AWS Identification and Entry Administration function permissions ought to be rigorously checked.
- Safety scanning instruments ought to be used to determine vulnerabilities and malware in container photos.
- Exact inbound and outbound insurance policies ought to be deployed to restrict entry to solely crucial duties. AWS CloudTrail logs ought to be analyzed for any suspicious exercise.
- Multifactor authentication ought to be deployed for connecting to AWS accounts.
Disclosure: I work for Pattern Micro, however the views expressed on this article are mine.