Avec le processeur Core Ultra, Intel lève le voile sur le « PC accéléré par l’IA »
Technologie : Le nouveau processeur Intel Core Ultra intègre un « accélérateur d’IA ». Sa promesse : il permet aux PC professionnels de rester performants et économes en énergie lorsqu’ils utilisent des fonctionnalités liées à l’intelligence artificielle. Associé à la plateforme Intel vPro, il représente la configuration idéale pour les flottes d’entreprise.
PAR; INTEL
Publié le 09/04/2024 à 10:29 | Mis à jour le 22/05/2024
C’est une révolution qui s’annonce. Déjà présente dans le quotidien des professionnels, l’Intelligence Artificielle (IA) va prendre une place centrale dans les années qui viennent au sein des entreprises. Une révolution qui en cache une autre, celle de la localisation de cette IA. Elle ne va ainsi plus se situer uniquement au niveau des serveurs ou du cloud. Elle va de plus en plus être intégrée aux postes de travail.
De l’IA « en local » ? C’est une opportunité pour les organisations qui pourront développer leurs performances grâce à de nouveaux outils applicatifs (applications métiers, outils de retouche d’images, de recherche de fichiers, de traque de programmes malveillant (« malware ») …). Mais c’est aussi, pour elles, une obligation : intégrer l’IA est primordial pour les entreprises, afin de maintenir leur compétitivité face à la concurrence.
Votre consommation électrique à la loupe
Face à ce défi, c’est bien sûr la capacité des PC à prendre en charge ces nouveaux usages qui est en jeu. Anticipant l’avènement de l’Intelligence artificielle sur les postes clients, Intel a développé une solution à la hauteur de ces enjeux : le nouveau processeur Intel Core Ultra. L’une de ses forces : il intègre un NPU (Neural processing unit – unité de traitement neuronal), une puce dédiée aux réseaux neuronaux à même d’« accélérer l’IA » et de traiter toutes les tâches qui lui sont liées. De quoi « décharger » le CPU et libérer de la puissance de calcul. Les utilisateurs pourront ainsi profiter de nombreuses fonctionnalités et applications – Intel a travaillé en étroite collaboration avec plus de 100 éditeurs de logiciel indépendants pour optimiser leurs outils sur des PC contenant des CPUs Intel.
« Il permet également de réduire les consommations d’énergie nécessaires pour traiter les modèles d’IA », complète Claude Chauvet, Technical Sales Specialist (directeur technique) chez Intel. Un atout précieux, notamment en situation de mobilité, où les utilisateurs pourront travailler plus longtemps sur la batterie de leur PC portable.
Intel Core Ultra combiné à Intel vPro : un environnement de travail idéal
Des flottes de PC nouvelle génération, adaptées aux enjeux technologiques et stratégiques à venir, vont ainsi progressivement prendre place dans les entreprises. Des parcs qui seront gérés au mieux grâce à Intel vPro, complément idéal du processeur Intel Core Ultra. Cette plateforme regroupe des technologies matérielles et logicielles spécialement adaptées aux besoins des entreprises, et aux exigences du service IT. Elle se distingue notamment par une sécurité multicouche – l’équipement matériel (le « hardware ») qui aide à protéger les ressources et les données de l’entreprise – ainsi que par une gestion à distance simple et performante de l’ensemble du parc informatique.
En réunissant en un même PC le processeur Intel Core Ultra et la plateforme Intel vPro, les entreprises font ainsi coup double. Elles permettent aux utilisateurs de disposer d’un « PC avec IA » parfaitement adapté pour profiter des nouvelles capacités offertes par l’intelligence artificielle. Et, dans le même temps, elles offrent aux administrateurs de la DSI (Direction des systèmes d’information) une tranquillité quotidienne dans leur travail sur les flottes d’ordinateurs*.
La Chine décide de bannir les processeurs AMD et Intel des machines gouvernementales
Par: Nerces
26 mars 2024 à 12h02
La Chine réagit aux sanctions américaines
Les processeurs AMD et Intel ne pourront bientôt plus se trouver dans le moindre ordinateur utilisé par les institutions chinoises.
« Retour de bâton » ou « réponse du berger à la bergère », peu importe l'expression que vous choisirez, le résultat sera le même : la Chine n'entend pas se laisser faire.
Les sanctions prises par le gouvernement des États-Unis à l'encontre de la Chine viennent de connaître un nouveau développement, lequel n'est d'ailleurs pas véritablement une surprise.
Accès restreint aux technologies occidentales
Tout au long de l'année 2023, les États-Unis n'ont eu de cesse que d'amplifier les restrictions imposées à la Chine dans le domaine des semi-conducteurs, et ce, afin d'atteindre plusieurs objectifs.
La concurrence chinoise se fait de plus en plus forte sur ce secteur clé de l'économie mondiale et alors que les États-Unis représentaient 37 % de la production en 1990, ils n'étaient plus qu'à 13 % en tout début d'année dernière. Sans imaginer pouvoir réellement bloquer la Chine, les États-Unis espèrent simplement la ralentir et se donner de l'air en redynamisant leur production intérieure.
De fait, coup sur coup, les interdictions à l'exportation vers la Chine se sont faites de plus en plus nombreuses touchant par exemple des sociétés comme NVIDIA sur ses plus puissants GPU ou des entreprises telles qu'ASML pour ses machines de gravure en technologie ultraviolette extrême (EUV).
Bannissement chinois des CPU AMD/Intel
Cette politique associée à de multiples financements publics (le Chips act) semble porter ses fruits et les investissements américains dans le domaine des semi-conducteurs ont considérablement augmenté ces derniers mois.
Reste que la Chine n'entend pas se laisser faire et après diverses pressions (finalement sans trop de conséquences) sur le marché des terres rares, Pékin se tourne vers une nouvelle forme de lutte. Cité par TechPowerUp, le Financial Times précise que les puces signées AMD et Intel n'auront tout simplement plus le droit de citer dans les PC utilisés par les institutions publiques.
Une décision qui devrait avoir deux effets principaux, car en plus de réduire la dépendance du pays aux solutions étrangères, elle devrait logiquement doper l'industrie chinoise en favorisant les producteurs locaux. Bien sûr, Pékin n'est pas inconscient et les fournisseurs des institutions gouvernementales ont deux ans pour mettre leur offre en conformité avec la loi.
De plus, cette décision aura bien sûr un impact tant sur AMD que sur Intel. Même si nous n'avons pas de chiffres, les institutions chinoises représentent à coup sûr un marché important. Enfin, le soutien aux entreprises chinoises comme Loongson ou Sunway que cela suppose pourrait faire tache d'huile et ouvrir de nouveaux horizons à des sociétés qui redoublent déjà d'efforts.
Que se passe-t-il si vous ne mangez pas pendant une journée ?
Si vous ne mangez pas pendant une journée, plusieurs choses peuvent se produire dans votre corps. Voici quelques-unes des réponses physiologiques les plus courantes:
Sensation de faim: Votre corps libère de la ghréline, l'hormone de l'appétit, lorsque vous ressentez la faim. Cette hormone stimule l'autophagie, qui est le processus de nettoyage de certains déchets cellulaires, ce qui a pour effet une protection et un recyclage d'éléments cellulaires.
Baisse d'énergie: Sans apport calorique, votre corps commencera à utiliser ses réserves d'énergie. Au début, il brûlera les glucides stockés sous forme de glycogène. Une fois ces réserves épuisées, votre corps commencera à brûler les graisses pour produire de l'énergie.
Difficultés de concentration: Le cerveau a besoin de glucose pour fonctionner correctement. Sans apport alimentaire, le taux de glucose dans le sang peut diminuer, ce qui peut entraîner des difficultés de concentration.
Modifications de l'humeur: La faim peut également affecter votre humeur. Vous pouvez vous sentir irritable ou anxieux.
Perturbations du sommeil: Le manque de nourriture peut perturber votre sommeil. En effet, pour compenser la fatigue, notre corps va tenter de se booster avec de la nourriture. De plus, le manque de sommeil dérègle certaines hormones. Cela va par exemple augmenter la production de la ghréline, responsable de la sensation de faim et diminuer le taux de leptine qui est associée au sentiment de satiété.
Les vulnérabilités du code mettent les courriers Proton en danger
Photo de Paul Gerste
Par: Paul Gerste
CHERCHEUR EN VULNÉRABILITÉ
Key Information
In June 2022, the Sonar Research team discovered critical code vulnerabilities in multiple encrypted email solutions, including Proton Mail, Skiff, and Tutanota.
These privacy-oriented webmail services provide end-to-end encryption, making communications safe in transit and at rest. Our findings affect their web clients, where the messages are decrypted, mobile clients were not affected.
The vulnerabilities would have allowed attackers to steal emails and impersonate victims if they interacted with malicious messages.
Nearly 70 million users were at risk on Proton Mail alone.
Thanks to our report, the issue has been fixed and there are no signs of in-the-wild exploitation.
Introduction
End-to-end encrypted communication is simply a feel-good thing for most people, but there are also high-risk users such as whistleblowers, journalists, or activists who seriously depend on confidential communication. We're seeing regular in-the-wild campaigns targeting mail servers, for example on Zimbra instances, as tracked by the US Cybersecurity and Infrastructure Security Agency (CISA).
Many messenger services have already switched to end-to-end encryption (E2EE) to protect messages in transit and at rest, but it is still rare among email services. While PGP and S/MIME do exist, they are usually cumbersome to set up and use, even for tech-savvy users. That's why many people turn to privacy-oriented webmail services like Proton Mail, Skiff, and Tutanota that make E2EE available out-of-the-box and easy to use.
This led us to audit the security of these services, specifically their web clients. While the cryptography seems solid, we wanted to know if it is possible to attack the clients directly. Since the encryption happens in the web client, a successful attacker would be able to steal emails in their decrypted form.
In this blog post, we first present the technical details of the vulnerabilities we found in Proton Mail. We show how an innocent-looking piece of code led to a Cross-Site Scripting issue that made it possible for attackers to steal decrypted emails and impersonate victims.
As part of a 3-post series, we will cover other severe vulnerabilities we found in Skiff and Tutanota Desktop in the coming weeks. Those vulnerabilities could have been used by attackers to steal emails, and in one case even execute arbitrary code on the machines of victims.
The content of this blog post series was also presented as a talk at Black Hat Asia 2023; the video recording is available here.
Impact
The Sonar Research team discovered a Cross-Site Scripting vulnerability in the open-source code of Proton Mail. This issue allowed attackers to steal decrypted emails and impersonate their victims, bypassing the end-to-end encryption.
Attackers have to send two emails, both of which have to be viewed by the victim. In some scenarios, the attack would succeed if the victim only viewed the emails. However, most scenarios require the victim to click on a link in the second email.
We responsibly disclosed the vulnerabilities to the vendor in June 2022, and they were fixed shortly after. The following proof-of-concept shows how the vulnerability could have been exploited by attackers:
Technical Details
Dealing with user-controlled HTML in a web application always opens up the risk of Cross-Site Scripting (XSS). While senders may want to style their message and include images, other HTML tags like <script> may have unwanted effects and compromise the security of the reader. This is already dangerous for regular webmail services, where anybody could send a malicious email to a user just by knowing their email address.
It is even more dangerous for end-to-end encrypted and privacy-oriented web mailers, where users put much more trust into the service. If an attacker is able to execute arbitrary JavaScript in the context of such an application, they could potentially steal decrypted emails and private keys, deanonymize users, and impersonate victims.
To avoid all this, web mailers put a lot of effort into ensuring no malicious HTML can get through. Most of them use state-of-the-art HTML sanitizers, such as DOMPurify, to get rid of any malicious HTML. This is a very good first step, but even the sanitized data is so fragile that subtle mistakes in handling it can jeopardize the security of the whole application.
In the following sections, we will explain the code vulnerability we found in Proton Mail. We will also highlight the importance of modern web defense mechanisms, how they make attackers' lives harder, and how they can still be bypassed when the right conditions align. Finally, we examine how these issues were fixed, and how to avoid such vulnerabilities in your own code.
Buckle up for a story about parser differentials, sandbox bypasses, and CSS data exfiltration!
Proton Mail
Proton Mail is probably the most popular privacy-oriented webmail service with nearly 70 million users in 2022. They use the state-of-the-art HTML sanitizer DOMPurify to avoid XSS when rendering incoming emails, and they also employ further defenses that aim to make exploitation harder in case the sanitizer fails.
When auditing the email HTML sanitization logic, we noticed the following code snippet that runs on the already-sanitized data. It looks innocent at first sight but contains a critical flaw:
This code is intended to replace <svg> elements in an email with <proton-svg> ones. It does so by creating a new element, moving all children, and then replacing the old element. Since the content or attributes of those elements are not modified, how could this be security-relevant? To understand this, we first need to learn about Foreign Content in HTML.
An HTML Sanitizer's Nightmare: Foreign Content
HTML has its own parsing rules, and it can contain things with different parsing rules, such as MathML and SVG. These look similar to HTML, as they are also derived from XML, but there are some key differences in how they have to be parsed that are important for a sanitizer to know.
One example of differences between HTML and SVG is the <style> element. In HTML, this element contains raw text until the next closing </style> tag. In SVG, it instead contains child elements. When a sanitizer runs with the wrong context in mind, it would likely make the wrong decisions.
This is exactly what happened in the case of Proton Mail. The sanitizer first sees an SVG element and sanitizes its children with the SVG context in mind. After that, the outer <svg> tag is renamed to <proton-svg>. Since this is not a standard HTML or SVG tag, it falls back into the HTML context. This causes the browser to parse the result differently than during the sanitization!
Attackers could abuse this parser differential with the following payload:
The sanitizer will correctly recognize the SVG context and parse the content of the <style> element as an <a> element. The byte sequence </style> is hidden inside the alt tag of the <a> element and does not close the <style> element. Since the <img> tag is also hidden inside the attribute, the sanitizer does not remove the onerror event handler.
When renaming the <svg> element to <proton-svg>, the parsing result looks like this:
Since the <proton-svg> element belongs to the HTML context, as explained earlier, the parsing rules for the <style> element changed. Its content is now parsed as raw text and the very first occurrence of the byte sequence </style> terminates the element. This causes the <img> element to appear, which in turn executes the onerror handler during rendering. The sanitizer is bypassed!
Fortunately, this does not directly allow attackers to execute arbitrary JavaScript (yet). Proton Mail has multiple lines of defense with the sanitizer just being the first one.
Second Line of Defense: Iframe Sandbox
The next protection is an <iframe> element with a sandbox attribute. After sanitizing an email's HTML, the result is not directly inserted into the DOM of the Proton Mail page itself but into the DOM of an iframe. This has the first effect that things like CSS styles in the email don't have an effect on Proton Mail's UI. This makes the content of the iframe (marked in red) isolated from the rest of the page:
Another benefit is the ability to restrict what the page inside the iframe can do by providing an allowlist in the sandbox attribute. In the case of Proton Mail, the iframe sandbox has the following directives:
allow-same-origin
allow-popups
allow-popups-to-escape-sandbox
The first one allows the embedding page to be able to insert HTML into the iframe, but it also enables the reverse way. The second directive allows popups and new tabs to open; for example, when a user clicks on a link. The third directive allows the newly opened page to not be restricted by the iframe sandbox because the sandbox would usually be inherited by the new page.
However, Proton Mail adds a fourth directive when opened in the Safari browser. In this case, the allow-scripts directive is added to the allowlist, which means an attacker does not need to bypass the sandbox at all because they can just execute JavaScript and access the top frame.
For all other browsers, the attacker has to convince the victim to click on a link that opens in a new tab, therefore escaping the sandbox and being able to access the opener's parent frame:
Third Line of Defense: Content Security Policy
The final defense mechanism is Proton Mail's Content Security Policy (CSP). It restricts the origins from where all kinds of resources can be loaded, including scripts, images, and styles. The important CSP directives, in this case, are:
default-src 'self'
style-src 'unsafe-inline'
img-src https:
script-src blob:
The first directive acts as a fallback and only allows resources to come from the origin that the page was loaded from unless specified otherwise. The next two directives allow inline CSS styles and images that are loaded via HTTPS which is normal for HTML emails. The last directive allows scripts to be loaded from blob: URLs. This is pretty unusual and will be the key to bypassing the CSP.
Let's take a quick look at what blob URLs are. They are temporary URLs that can be dynamically created by any page and they look like this: blob:https://mail.proton.me/8c2a19fa-8dcd-44d1-807c-1c65abef0251
After the blob: schema, it starts with the origin of the page that created it while the path of the URL is a random UUID. To create a blob URL, the page has to specify the content type and content that will be returned when the browser tries to fetch it. Pages can either actively revoke blob URLs, but they also get revoked when a page is closed or reloaded.
Crafting Arbitrary Blob URLs
In the case of Proton Mail, blob URLs are used to render inline attachments, such as images. In general, such attachments each have their own Content-ID header with a value that uniquely identifies them in the context of the email. Those attachments can then be referenced using cid: URLs, for example in the src attribute of <img> tags.
When an email contains image tags with such a cid: source, Proton Mail will look for an attachment that has a matching Content-ID header. A blob URL will be created with the attachment's data and content type, and the image's src attribute will be replaced with the newly created blob URL.
We noticed that Proton Mail allows arbitrary content types and content for inline attachments. This would allow an attacker to send a JavaScript attachment instead of an image and reference it as an <img> element's source, triggering the creation of a blob URL that contains JavaScript and has the application/javascript content type.
This inline image-loading mechanism can be abused by attackers to craft arbitrary blob URLs and load them as scripts to bypass the CSP. The only challenge left is how to take the created blob URL from an image tag's src attribute and use it as a script tag's src attribute.
Leaking a Blob URL
This is where the inline styles and remote images that the CSP allows come into play. There has been previous work on how to leak data, such as attribute values and text, from the DOM via CSS. One such method, discovered by Pepe Vila and Nathanial Lattimer, uses recursive CSS @import statements. Unfortunately, this and other techniques don't apply here because the CSP does not allow styles or fonts to be loaded from remote servers.
Since the value that needs to be leaked is a blob URL, we can make a few assumptions that simplify the process. Since the origin is always https://mail.proton.me, the beginning of the URL is known to be blob:https://mail.proton.me/. This only leaves the UUID, consisting of hexadecimal characters and dashes, reducing the possibilities per character to 17.
For the @import leak technique, the CSS attribute prefix selector is used to leak an attribute value incrementally. Since the CSP blocks remote CSS imports, taking this incremental approach is impossible. One alternative would be to create selectors for all possible attribute values, but this is not feasible due to the number of possible values being 2122.
However, there is also another CSS attribute selector that can be helpful; the "contains" operator. It can be used to check if an attribute value contains a certain substring. With this, we can create a similar technique to the @import leak, but instead of taking an incremental approach, we leak multiple parts in parallel.
Splitting the URL Into Smaller Chunks
To do this, we have to split the value we want to leak into smaller chunks that have fewer possible values. In our case, we will not leak a whole UUID at once but instead leak all 3-character substrings in parallel. We first calculate all valid 3-character substrings of a UUID, starting with 000, over 0-0, up until fff. We then create a CSS selector for each of them that will tell us if this substring is included in the current UUID we want to leak. When the CSS selector matches, we request a background image from the attacker server with a unique URL.
Here's an example of how a blob URL would be split into its overlapping, 3-character chunks:
This way, the attacker server will know all the different chunks that the UUID consists of, but not their order. To reconstruct the correct UUID, the server has to stitch it back together by starting with one chunk and finding an overlapping one.
Starting with the chunk 8c2, the attacker would look for any chunk starting with c2, finding the chunk c2a. From there they would look for a chunk starting with 2a, and so on. In the end, the full blob UUID should be reconstructed, unless there are multiple chunks that start with the same two characters.
The curious reader might wonder why we chose 3-character chunks in favor of other lengths. We found 3 to be the sweet spot between CSS size and probability of collisions, with the CSS being about 100 KB in size and the chance for a collision being below 1%.
If we made each chunk only 2 characters, we would reduce the CSS size but drastically increase the chance that a chunk has multiple possible successors because the overlap between chunks is only 1 character. Going for longer chunks would reduce this possibility, but the amount of CSS selectors would grow exponentially. The following graphic shows the trade-off between CSS size and collision probability on logarithmic scales:
Now that we have a strategy to leak the blob URL, we need to implement it in CSS. This is where we encounter a problem: we cannot set multiple background images for the element we want to leak an attribute of because they would override each other.
Multiple Requests Per Element: cross-fade()
The solution is to look for a way to assign an arbitrary amount of background images to a single element so they would all be fetched by the browser. After many hours of reading the CSS spec, we found the cross-fade() CSS function. This function takes two images and a percentage as arguments and then returns an image resulting from overlaying both images. The image arguments can be specified as url()s, but they could also result from another call to the cross-fade() function! This means that we can nest an arbitrary amount of cross-fade() calls, forcing the browser to request all url()s that are used at the bottom of that nesting tree.
The following example shows what this nesting tree looks like. The browser has to load the images a.jpg and b.jpg before creating the resulting cross-faded image. The browser also has to load c.jpg before it can cross-fade it with the result of the other operation. The final result is a single image that can be assigned as an element's background image:
With all hurdles resolved, the final CSS payload to leak a blob URL looks like this:
The first part consists of all the chunk selectors that would match when a specific substring is present in the UUID. Each of them sets a CSS variable to the URL that the browser should fetch to signal the attacker server that this selector matched.
The final selector is the one that includes all of these CSS variables in a big nested tree of cross-fade() calls. When the browser tries to render this last selector, it has to check each variable used. For all the variables set, the browser has to fetch the referenced URL to use the result to create the final crossfaded image.
All of the CSS variables that are not set are being treated as their fallback value none, so the browser will not request anything. This is what the leak looks like in the browser's network tab:
After the attacker server receives the chunks, it reconstructs the blob URL and sends a second email to the victim. This time, the email contains a <script> tag that uses the blob URL as its src, as well as a link that opens the blob URL in a new tab. The script tag will be enough for victims using Safari, as no iframe sandbox bypass is needed. Other victims will have to click on the link, which will open the link in a new tab and therefore bypass the iframe sandbox due to the allow-popups-to-escape-sandbox directive.
Once the JavaScript payload is executed, it can directly access the top windows where the Proton Mail app is running. Attackers can use this access to steal all emails in their decrypted form, send emails in the name of the victim, and potentially even steal the victim's cryptographic keys.
The whole exploit flow is summarized again here:
Patch
Since the code vulnerabilities we found led to a serious impact, let's find out how they were fixed and how they can be avoided in your own code.
Proton Mail chose to fix the vulnerable behavior by simply removing SVG support altogether. This is a solid approach if you can afford to lose the functionality. It does not only get rid of the specific vulnerability that arose due to the element renaming, but it also reduces the attack surface for the future. Since foreign content is a major source of sanitizer bypasses, it is a great hardening step to prevent MathML and SVG from being used.
To avoid these kinds of sanitizer bypasses in general, we have a few recommendations:
Never modify data after sanitizing it. This is not specific to HTML but to any data that needs to be sanitized. The more complex the data structure, the more dangerous it becomes to modify it after sanitization.
If possible, don't re-parse HTML after sanitizing it. In the case of DOMPurify, you can opt-in to get back the sanitized DOM tree instead of a string. If you directly insert this tree into the page's DOM, the browser will not mutate its contents, leaving less opportunity for mXSS.
Use state-of-the-art sanitizers. This can be DOMPurify, but also the upcoming Sanitizer API that will be built into browsers in the future. If you use obscure or outdated sanitizers, chances are that they will miss weird quirks and leave you vulnerable.
Timeline
DATE
ACTION
2022-06-03
We send our detailed report to Proton Mail
2022-06-15
Proton Mail pushes fix to public repo
2022-06-28
Proton Mail awards a bug bounty of $750
2022-07-06
Proton Mail deploys fix to production
Summary
In this article, we explained how an innocent-looking mistake in the code can have a huge impact on the application. We showed how we found and exploited Cross-Site Scripting vulnerabilities in Proton Mail, a popular end-to-end-encrypted webmail service. We also discussed how the flaw was fixed and how you can avoid such problems in your own code.
We would like to thank the Proton Mail team for their fast and professional handling of our report. They also awarded us with a $750 USD bug bounty, which we happily donated to charity.
Stay tuned for next Tuesday's blog post, where we will show how similar code mistakes led to a Cross-Site Scripting vulnerability in Skiff's web client that also allowed attackers to steal emails and impersonate victims. If you don't want to miss it, make sure to follow us on Twitter or Mastodon!