Cybersecurity researchers have uncovered three safety weaknesses in Microsoft’s Azure Information Manufacturing facility Apache Airflow integration that, if efficiently exploited, may have allowed an attacker to realize the flexibility to conduct numerous covert actions, together with knowledge exfiltration and malware deployment.
“Exploiting these flaws may enable attackers to realize persistent entry as shadow directors over your entire Airflow Azure Kubernetes Service (AKS) cluster,” Palo Alto Networks Unit 42 stated in an evaluation printed earlier this month.
The vulnerabilities, albeit categorized as low severity by Microsoft, are listed under –
- Misconfigured Kubernetes RBAC in Airflow cluster
- Misconfigured secret dealing with of Azure’s inner Geneva service, and
- Weak authentication for Geneva
Apart from acquiring unauthorized entry, the attacker may reap the benefits of the issues within the Geneva service to doubtlessly tamper with log knowledge or ship faux logs to keep away from elevating suspicion when creating new pods or accounts.
The preliminary entry method includes crafting a directed acyclic graph (DAG) file and importing it to a personal GitHub repository linked to the Airflow cluster, or altering an present DAG file. The top purpose is to launch a reverse shell to an exterior server as quickly because it’s imported.
To tug this off, the menace actor must first achieve write permissions to the storage account containing DAG recordsdata by using a compromised service principal or a shared entry signature (SAS) token for the recordsdata. Alternatively, they will break right into a Git repository utilizing leaked credentials.
Though the shell obtained on this method was discovered to be operating below the context of the Airflow person in a Kubernetes pod with minimal permissions, additional evaluation recognized a service account with cluster-admin permissions linked to the Airflow runner pod.
This misconfiguration, coupled with the truth that the pod may very well be reachable over the web, meant that the attacker may obtain the Kubernetes command-line device kubectl and finally take full management of your entire cluster by “deploying a privileged pod and breaking out onto the underlying node.”
The attacker may then leverage the basis entry to the host digital machine (VM) to burrow deeper into the cloud setting, achieve unauthorized entry to Azure-managed inner sources, together with Geneva, a few of which grant write entry to storage accounts and occasion hubs.
“This implies a complicated attacker may modify a susceptible Airflow setting,” safety researchers Ofir Balassiano and David Orlovsky stated. “For instance, an attacker may create new pods and new service accounts. They may additionally apply modifications to the cluster nodes themselves after which ship faux logs to Geneva with out elevating an alarm.”
“This subject highlights the significance of rigorously managing service permissions to forestall unauthorized entry. It additionally highlights the significance of monitoring the operations of important third-party providers to forestall such entry.”
The disclosure comes because the Datadog Safety Labs detailed a privilege escalation state of affairs in Azure Key Vault that might allow customers with the Key Vault Contributor position to learn or modify Key Vault contents, akin to API keys, passwords, authentication certificates, and Azure Storage SAS tokens.
The issue is that whereas a person with the Key Vault Contributor position had no direct entry to Key Vault knowledge over a key vault configured with entry insurance policies, it was found that the position did include permissions so as to add itself to Key Vault entry insurance policies and entry Key Vault knowledge, successfully bypassing the restriction.
“A coverage replace may comprise the flexibility to record, view, replace and usually handle the info inside the important thing vault,” safety researcher Katie Knowles stated. “This created a state of affairs the place a person with the Key Vault Contributor position may achieve entry to all Key Vault knowledge, regardless of having no [Role-Based Access Control] permission to handle permissions or view knowledge.”
Microsoft has since up to date its documentation to emphasise the entry coverage threat, stating: “To forestall unauthorized entry and administration of your key vaults, keys, secrets and techniques, and certificates, it is important to restrict Contributor position entry to key vaults below the Entry Coverage permission mannequin.”
The event additionally follows the invention of a problem with Amazon Bedrock CloudTrail logging that made it tough to distinguish malicious queries from reliable ones made to massive language fashions (LLMs), thereby permitting dangerous actors to conduct reconnaissance with out elevating any alert.
“Particularly, failed Bedrock API calls have been logged in the identical method as profitable calls, with out offering any particular error codes,” Sysdig researcher Alessandro Brucato stated.
“The dearth of error data in API responses could hinder detection efforts by producing false positives in CloudTrail logs. With out this element, safety instruments could misread regular exercise as suspicious, resulting in pointless alerts and potential oversight of real threats.”