<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Anjuna - Medium]]></title>
        <description><![CDATA[Anjuna moves the security perimeter from the host machine to the application. Anjuna Runtime Security creates a software perimeter around applications that provides hardware-grade security for the application using trusted execution in secure enclaves. - Medium]]></description>
        <link>https://medium.com/anjuna-security?source=rss----37299b72e75---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Anjuna - Medium</title>
            <link>https://medium.com/anjuna-security?source=rss----37299b72e75---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 00:42:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/anjuna-security" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Azure Key Vault backend integration for Hashicorp Vault]]></title>
            <link>https://medium.com/anjuna-security/azure-key-vault-backend-integration-for-hashicorp-vault-f4b7249262a6?source=rss----37299b72e75---4</link>
            <guid isPermaLink="false">https://medium.com/p/f4b7249262a6</guid>
            <category><![CDATA[hashicorp-vault]]></category>
            <category><![CDATA[key-management]]></category>
            <category><![CDATA[azure-key-vault]]></category>
            <category><![CDATA[anjuna]]></category>
            <category><![CDATA[secdevops]]></category>
            <dc:creator><![CDATA[Yan Michalevsky]]></dc:creator>
            <pubDate>Fri, 19 Feb 2021 02:59:11 GMT</pubDate>
            <atom:updated>2021-02-19T03:06:20.505Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://www.vaultproject.io/">Hashicorp Vault</a> is a wonderful solution for storing and controlling access to tokens and credentials, RBAC, and all-things authentication, authorization, and secrets-related in an organization. We, at <a href="https://www.anjuna.io/">Anjuna</a>, love Vault for its usability and the wide range of functions it offers.</p><p>Vault is flexible in terms of the actual storage of secrets and keys. It offers built-in storage options (in-memory and on-disk) but also integrates with multiple third-party solutions such as cryptographic modules with a PKCS#11 API (such as HSMs), databases such as MySQL, and PostgresSQL, Zookeeper, and cloud storage such as AWS S3 buckets or Azure Storage Containers.</p><p>Cloud providers such as Microsoft Azure and Amazon AWS have also been offering secrets management solutions that enable users to store their secrets and keys. In particular, Microsoft developed the Azure Key Vault that is accessible through Rest API and enables controlling access to secrets through Active Directory roles and permissions.</p><p>At Anjuna, we have been recently looking into providing the option of storing secrets in Azure Key Vault (AKV) while using Hashicorp Vault as an operational frontend. The advantage is that the user can apply additional policies to access secrets using Vault’s policy engine and mix and match key storage options. It is also useful for hybrid cloud deployments where the organization may want to manage everything on-prem using Vault while also enabling storing precious secrets in Azure Key Vault, taking advantage of its reliability, backup, and disaster recovery that come along with Microsoft’s cloud. Unfortunately, the only integration we could find between Hashicorp Vault and Azure Key Vault was for unsealing Vault, but not for using Azure Key Vault as a storage backend. Luckily, Hashicorp Vault has a flexible plugin architecture. We developed the <a href="https://github.com/anjuna-security/vault-akv-plugin"><em>vault-akv-plugin</em></a> and open-sourced it on <a href="https://github.com/anjuna-security/vault-akv-plugin">Github</a>.</p><h4>How to use Anjuna’s Vault AKV plugin with Hashicorp Vault</h4><blockquote>This part assumes you have Hashicorp Vault installed and running, and that the vault command is in your PATH environment.</blockquote><p>Make sure you have the Azure CLI installed. On Ubuntu Linux, this can be done by running</p><pre># apt install az</pre><p>or directly from Microsoft’s website, by running</p><pre>$ curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash</pre><p>On a MacOS, you can use Homebrew, running</p><pre>$ brew install az</pre><p>Once installed, you need to run</p><pre>$ az login</pre><p>to log into Azure and enable further access to Azure Key Vault by the plugin.</p><p>To start using the AKV storage backend plugin with Vault, first clone the source code from Anjuna’s Github repository:</p><pre>$ git clone <a href="https://github.com/anjuna-security/vault-akv-plugin.git">https://github.com/anjuna-security/vault-akv-plugin.git</a></pre><p>Then, go to the source directory, and build the plugin:</p><pre>$ cd vault-akv-plugin<br>$ make</pre><p>Next, let’s try to run a Vault server in dev mode to test the plugin:</p><pre>$ export VAULT_ADDR=&#39;http://127.0.0.1:8200&#39;<br>$ make enable</pre><p>To write a secret to your Azure Key Vault, execute</p><pre>$ vault write azure-key-vault/&lt;keyvault-name&gt; hello=&quot;world&quot;</pre><p>where &lt;keyvault-name&gt; is the name of the Key Vault you’ve set up in the Azure account you’re logged in to.</p><blockquote>Note that under the terraform directory you can find a Terraform script to set up a Key Vault for testing purposes. Simply run</blockquote><pre>$ terraform apply<br>$ terraform init</pre><blockquote>in the terraformdirectory, and you’ll have a Key Vault ready to go in a minute.</blockquote><p>For any questions or issues, you’re welcome to reach us through our website <a href="http://www.anjuna.io/contact-us">www.anjuna.io/contact-us</a>, or through support@anjuna.io. We’d also love you to learn more about our solutions for using Secure Enclaves, a new technology that enables protecting the most sensitive data and workloads. Check out <a href="http://www.anjuna.io/">www.anjuna.io</a> and reach out to us if you’d like to learn more.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4b7249262a6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/anjuna-security/azure-key-vault-backend-integration-for-hashicorp-vault-f4b7249262a6">Azure Key Vault backend integration for Hashicorp Vault</a> was originally published in <a href="https://medium.com/anjuna-security">Anjuna</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The sudo privilege-escalation vulnerability and how to future-proof yourself against the likes of…]]></title>
            <link>https://medium.com/anjuna-security/the-sudo-privilege-escalation-vulnerability-and-how-to-future-proof-yourself-against-the-likes-of-2a4913b44ff2?source=rss----37299b72e75---4</link>
            <guid isPermaLink="false">https://medium.com/p/2a4913b44ff2</guid>
            <category><![CDATA[secure-enclave]]></category>
            <category><![CDATA[enclave]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[intel-sgx]]></category>
            <dc:creator><![CDATA[Yan Michalevsky]]></dc:creator>
            <pubDate>Fri, 05 Feb 2021 01:03:23 GMT</pubDate>
            <atom:updated>2021-02-05T01:03:23.104Z</atom:updated>
            <content:encoded><![CDATA[<h3>The <strong>sudo</strong> privilege-escalation vulnerability and how to future-proof yourself against the likes of it</h3><p>On January 16th, 2021, Qualys Research Labs disclosed a privilege escalation vulnerability in no other than the Linux sudo utility. It was filed as <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=2021-3156">CVE-2021–3156</a>. The vulnerability was caused by a heap-overflow bug and allows any local user on a Linux machine to obtain root privileges without proper authentication. Introduced in July 2011, it remained unknown to the general public up until now and affected all legacy versions of sudo from 1.8.2 to 1.8.31p2 and all stable versions from 1.9.0 to 1.9.5p1.</p><p>What is scary about this vulnerability is that we can imagine sudo to be a very logical place for actors such as commercially incentivized blackhats, and nation-state sponsored hacking groups to look for a vulnerability. Being present on most distributions and versions of Unix/Linux, it is a great target to poke holes at. We can only guess whether this vulnerability was known to any actors prior to the Qualys disclosure, or whether exploits based on it were already circulating through the underground vulnerability marketplaces.</p><p>We’re not going to dive here into how to detect and remediate this particular vulnerability. There are many other online resources addressing those points. What I want to talk about is a more generic step you can take to protect your data in light of the possibility of such events. The problem is that this is not the last major privilege escalation vulnerability you are going to see. There is a steady stream of disclosures of such. The operating system, and all the drivers and privileged utilities and agents provide a large attack surface and ample opportunities to bypass the permissions assigned to a non-administrative user. Sometimes it’s due to bugs like in this case, and sometimes due to misconfiguration. The question is whether you can do something other than chasing your tail patching your systems, and hoping they weren’t already infiltrated by actors that might have had a zero-day at their hands prior to the disclosure.</p><p>At <a href="http://www.anjuna.io/">Anjuna</a>, we believe that new technologies falling under the category of Secure Enclaves, or Confidential Computing, can future proof your infrastructure against such vulnerabilities. Secure Enclaves are safe havens for sensitive applications and data on a potentially compromised machine. They can protect data on a machine, even while it is being processed, even from an attacker that managed to escalate their privileges to gain root access and has otherwise full control of the host (whether it is a bare-metal machine, a Virtual Machine, cloud instance, etc.). <br>Secure Enclaves rely on processors’ new capability to encrypt memory used by one piece of code, such that no other code (even kernel, drivers, or applications running as root) could access it. This enables to separate between the privileges of an infrastructure admin (or an attacker that poses as one) and the users of the sensitive application.<br>For instance, if you’re hosting a MySQL or MariaDB database containing the PII of your customers, you don’t necessarily want your Linux admin to have access to it. And you definitely don’t want an attacker that got a hold of the VM to dump the memory of this database or read the files that store its tables and get their hands on the data. A Secure Enclave enables you to run the database such that it is isolated from the rest of the host and any other applications on it, and even a kernel-mode driver cannot read its memory. This doesn’t prevent the attacker to exploit the sudo vulnerability, but it does render it ineffective and inconsequential in terms of accessing data in that sensitive database — even running as root the attacker won’t be able to access the database content.</p><p><a href="http://www.anjuna.io/">Anjuna</a> works with various technologies, such as <em>Intel® Software Guard Extensions</em> (SGX), AMD <em>Secure Encrypted Virtualization</em> (SEV), and <a href="https://www.anjuna.io/amazon-nitro-enclaves">Amazon <em>Nitro Enclaves</em></a>, to enable an easy lift-and-shift of applications into enclaves without the need to modify the application. If you are interested to learn more about Secure Enclaves, Trusted Execution Environments (TEE), and Confidential Computing, you’re welcome to contact us at info@anjuna.io, or through our <a href="https://www.anjuna.io/en-us/contact-us">website</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a4913b44ff2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/anjuna-security/the-sudo-privilege-escalation-vulnerability-and-how-to-future-proof-yourself-against-the-likes-of-2a4913b44ff2">The sudo privilege-escalation vulnerability and how to future-proof yourself against the likes of…</a> was originally published in <a href="https://medium.com/anjuna-security">Anjuna</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Compiler-based Techniques for Enhancing Performance and Privacy in Enclaves]]></title>
            <link>https://medium.com/anjuna-security/compiler-based-techniques-for-enhancing-performance-and-privacy-in-enclaves-38df21a14491?source=rss----37299b72e75---4</link>
            <guid isPermaLink="false">https://medium.com/p/38df21a14491</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[secure-enclave]]></category>
            <category><![CDATA[compilers]]></category>
            <category><![CDATA[intel-sgx]]></category>
            <dc:creator><![CDATA[Yan Michalevsky]]></dc:creator>
            <pubDate>Tue, 26 Jan 2021 09:23:49 GMT</pubDate>
            <atom:updated>2019-11-23T00:05:03.558Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been collaborating for a while with the ACSL research lab at the Technion and this collaboration has resulted in the recent publication of our paper <a href="https://www.usenix.org/conference/atc19/presentation/orenbach"><em>CoSMIX: A Compiler-based System for Secure Memory Instrumentation and Execution in Enclaves</em></a> in a top-tier systems conference called USENIX ATC’19. Our research pursued achieving better performance and enabling very strong privacy guarantees for applications running in secure enclaves (with focus on Intel® SGX) with zero of very-little effort for the developer and without really changing the source code of the application.<br>This goal is in line with <a href="https://www.anjuna.io/">Anjuna</a>’s mission to enable running applications in secure enclaves, achieving the strongest security guarantees, with little compromise to performance and no engineering effort involved in the process. Some of the existing enclave architectures, like Intel® SGX, do not allow secure and efficient implementation of custom page fault handlers. This limitation has implications on the use of memory-mapped files, the performance of page-fault handling, and the ability to provide memory abstractions that perform tasks like compression or remote memory access (such as RDMA).</p><p>CoSMIX is a Compiler-based system for Secure Memory Instrumentation and eXecution of applications in secure enclaves. It provides a memory store abstraction that allows the implementation of application-level secure page-fault handlers that are invoked by a lightweight enclave runtime. The CoSMIX compiler instruments the application’s memory accesses to use one or more memory stores, guided by an instrumentation policy specified as an external configuration provided to the compiler, or minimal code-annotations. This enables us to achieve about 2x speedups for applications like Redis and Memcached, or seamlessly add <a href="https://en.wikipedia.org/wiki/Oblivious_RAM">Oblivious RAM (ORAM)</a> functionality to applications that access sensitive datasets and make those resilient to controlled side-channel attacks.</p><p>The Anjuna Runtime Security solution supports applications instrumented using the CoSMIX compiler. This powerful combination enables seamless migration of real-world applications into secure enclaves with minimal effort.</p><p>(The full paper is available <a href="https://www.usenix.org/conference/atc19/presentation/orenbach">here</a>)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38df21a14491" width="1" height="1" alt=""><hr><p><a href="https://medium.com/anjuna-security/compiler-based-techniques-for-enhancing-performance-and-privacy-in-enclaves-38df21a14491">Compiler-based Techniques for Enhancing Performance and Privacy in Enclaves</a> was originally published in <a href="https://medium.com/anjuna-security">Anjuna</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why protection against root users is important]]></title>
            <link>https://medium.com/anjuna-security/why-protection-against-root-users-is-important-f2a8f6807fea?source=rss----37299b72e75---4</link>
            <guid isPermaLink="false">https://medium.com/p/f2a8f6807fea</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[systemd]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[secure-enclave]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[Yan Michalevsky]]></dc:creator>
            <pubDate>Tue, 26 Jan 2021 09:23:23 GMT</pubDate>
            <atom:updated>2019-06-28T07:21:39.260Z</atom:updated>
            <content:encoded><![CDATA[<p>Security company Qualys has recently disclosed vulnerabilities in Linux’s Systemd, the default service manager daemon for many Linux distributions [1]. They effectively enable a non-privileged user to obtain root privileges. This follows another disclosure, from about 7 months ago, related to a different Systemd vulnerability. Thus, an attacker would be able to access any sensitive workloads on the host by leveraging those vulnerabilities. The disclosures were assigned <a href="https://www.cvedetails.com/cve/CVE-2018-15688/">CVE-2018–15688</a>, <a href="https://www.cvedetails.com/cve/CVE-2018-15687/">CVE-2018–15687</a> and <a href="https://www.cvedetails.com/cve/CVE-2018-15686/">CVE-2018–15686</a>. Rather than discussing the specifics of these vulnerabilities, we want to talk here about the more general problem with relying solely on the OS to secure your sensitive applications.</p><p>The underlying problem is the lack of isolation between an application and privileged accounts or the operating system. While the root account needs to be able to configure the host, there is no reason for it to be able to peek into one’s application data. To that end, we advise running your applications inside secure enclaves while also sealing the persistent state of the application. Secure enclaves, such as Intel SGX, can guarantee that the application’s memory and persistent state are accessible only to the application, and not even an administrator would be able to access them.<br>Anjuna provides an easy way to run an entire application inside a secure enclave without the need to re-architect it. This approach essentially decouples the application security from the security of the host on which the application is executed, and tightens the security perimeter to be around the application itself rather than having to deal with a larger security perimeter that is hard to address.</p><p>If you are interested in learning more about how Anjuna can help protect against similar kinds of threats, you are welcome to <a href="https://www.anjuna.io/contact-1">reach out to us</a> through our website.</p><h3>References</h3><ol><li>New Linux Systemd security holes uncovered: <a href="https://www-zdnet-com.cdn.ampproject.org/v/s/www.zdnet.com/google-amp/article/new-linux-systemd-security-holes-uncovered/?amp_js_v=0.1">https://www-zdnet-com.cdn.ampproject.org/v/s/www.zdnet.com/google-amp/article/new-linux-systemd-security-holes-uncovered/?amp_js_v=0.1</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2a8f6807fea" width="1" height="1" alt=""><hr><p><a href="https://medium.com/anjuna-security/why-protection-against-root-users-is-important-f2a8f6807fea">Why protection against root users is important</a> was originally published in <a href="https://medium.com/anjuna-security">Anjuna</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SGX, or how I stopped worrying about the microchip hack]]></title>
            <link>https://medium.com/anjuna-security/sgx-or-how-i-stopped-worrying-about-the-microchip-hack-80be334dcece?source=rss----37299b72e75---4</link>
            <guid isPermaLink="false">https://medium.com/p/80be334dcece</guid>
            <category><![CDATA[bloomberg]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[intel-sgx]]></category>
            <category><![CDATA[microchip]]></category>
            <dc:creator><![CDATA[Yan Michalevsky]]></dc:creator>
            <pubDate>Tue, 26 Jan 2021 09:22:47 GMT</pubDate>
            <atom:updated>2019-05-21T07:03:08.167Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tOo_ZSfPP5CQBRh3xBcaYw.png" /></figure><p>Bloomberg Businessweek had recently reported on a hardware supply chain allegedly infiltrated by government-sponsored hackers, who, according to the report, installed a malicious microchip into motherboards to spy on US-based companies.<br>The accused government has denied any involvement in this episode and the companies that, according to the report were targeted, denied finding evidence for it. No one has yet come forward to share the technical details of the implanted microchip. But even without these details, we can discuss the potential implications of such an attack, and how the technology developed by Anjuna can help customers regain confidence in their application security in light of similar threats.</p><p>First, let us examine a few possibilities for hardware-assisted security compromises, and what such an implant could potentially do. Disclaimer: we do not go into discussing the physical properties of such a chip, and whether it can be as small as illustrated in the Bloomberg article. <br>We assume the chip can read data passing from the processor (CPU) to the memory (DRAM), and in addition tamper with that data. This provides the capability to either exfiltrate data, or potentially redirect the execution flow of applications, or even the operating system, making it easily exploitable. For instance, if the piece of code that checks the permissions of an account is circumvented, a regular user may gain the capabilities of a superuser or administrator. Another avenue would be to exfiltrate sensitive data that is only supposed to reside in memory (and not in persistent storage) by using a hardware implant that can access both the memory bus and the I/O to the hard-drive or SSD. One example where it can be an issue is applications that store data at-rest in an encrypted form, and then decrypt it in memory in order to operate on it (secrets management applications are such an example).</p><p>It is no easy operation to compromise a supply chain and the assembly line, but it is feasible, especially for advanced attackers. In a world where supply-chain hardware attacks are possible, we need to consider a new security paradigm where we accept that hardware may be compromised and move toward a zero trust model.<br>Our goal should be minimizing trust in various hardware components, and tightening the security perimeter around our applications. At the hardware level, the best we can do (while still allowing for general-purpose computation) is to minimize trust to the processor chip, the CPU. At the software level, minimizing trust to the application itself, and removing the trust in the operating system and the storage is a great trade-off between usability and security — enabling applications to focus on the business logic, without worrying about anything running alongside them on the host.</p><p><a href="https://www.anjuna.io/">Anjuna</a> does just this with its <a href="https://www.anjuna.io/product/">Runtime Security solution</a> based on <a href="https://software.intel.com/en-us/sgx">Intel® Software Guard Extensions</a> (SGX). It creates a software perimeter around the application that eliminates the need to trust the operating system, the hypervisor or the host machine — protecting it from zero-days, physical access and privileged users, be it, hackers or insiders.<br>Intel® SGX essentially enables a completely new and unprecedented security model. Any data that leaves the CPU boundary and is written to the memory (and could potentially be intercepted by a hardware implant) is encrypted using a key that is generated in the processor. For readers who are familiar with the <a href="https://en.wikipedia.org/wiki/Cold_boot_attack">Cold-Boot</a> and <a href="https://en.wikipedia.org/wiki/Row_hammer">RowHammer</a> attacks — the Intel® SGX technology can prevent those as well.<br>Anjuna enables to easily take advantage of the security guarantees of Intel® SGX, with a runtime that integrates transparently into the user’s infrastructure, without the need to rearchitect or modify the protected applications. Using the solution to protect critical applications can restore the confidence that the data is protected, regardless of the origin of your hardware appliances.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80be334dcece" width="1" height="1" alt=""><hr><p><a href="https://medium.com/anjuna-security/sgx-or-how-i-stopped-worrying-about-the-microchip-hack-80be334dcece">SGX, or how I stopped worrying about the microchip hack</a> was originally published in <a href="https://medium.com/anjuna-security">Anjuna</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Foreshadow]]></title>
            <link>https://medium.com/anjuna-security/foreshadow-98f6847f9317?source=rss----37299b72e75---4</link>
            <guid isPermaLink="false">https://medium.com/p/98f6847f9317</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[intel-sgx]]></category>
            <category><![CDATA[meltdown]]></category>
            <category><![CDATA[runtime-security]]></category>
            <category><![CDATA[foreshadow]]></category>
            <dc:creator><![CDATA[Yan Michalevsky]]></dc:creator>
            <pubDate>Thu, 02 May 2019 02:01:56 GMT</pubDate>
            <atom:updated>2019-04-19T07:44:11.651Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CUqm7UkEMVOGZbYem7SYXg.png" /></figure><p>Security researchers from KU Leuven, Technion, University of Michigan and the University of Adelaide, have recently published their findings on an attack called <a href="https://foreshadowattack.eu/">Foreshadow</a>, that compromises the security of Intel SGX enclaves. Once again, speculative execution was exploited in a manner similar to the <a href="https://meltdownattack.com/">Meltdown attack</a>.<br>In <a href="https://www.anjuna.io/blog/2018/2/7/meltdown-spectre-sgx">our previous post</a>, we explained how Intel Software Guard Extensions (SGX) protect against a Meltdown attack attempted from the untrusted part of a process hosting an enclave. However, the Foreshadow team showed how one can use a Meltdown-like technique to read the victim enclave’s memory, conditioned on sensitive data already being in the cache. The official disclosure of the vulnerabilities, named <em>L1 Terminal Fault </em>by Intel, took place on August 14th, 2018, and they were filed as CVE-2018–3615, CVE-2018–3646 and CVE-2018–3647.</p><p>In this post, we explain the implications of the attack, its mitigations via microcode updates, and how <a href="https://www.anjuna.io/">Anjuna</a> helps ensure that a backend application is running on updated hardware secured against this attack.</p><h3>The Foreshadow attack on Intel® SGX</h3><p>SGX enables the creation of “secure enclaves”, that enable an application to protect its sensitive data even from the kernel or a user with root access to the machine, effectively limiting the attack surface to the secure enclave interfaces, rather than everything else on the host.<br>The Foreshadow attack, discovered by Van Bulck et al. [2], leverages speculative execution and a cache-timing side-channel to extract information from enclaves.</p><h3>MITIGATIONS</h3><p>Intel mitigates this attack by flushing the L1 cache upon enclave exit events, which invalidates the requirement that Foreshadow relies on, that secrets should be present in the L1 cache in order for the attacker to be able to circumvent abort-page dynamics.<br>This update to the behavior of enclaves has caused a recent increment in the Security Version Number. In addition, to prevent attestation forgery, the old EPID group was invalidated and is no longer authorized by the Intel Attestation Service (IAS).<br>Intel released a <a href="https://www.intel.com/content/www/us/en/security-%20center/advisory/intel-sa-00161.html">security advisory</a> for the issue, which it calls <em>L1 Terminal Fault</em>.</p><p>In order to make sure previously stored data will not be accessible (by reverting a microcode update), we recommend re-sealing and re-signing the data with new keys that can only be accessed by an up-to-date enclave with microcode updates deployed.</p><h3>IMPLICATIONS FOR ATTESTATION</h3><p>Attestation is a cornerstone capability of TEEs (Trusted Execution Environments), which enables a server application to provide a cryptographic proof to a client communicating with it, that it indeed runs inside a secure enclave, and assures that it is safe to send over sensitive data to it, or trust that its outputs are authentic. There are multiple ways to perform attestation, but all of them must rely on secure primitives to achieve their guarantees.<br>The most practical implication of Foreshadow is on the EPID-based Remote Attestation of enclaves. EPID attestation is based on a group signature scheme that enables to sign an enclave <em>report</em>, attesting to the initial state of the enclave, and cryptographically proving to a remote verifier that the report was generated by an authentic SGX enclave. The signing is performed using a key that is embedded in the processor and can only be accessed by the Quoting Enclave (QE). The extraction of this key enables an attacker to forge an attestation for any enclave identity.</p><p>Anjuna does not use EPID-based attestation when anonymous attestation is not required, and unlinkability is not needed. Instead, we use standard PKI for most of our customer’s scenarios. It is therefore sufficient to regenerate certificates and provision the enclaves with the corresponding private keys. The increment in the CPU Security Version Number (CPUSVN) guarantees that those new private keys are inaccessible to platforms where the security updates were not deployed. As such, the attestation mechanism is a perfect way to ensure that client applications are communicating with backend instances on properly patched servers.</p><h3>BENEFITS OF SGX IN LIGHT OF FORESHADOW</h3><p>Somewhat counterintuitively, we believe that some of the implications of Foreshadow actually strengthen the case for Intel® SGX, and specifically for hardware-based remote attestation. As mentioned in the original Foreshadow paper [2], and in Foreshadow-NG by Weisse et al. [3], the L1 Terminal Fault has implications reaching far beyond enclaves, to inter-VM scenarios, hypervisor memory inspection, separate processes running on the same physical core with hyper-threading, etc.<br>While the mitigations provided by Intel address the issues, users must ensure that the updates were actually deployed on the infrastructure they are running on. In this sense, Intel® SGX can be extremely helpful in providing a signed report that notifies a remote client whether updates have been deployed, and which security features are activated on the host (for instance, whether HyperThreading has been turned off or not). Similarly to previous microarchitectural attacks like Spectre, Foreshadow actually strengthens the need for such attestation, even for scenarios where the operating system is trusted.</p><h3>Architecture and Microarchitecture</h3><p>We can reason about what goes on in a processor on various levels. One of them is the architectural level, that defines the semantics of executing programs, and the other is the micro-architectural level, which is how these semantics are actually implemented underneath.<br>On the architectural level, things have been pretty solid — the semantics of Intel® Software Guard Extensions were formally verified by Subramanyan et al. [1]. However, on the micro-architectural level things have been discovered to be a bit shakier during the past year and a half. After several years during which cache-timing side-channel attacks were studied and perfected by researchers from academia and industry, the big blow came with the discovery of the Meltdown and Spectre attacks, concurrently and independently by Jahn Horn from Google’s Project Zero, and by Paul Kocher (co-founder of Cryptography Research) and other researchers from academia and industry.<br>These attacks have shown that the assumptions about memory isolation between either different protection rings, or between different processes, are violated by micro-architectural side-channels that leak information across the architectural boundaries. For instance, Meltdown uses the fact that kernel memory is accessed speculatively from an unprivileged protection ring, leaving measurable effects in the processor’s cache that leak content that should only be accessible to the privileged protection ring.</p><p>A silver lining in this story is the decoupling between the architecture and the microarchitecture. The Foreshadow paper explicitly states:</p><blockquote><em>“We want to emphasize that Foreshadow exploits a microarchitectural implementation bug, and does not in any way undermine the architectural design of Intel SGX and TEEs in general. We strongly believe that the non-hierarchical protection model supported by these architectures is still as valuable as it was before.”</em></blockquote><p>— Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution</p><h3>Dealing with the complexity of Intel® SGX</h3><p><a href="https://www.anjuna.io/">Anjuna</a> helps its users to handle the complexities of SGX, and provides the tools that enable to take the necessary steps to restore security and privacy following such vulnerabilities, by migrating data to new enclave versions and making sure new attestation keys are re-provisioned.</p><p>We are excited to see that the brightest minds in the security field from academia are researching Intel’s SGX technology, over time helping make it one of the most secure solutions for application security and privacy.</p><h3>REFERENCES</h3><ol><li>Subramanyan, Pramod, et al. “A formal foundation for secure remote execution of enclaves.” <em>Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security</em>. ACM, 2017.</li><li>Bulck, J. Van, Minkin, M., Weisse, O., Genkin, D., Kasikci, B., Piessens, F., Silberstein, M., Wenisch, T., Yarom Y., Strackx, R. (2018). Foreshadow: Extracting the Keys to the Intel SGX Kingdom with Transient Out-of-Order Execution. In <em>27th USENIX Security Symposium (USENIX Security 18).</em></li><li>Weisse, O., Bulck, J. Van, Minkin, M., Genkin, D., Kasikci, B., Piessens, F., Silberstein, M., Wenisch, T., Yarom Y., Strackx, R.(2018). Foreshadow-NG: Breaking the Virtual Memory Abstraction with Transient Out-of-Order Execution. <em>Technical Report</em>.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98f6847f9317" width="1" height="1" alt=""><hr><p><a href="https://medium.com/anjuna-security/foreshadow-98f6847f9317">Foreshadow</a> was originally published in <a href="https://medium.com/anjuna-security">Anjuna</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How do you avoid the Facebook passwords security issue and protect your customers’ secrets?]]></title>
            <link>https://medium.com/anjuna-security/how-do-you-avoid-the-facebook-passwords-security-issue-and-protect-your-customers-secrets-7dc49f923c5d?source=rss----37299b72e75---4</link>
            <guid isPermaLink="false">https://medium.com/p/7dc49f923c5d</guid>
            <category><![CDATA[private-key]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[access-control]]></category>
            <category><![CDATA[password-management]]></category>
            <category><![CDATA[facebook]]></category>
            <dc:creator><![CDATA[Ayal Yogev]]></dc:creator>
            <pubDate>Wed, 01 May 2019 18:39:18 GMT</pubDate>
            <atom:updated>2019-03-23T00:33:55.471Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uU0EpIcq5dvZ8FT8vpTLFw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/HUBofEFQ6CA?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Con Karampelas</a> on <a href="https://unsplash.com/search/photos/facebook-password?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>‘Krebs on Security’ recently <a href="https://krebsonsecurity.com/2019/03/facebook-stored-hundreds-of-millions-of-user-passwords-in-plain-text-for-years/">published</a> that hundreds of millions of Facebook users had their account passwords stored in plaintext and searchable by thousands of Facebook employees, in some cases going back to 2012. Facebook issued an <a href="https://newsroom.fb.com/news/2019/03/keeping-passwords-secure/">official statement</a>, explaining how it protects user passwords by using a variety of signals to detect suspicious activity.</p><p>This problem is not unique to Facebook. <a href="https://www.zdnet.com/article/github-says-bug-exposed-account-passwords/">Github</a> and <a href="https://krebsonsecurity.com/2018/05/twitter-to-all-users-change-your-password-now/">Twitter</a> had similar issues that were revealed last year.</p><p>The problem with employees having access to these passwords goes well beyond the fear of a Facebook or a Twitter employee misusing this information. What are the chances that no Facebook engineer was phished during the period of time that these passwords were accessible? A list of hundreds of millions of passwords that Facebook users likely use for other accounts, is a goldmine for any attacker.</p><p>Protecting user passwords is extremely important for B2C companies, but is also a major issue for B2B companies. In many cases B2B companies hold keys or passwords that belong to their customers. A few examples include Content Delivery Networks that might hold customers’ private keys in order to authenticate as the customer, or companies like MuleSoft that hold API keys for their customers.</p><p>It’s the responsibility of these companies to ensure that their customers’ secrets are protected from internal employees, <strong>even if these employees have administrative access to the infrastructure</strong>. Similar to the Facebook case, if an employee account gets compromised or breached, an attacker gets access to all the customer keys or secrets, which is both a PR nightmare and a major breach of confidence that would be very costly to the business.</p><h3>But how can customer secrets be protected from employees with root access?</h3><p>Historically, engineers or admins with root access to the infrastructure are able to gain access to sensitive information like passwords and keys. Companies try to reduce this risk but limiting access to the minimum and rotating root passwords frequently. However, none of these measures would stop a determined attacker.</p><p>Facebook, for example, in its statement mentioned that it protects user passwords by using a variety of signals to detect suspicious activity. While it’s important to do so, this does not prevent attackers from gaining access. It simply notifies Facebook that there was an issue after the fact.</p><p>Building solutions that completely prevent insiders for getting access to customers’ secrets is extremely difficult and usually requires significant resources that could be placed elsewhere.</p><p>A much better approach would be to completely prevent access from insiders and admins to these secrets without having to change any of the applications built internally.</p><p>This can be achieved by <strong>coupling a software-based approach</strong> <strong>with a processor-based technology </strong>called Secure Enclaves. Modern processors from Intel®, AMD and others enable applications to secure sensitive data and processes in hardware-level encrypted memory partitions that are completely isolated from the rest of the system. This approach is so secure that <strong>not even users with root permissions can access this encrypted memory.</strong></p><p>This means that users’ and customers’ passwords and keys are completely protected, and we can avoid New York Times headlines like <a href="https://www.nytimes.com/2019/03/21/technology/personaltech/facebook-passwords.html">this one</a>, be protected from breaches, and be able to tell your customers or users that their secrets are safe.</p><h3>Learn more</h3><p>To learn more regarding how to protect applications and secrets with secure enclaves, please click <a href="https://www.anjuna.io/product"><strong>here</strong></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7dc49f923c5d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/anjuna-security/how-do-you-avoid-the-facebook-passwords-security-issue-and-protect-your-customers-secrets-7dc49f923c5d">How do you avoid the Facebook passwords security issue and protect your customers’ secrets?</a> was originally published in <a href="https://medium.com/anjuna-security">Anjuna</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Meltdown & Spectre and what it means for Intel SGX]]></title>
            <link>https://medium.com/anjuna-security/meltdown-spectre-and-what-it-means-for-intel-sgx-492ec9c8b689?source=rss----37299b72e75---4</link>
            <guid isPermaLink="false">https://medium.com/p/492ec9c8b689</guid>
            <category><![CDATA[secure-enclave]]></category>
            <category><![CDATA[runtime-security]]></category>
            <category><![CDATA[intel-sgx]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[meltdown]]></category>
            <dc:creator><![CDATA[Yan Michalevsky]]></dc:creator>
            <pubDate>Fri, 19 Apr 2019 07:43:01 GMT</pubDate>
            <atom:updated>2019-04-19T07:34:16.475Z</atom:updated>
            <content:encoded><![CDATA[<h3>Meltdown and Spectre and what it means for Intel SGX</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_TTD1g5_FOjCY5rvUSIy9Q.png" /></figure><p>We are occasionally asked about the implications of the recently disclosed <a href="http://meltdownattack.com/">Meltdown</a> and <a href="http://spectreattack.com/">Spectre</a> CPU vulnerabilities on the security of Intel® SGX and secure enclaves. This post answers the questions we encounter and addresses the concerns regarding application security in light of these vulnerabilities.</p><h3>Meltdown &amp; Spectre 101</h3><p>What Meltdown and Spectre have in common is that both techniques exploit speculative execution. Speculative execution is intended to speed-up programs by performing multiple instructions in parallel, often before the program can know for sure that the instruction is indeed needed, or valid in the current execution context (to be precise, Meltdown exploits out-of-order execution, but we consider it speculative since in that context the instruction is actually invalid). The objective of both attack techniques is to infer the content at a physical memory location that should not be accessible to the attacker. For instance, the attacker could try to have a peek into the memory space of the operating system&#39;s kernel, or into the memory of another process.</p><h3>MELTDOWN</h3><p>Meltdown exploits the fact that the CPU executes instructions in the pipeline out of order, including potentially prefetching a memory address that should not be accessible in the attacker’s execution context. When it gets to the stage of committing the result it would actually check whether the memory access was legal and discard the instruction in case it wasn’t. However, at this point, it is too late, since certain subtle information, such as the time it took to access the memory is already available to the attacker. The Meltdown paper [Lipp et al.] illustrates it with the following toy-example:</p><pre>raise_exception();<br>access(probe_array[data * 4096]);</pre><p>The result of the memory-read in the second line is not supposed to be committed since an exception is raised right before that. However, due to out-of-order execution, the memory address is nevertheless accessed. It has the side-effect that the content is read into the cache, which is observable by an attacker using a cache side-channel.</p><h3>SPECTRE</h3><p>Spectre exploits conditional branch prediction to execute instructions that would not be executed normally, and pull otherwise inaccessible memory content into the cache. The CPU is “trained” to expect a certain sequence of instructions to happen. For instance, in the following example, as long as the <em>if</em><strong> </strong>condition is fulfilled, the assignment to y is executed.</p><pre>if (x &lt; array1_size) {<br>    y = array2[array1[x] * 256];<br>}</pre><p>By executing the block multiple times, the attacker could train the branch-predictor to assume that the line would be executed (regardless of the value of x). The attacker then triggers the execution of this block in the context of the victim process, or the kernel, with values of x larger than array1_size, in order to access memory addresses that are outside the bounds of array2. Combining it with a cache side-channel, the attacker is able to infer the content seen by victim process.</p><p>An important observation, made by the researchers who disclosed Spectre, is that speculative execution was only observed when the destination address was accessible by the victim thread. It implies that, unlike in Meltdown, the exploitable code has to actually be present in the executable memory of the victim. That makes it non-trivial for attackers to execute a Spectre attack since they first need to identify vulnerable gadgets within the target.</p><h3>So what does it mean for secure enclaves?</h3><p>While leveraging similar techniques, and having the common theme of virtual memory protection bypass, Meltdown and Spectre are, in fact, somewhat different. Spectre exploits vulnerable code (gadgets) in another process, or in the kernel. Meltdown, on the other hand, attempts to access normally inaccessible virtual addresses within the attacker’s process itself, i.e. within the same “execution context”. Thus, Meltdown and Spectre have different implications for enclaves.</p><h3><a href="https://www.anjuna.io/solutions">ANJUNA</a> CAN PROTECT CRITICAL APPLICATIONS AGAINST THE MELTDOWN ATTACK USING ENCLAVES</h3><p>An enclave has a different execution context in the sense that it gets access to decrypted content within the Enclave Page Cache (EPC), whereas any other execution context only gets to see the content in its encrypted form. An attacker that attempts to read from an inaccessible memory location using Meltdown, will be redirected to an <em>abort page</em>, which has no value. <a href="https://bitbucket.org/anjunasec/meltdown-sgx">In this Git repository</a>, we provide sample code that demonstrates how SGX protects against Meltdown.<br>Eventually, Intel is likely to address Meltdown with a micro-architectural solution, but until that happens the recommendation is to deploy OS-level protections such as KAISER. In zero-trust environments, one cannot count on OS-level protection to protect against the Meltdown exploit, since we need to take into account powerful attackers who might disable KAISER and KASLR, and enable mapping of kernel pages into the attacker’s process memory.</p><p>Spectre is currently outside the threat model of Intel® SGX. However, Spectre can be mitigated by making sure that the code running inside the enclave does not provide easily exploitable gadgets, and applies protective measures on the application level. <a href="https://software.intel.com/sites/default/files/180204_SGX_SDK_Developer_Guidance_v1.0.pdf">Intel has recently released guidelines</a> that can help harden code running within enclaves against Spectre. In addition, it is important to monitor public announcements that point to potentially exploitable gadgets within known applications, in as much as we, security practitioners, are used to monitor CVEs that disclose traditional vulnerabilities. Working closely with our customers, we carefully inspect the applications that we help secure, to make sure they are hardened against side-channel attacks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=492ec9c8b689" width="1" height="1" alt=""><hr><p><a href="https://medium.com/anjuna-security/meltdown-spectre-and-what-it-means-for-intel-sgx-492ec9c8b689">Meltdown &amp; Spectre and what it means for Intel SGX</a> was originally published in <a href="https://medium.com/anjuna-security">Anjuna</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>