---
title: Logjam (CVE-2015-4000) – Are you FREAKed again?
description: Logjam (CVE-2015-4000) – Are you FREAKed again?
---

[![Aujas Logo-1](https://blog.aujas.com/hs-fs/hubfs/Aujas%20Logo-1.webp?width=951&name=Aujas%20Logo-1.webp "Aujas Logo-1")](https://www.aujas.com/)

- Services 
    - [Identity and Access Management](https://www.aujas.com/robotics-iam-identity-access-management-services) 
          - [Identity Governance Fast Track](https://www.aujas.com/iam-identity-governance-fast-track)
          - [Privileged Identity Management Fast Track](https://www.aujas.com/privileged-identity-management)
          - [Cloud Single Sign-on Fast Track](https://www.aujas.com/cloud-sso)
          - [Robotics Driven IAM](https://www.aujas.com/robotics-iam-services)
          - [Risk Aware IAM](https://www.aujas.com/risk-aware-iam)
          - [Consumer IAM](https://www.aujas.com/consumer-identity-and-access-management)
    - [Cybersecurity Advisory Services](https://www.aujas.com/cybersecurity-advisory-services) 
          - [Cyber Risk Management](https://www.aujas.com/cyber-risk-management-services)
          - [Integrated Compliance Management](https://www.aujas.com/cybersecurity-compliance-services)
          - [GRC Technology Automation](https://www.aujas.com/grc-technology-automation-services)
          - [Third Party Risk Management](https://www.aujas.com/third-party-risk-management)
          - [Privacy and Data Protection](https://www.aujas.com/data-privacy-data-protection-services)
    - [Security Verification](https://www.aujas.com/security-verification-services) 
          - [On-Demand Security Assessment](https://www.aujas.com/on-demand-security-testing-and-services)
          - [Breach & Attack Simulation](https://www.aujas.com/automated-continuous-attack-simulation)
          - [IoT Security Assessment](https://www.aujas.com/internet-of-things-security-assessment)
          - [Red Teaming](https://www.aujas.com/red-teaming-services)
          - [Integrated Security Assurance Program](https://www.aujas.com/isap)
          - [DDoS Simulation](https://www.aujas.com/ddos-attack-simulation-services)
          - [DevSecOps](https://www.aujas.com/devsecops)
          - [API Security](https://www.aujas.com/api-security)
    - [Security Engineering](https://www.aujas.com/security-engineering-services) 
          - [Secure Software Development](https://www.aujas.com/secure-software-development)
          - [Ecosystem Engineering](https://www.aujas.com/ecosystem-engineering)
          - [Custom Security Development](https://www.aujas.com/custom-security-solution-development)
          - [Registered Device Management Platform](https://www.aujas.com/registered-device-management-platform)
    - [Managed Detection and Response](https://www.aujas.com/managed-detection-and-response-services) 
          - [Offensive Security Services](https://www.aujas.com/offensive-security-services)
          - [OT Security Services](https://www.aujas.com/ot-security-services)
          - [Microsoft Sentinel](https://www.aujas.com/sentinel)
          - [Threat Management](https://www.aujas.com/threat-management-service)
          - [SIEM & Security Monitoring](https://www.aujas.com/siem-security-monitoring)
          - [SecOps Orchestration](https://www.aujas.com/security-orchestration-automation-and-response)
          - [Google SecOps](https://www.aujas.com/googlesecops)
    - [Cloud Security](https://www.aujas.com/cloud-computing-security-services) 
          - [AWS Cloud Security Services](https://www.aujas.com/aws-cloud-security-services)
          - [Cloud Security Foundation](https://www.aujas.com/cloud-security-foundation)
          - [Cloud Risk Management](https://www.aujas.com/cloud-risk-management)
          - [Cloud Security Engineering](https://www.aujas.com/cloud-security-engineering)
- Products 
    - [PALM](https://www.aujas.com/platform-for-access-lifecycle-management)
    - [Saksham](https://saksham.aujas.com)
    - [CodeSign](https://codesign.aujas.com)
    - [Aadhaar Registered Device Manager](https://www.aujas.com/registered-device-management-platform)
- Company 
    - [About us](https://www.aujas.com/about-us) 
          - [Investor Relations](https://www.aujas.com/investor-relations)
    - [Team](https://www.aujas.com/team)
    - [Partnership](https://www.aujas.com/partnership)
    - [Contact us](https://www.aujas.com/contact-us)
- [Careers](https://www.aujas.com/cybersecurity-careers)
- Resources 
    - [Blog](https://blog.aujas.com)
    - [Collaterals](https://www.aujas.com/collaterals)
    - [Case Studies](https://www.aujas.com/case-study)
- [Contact Sales](https://www.aujas.com/contact-us)
- ![](https://blog.aujas.com/hubfs/Aujas%202020/blue-search.png)

![blue-search](https://blog.aujas.com/hubfs/Aujas%202020/blue-search.png "blue-search")

![Aujas Cybersecurity Logo 2024](https://blog.aujas.com/hubfs/Aujas%20Cybersecurity%20Logo%202024.webp "Aujas Cybersecurity Logo 2024")

- Services 
    - [Identity and Access Management](https://www.aujas.com/robotics-iam-identity-access-management-services) 
          - [Identity Governance Fast Track](https://www.aujas.com/iam-identity-governance-fast-track)
          - [Privileged Identity Management Fast Track](https://www.aujas.com/privileged-identity-management)
          - [Cloud Single Sign-on Fast Track](https://www.aujas.com/cloud-sso)
          - [Robotics Driven IAM](https://www.aujas.com/robotics-iam-services)
          - [Risk Aware IAM](https://www.aujas.com/risk-aware-iam)
          - [Consumer IAM](https://www.aujas.com/consumer-identity-and-access-management)
    - [Cybersecurity Advisory Services](https://www.aujas.com/cybersecurity-advisory-services) 
          - [Cyber Risk Management](https://www.aujas.com/cyber-risk-management-services)
          - [Integrated Compliance Management](https://www.aujas.com/cybersecurity-compliance-services)
          - [GRC Technology Automation](https://www.aujas.com/grc-technology-automation-services)
          - [Third Party Risk Management](https://www.aujas.com/third-party-risk-management)
          - [Privacy and Data Protection](https://www.aujas.com/data-privacy-data-protection-services)
    - [Security Verification](https://www.aujas.com/security-verification-services) 
          - [On-Demand Security Assessment](https://www.aujas.com/on-demand-security-testing-and-services)
          - [Breach & Attack Simulation](https://www.aujas.com/automated-continuous-attack-simulation)
          - [IoT Security Assessment](https://www.aujas.com/internet-of-things-security-assessment)
          - [Red Teaming](https://www.aujas.com/red-teaming-services)
          - [Integrated Security Assurance Program](https://www.aujas.com/isap)
          - [DDoS Simulation](https://www.aujas.com/ddos-attack-simulation-services)
          - [DevSecOps](https://www.aujas.com/devsecops)
          - [API Security](https://www.aujas.com/api-security)
    - [Security Engineering](https://www.aujas.com/security-engineering-services) 
          - [Secure Software Development](https://www.aujas.com/secure-software-development)
          - [Ecosystem Engineering](https://www.aujas.com/ecosystem-engineering)
          - [Custom Security Development](https://www.aujas.com/custom-security-solution-development)
          - [Registered Device Management Platform](https://www.aujas.com/registered-device-management-platform)
    - [Managed Detection and Response](https://www.aujas.com/managed-detection-and-response-services) 
          - [Offensive Security Services](https://www.aujas.com/offensive-security-services)
          - [OT Security Services](https://www.aujas.com/ot-security-services)
          - [Microsoft Sentinel](https://www.aujas.com/sentinel)
          - [Threat Management](https://www.aujas.com/threat-management-service)
          - [SIEM & Security Monitoring](https://www.aujas.com/siem-security-monitoring)
          - [SecOps Orchestration](https://www.aujas.com/security-orchestration-automation-and-response)
          - [Google SecOps](https://www.aujas.com/googlesecops)
    - [Cloud Security](https://www.aujas.com/cloud-computing-security-services) 
          - [AWS Cloud Security Services](https://www.aujas.com/aws-cloud-security-services)
          - [Cloud Security Foundation](https://www.aujas.com/cloud-security-foundation)
          - [Cloud Risk Management](https://www.aujas.com/cloud-risk-management)
          - [Cloud Security Engineering](https://www.aujas.com/cloud-security-engineering)
- Products 
    - [PALM](https://www.aujas.com/platform-for-access-lifecycle-management)
    - [Saksham](https://saksham.aujas.com)
    - [CodeSign](https://codesign.aujas.com)
    - [Aadhaar Registered Device Manager](https://www.aujas.com/registered-device-management-platform)
- Company 
    - [About us](https://www.aujas.com/about-us) 
          - [Investor Relations](https://www.aujas.com/investor-relations)
    - [Team](https://www.aujas.com/team)
    - [Partnership](https://www.aujas.com/partnership)
    - [Contact us](https://www.aujas.com/contact-us)
- [Careers](https://www.aujas.com/cybersecurity-careers)
- Resources 
    - [Blog](https://blog.aujas.com)
    - [Collaterals](https://www.aujas.com/collaterals)
    - [Case Studies](https://www.aujas.com/case-study)
- [Contact Sales](https://www.aujas.com/contact-us)
- ![](https://blog.aujas.com/hubfs/Aujas%202020/blue-search.png)

![](https://blog.aujas.com/hubfs/Aujas%202020/close.png)

 

 

# Logjam (CVE-2015-4000) – Are you FREAKed again?

- ![Tom Thomas](https://app.hubspot.com/settings/avatar/e41f6ff1ce36a4adb2ac1b537c6e4645)[Tom Thomas](https://blog.aujas.com/author/tom-thomas)
- Jun 30, 2015

SHARE

<https://twitter.com/intent/tweet?url=https://blog.aujas.com/2015/06/30/logjam-cve-2015-4000-are-you-freaked-again/>

**Author : Naresh T A**

The TLS protocol is vulnerable once again. This time it’s identified as the [logjam attack](https://weakdh.org/) and it is the most recent one in a [long](https://en.wikipedia.org/wiki/CRIME) [list](https://en.wikipedia.org/wiki/BREACH_(security_exploit)) [of](https://en.wikipedia.org/wiki/Heartbleed) [weaknesses](https://blog.aujas.com/2014/11/03/understanding-and-fixing-the-poodle-ssl-vulnerability-cve%C2%AD2014%C2%AD3566/) that have been identified in the SSL/TLS protocol ever since it was introduced. This recent vulnerability has been identified in the Diffie-Hellman key exchange algorithm by research teams from INRIA, Microsoft Research, Johns Hopkins, the University of Michigan, and the University of Pennsylvania.

Logjam is very similar to the [FREAK](https://blog.aujas.com/2015/03/18/freak-vulnerability-cve-2015-0204/) attack, in the sense that it also exploits the availability and the use of export ciphers but while FREAK exploits the RSA key exchange algorithm, Logjam exploits the DH key exchange algorithm. Export ciphers are a relic of the cold war era in which the U.S. Government restricted the export of software with strong cryptographic algorithms to countries it perceived as enemies; thus allowing it to easily eavesdrop on them.

Even though these restrictions no longer exist, a large number of cryptographic libraries continue to support and offer these ciphers. Let’s first understand how the Handshake and Key Exchange works

**The Handshake**

In the initial phase (called the handshake), when a connection is being established between two systems, the following steps happen:

1. The client sends a message (called Client Hello) telling the server what cipher suites (algorithms) it supports.
2. The server picks a cipher suite from the list sent by the client, then picks a set of parameters for key exchange and performs a set of computations.
3. The chosen cipher suite, parameters and the computation performed is signed by the server using its certificate and sent to the client (called Server Hello)
4. The client verifies the signature, extracts the parameters and performs its own computations on it which is sent to the server.

Once this is done, both systems use the parameters and computations to separately arrive at the same common key. This is the shared secret key and is used by both the systems to encrypt future communications in the session.

**Key Exchange**

The algorithm that allows two systems to generate a common key by only sharing a few computations is called the key exchange algorithm. The most commonly used ones are RSA, DH and recently ECDH.

The DH (Diffie-Hellman) algorithm is the oldest of the three, makes use of the fact that it is extremely difficult for computers to calculate the discrete logarithms of two large prime numbers in a [finite group](https://en.wikipedia.org/wiki/Group_(mathematics)).

These large primes are the parameters that are chosen by both the client and the server during the handshake process. When export cipher suites are used, the sizes of the parameters chosen are limited to 512-bits in length.

A 512-bit key by itself was good enough even though most libraries choose these keys from a single group of primes, this was considered secure as long as a new key was chosen for each connection.

**The Attack**

The research team modified the [general number field sieve](https://en.wikipedia.org/wiki/General_number_field_sieve), the most efficient algorithm that can calculate the discrete log for a set of primes to pre-compute the first step. Since most implementations only use primes from a known common group, the researchers could pre-compute a part of the results with the algorithm and calculate the discrete logs for 512-bits long primes in a few minutes.

Furthermore, the same technique was tested on 768-bit and 1024-bit primes and was found to be computable by capable adversaries.

The logjam attack is not only applicable to TLS but also to any protocol that implements the DH algorithm including IPSec and SSH.

**The Impact**

An attacker who is able to intercept and store the communication that is using weak DH ciphers would be able to decrypt the encryption key offline and as a result decrypt the entire communication.

Even if the connection is not using EXPORT DH ciphers by default, an attacker can launch a man-in-the-middle attack to downgrade the connection and later decrypt it offline.

**Testing for Logjam**

The research team behind identifying logjam have created a website for quickly testing if you're vulnerable to logjam. For checking clients you can go to https://weakdh.org and for testing servers you can use the testing tool at https://weakdh.org/sysadmin.html.

**Mitigations**

1. Disable all EXPORT cipher suites: Although export-grade cryptography is no longer supported by modern browsers, an adversary can trick them into supporting it.
2. Use ECDH over DH: Elliptic-Curve Diffie-Hellman prevents all known cryptanalytic attacks of the original DH and should be given preference over DH.
3. Use a strong, unique DH group: Servers should generate a unique 2048-bit or stronger DH group for each server.

The instructions for configuring many different kinds of servers to mitigate logjam can be found [here](https://weakdh.org/sysadmin.html).

**References:**

[https://www.schneier.com/blog/archives/2015/05/the\_logjam\_and\_.html](https://www.schneier.com/blog/archives/2015/05/the_logjam_and_.html)

[https://isc.sans.edu/forums/diary/Logjam+vulnerabilities+in+DiffieHellman+key+exchange+affect+browsers+and+servers+using+TLS/19717/](https://isc.sans.edu/forums/diary/Logjam+vulnerabilities+in+DiffieHellman+key+exchange+affect+browsers+and+servers+using+TLS/19717/)

![Footer-Logo](https://blog.aujas.com/hubfs/Aujas%202019/Footer/Footer-Logo.png "Footer-Logo")

## Reach Us

[+1 201 389 9011](tel:+1%20201%20389%209011)

## Write To Us

**Sales:** [contact@aujas.com](mailto:contact@aujas.com)  
**Jobs:** [careers@aujas.com](mailto:careers@aujas.com)  
**HR Queries:** [HRopsteam@aujas.com](mailto:hropsteam@aujas.com)

 

- [1](https://www.linkedin.com/company/aujas-cybersecurity)
- [2](https://twitter.com/AujasIRM)
- [3](https://www.facebook.com/AujasCybersec/?ref=py_c)
- [4](https://www.youtube.com/@AujasCybersecurity)

## [Identity and Access Management](https://www.aujas.com/identity-access-management-services)

- [Identity Governance Fast Track](https://www.aujas.com/iam-identity-governance-fast-track)
- [PIM Fast Track](https://www.aujas.com/privileged-identity-management)
- [Cloud Single Sign-on Fast Track](https://www.aujas.com/cloud-sso)
- [Robotics Driven IAM](https://www.aujas.com/robotics-iam-services)
- [Risk Aware IAM](https://www.aujas.com/risk-aware-iam)
- [Consumer IAM](https://www.aujas.com/consumer-identity-and-access-management)

## [Cybersecurity Advisory Services](https://www.aujas.com/cybersecurity-advisory-services)

- [Cyber Risk Management](https://www.aujas.com/cyber-risk-management-services)
- [Integrated Compliance Management](https://www.aujas.com/cybersecurity-compliance-services)
- [GRC Automation](https://www.aujas.com/grc-technology-automation-service)
- [Third Party Risk Management](https://www.aujas.com/third-party-risk-management-old)
- [Privacy and Data Protection](https://www.aujas.com/data-privacy-data-protection-services)

## Company

- [About us](https://www.aujas.com/about-us)
- [Careers](https://www.aujas.com/cybersecurity-careers)
- [Contact us](https://www.aujas.com/contact-us)

## Resources

- [Blog](https://blog.aujas.com)
- [Collaterals](https://www.aujas.com/collaterals)
- [Case Study](https://www.aujas.com/case-study)

## [Security Verification](https://www.aujas.com/security-verification-services)

- [Threat Simulation](https://www.aujas.com/threat-simulations)
- [loT Security](https://www.aujas.com/internet-of-things-security-assessment)
- [Penetration Testing](https://www.aujas.com/crest-certified-penetration-testing-services)

## [Security Engineering](https://www.aujas.com/security-engineering-services)

- [Secure Development](https://www.aujas.com/secure-software-development)
- [Ecosystem Engineering](https://www.aujas.com/ecosystem-engineering)
- [CodeSign Platform](https://codesign.aujas.com/)
- [Custom Security Development](https://www.aujas.com/custom-security-solution-development)

## [Managed Detection and Response](https://www.aujas.com/managed-threat-detection-and-response-services)

- [Threat Management](https://www.aujas.com/threat-management)
- [SIEM & Security Monitoring](https://www.aujas.com/siem-security-monitoring)
- [Automated & Continous Attack Simulation](https://www.aujas.com/automated-continuous-attack-simulation)
- [SecOps Orchestration](https://www.aujas.com/security-orchestration-automation-and-response)
- [Google SecOps](https://www.aujas.com/googlesecops)

## [Identity and Access Management](https://www.aujas.com/identity-access-management-services)

- [Identity Governance Fast Track](https://www.aujas.com/iam-identity-governance-fast-track)
- [PIM Fast Track](https://www.aujas.com/privileged-identity-management)
- [Cloud Single Sign-on Fast Track](https://www.aujas.com/cloud-sso)
- [Robotics Driven IAM](https://www.aujas.com/robotics-iam-services)
- [Risk Aware IAM](https://www.aujas.com/risk-aware-iam)
- [Consumer IAM](https://www.aujas.com/consumer-identity-and-access-management)

## [Cybersecurity Advisory Services](https://www.aujas.com/cybersecurity-advisory-services)

- [Cyber Risk Management](https://www.aujas.com/cyber-risk-management-services)
- [Integrated Compliance Management](https://www.aujas.com/cybersecurity-compliance-services)
- [GRC Automation](https://www.aujas.com/grc-technology-automation-service)
- [Third Party Risk Management](https://www.aujas.com/third-party-risk-management-old)
- [Privacy and Data Protection](https://www.aujas.com/data-privacy-data-protection-services)

## [Security Verification](https://www.aujas.com/security-verification-services)

- [Threat Simulation](https://www.aujas.com/threat-simulations)
- [loT Security](https://www.aujas.com/internet-of-things-security-assessment)
- [Penetration Testing](https://www.aujas.com/crest-certified-penetration-testing-services)

## [Security Engineering](https://www.aujas.com/security-engineering-services)

- [Secure Development](https://www.aujas.com/secure-software-development)
- [Ecosystem Engineering](https://www.aujas.com/ecosystem-engineering)
- [CodeSign Platform](https://codesign.aujas.com/)
- [Custom Security Development](https://www.aujas.com/custom-security-solution-development)

## [Managed Threat Detection and Response](https://www.aujas.com/managed-threat-detection-and-response-services)

- [Threat Management](https://www.aujas.com/threat-management)
- [SIEM & Security Monitoring](https://www.aujas.com/siem-security-monitoring)
- [Automated & Continous Attack Simulation](https://www.aujas.com/automated-continuous-attack-simulation)
- [SecOps Orchestration](https://www.aujas.com/security-orchestration-automation-and-response)
- [Google SecOps](https://www.aujas.com/googlesecops)

## Company

- [About us](https://www.aujas.com/about-us)
- [Careers](https://www.aujas.com/cybersecurity-careers)
- [Contact us](https://www.aujas.com/contact-us)

## Resources

- [Blog](https://blog.aujas.com)
- [Collaterals](https://www.aujas.com/collaterals)
- [Case Study](https://www.aujas.com/case-study)

Copyrights © 2025 All Rights Reserved by Aujas.

- [Terms of Use](https://www.aujas.com/terms-of-service)
- [Privacy Policy](https://www.aujas.com/privacy-policy)
- [Cookie Policy](https://www.aujas.com/cookie-policy)

![](https://px.ads.linkedin.com/collect/?pid=656027&fmt=gif) ![websights](https://ws.zoominfo.com/pixel/62839c658f43f50012ae3b9a)