---
title: "Hydra (THC Hydra)"
description: "A free tool that tests credentials against remote authentication services (SSH, VPN, email) to measure an access’s resistance. Examples and defences."
url: https://krakenshield.eu/knowledge/glossary/hydra/
lang: en
publisher: KrakenShield (KRAKEN HOLDING SAS)
overview: https://krakenshield.eu/llms.txt
---
# Hydra (THC Hydra)
> A free tool that tests credentials against remote authentication services (SSH, VPN, email) to measure an access’s resistance. Examples and defences.

Pentest and offensive

THC Hydra · online dictionary attack · online brute force · authentication test

A free tool that tests credentials against remote authentication services (SSH, VPN, email) to measure an access’s resistance.

## In practice

Unlike offline hash cracking, Hydra attacks the door itself: it tries username and password pairs against a form or a protocol. It is slow, noisy and increasingly countered: progressive lockouts, MFA and repeated-failure detection wear it out. Run against a third party’s service, it is an attempted unauthorised access, punished like the access itself (Articles 323-1 and 323-7 of the French Criminal Code); against your own accesses, it is a simple test of your authentication’s robustness and of your monitoring’s reaction.

> **Example**
> Example
> 
> Fictional case: during an authorised penetration test, Hydra tries 20 common passwords against a company’s VPN. The “test” account falls on the 7th attempt and no alert fires: the account is deleted, MFA is rolled out everywhere and a repeated-failure detection rule is added.

## How to protect yourself

- Turn on MFA for every exposed access: VPN, email, remote desktop, administration.
- Slow down, then temporarily block, after several failures, and alert on repeated failures.
- Remove test and generic accounts, and do not expose SSH or remote desktop unless necessary.

## Sources

- [THC Hydra, source code (GitHub)](https://github.com/vanhauser-thc/thc-hydra)
- [Légifrance, French Criminal Code, Articles 323-1 et seq. (in French)](https://www.legifrance.gouv.fr/codes/section_lc/LEGITEXT000006070719/LEGISCTA000006149839/)
